Lines Matching refs:filter
58 if (!empty($config['filter'])) foreach ($config['filter'] as $filter) {
59 $this->addFilter($filter[0], $this->applyFilterVars($filter[2]), $filter[1], $filter[3]);
84 * Set the cache flag accordingly to the set filter placeholders
93 foreach ($filters as $filter) {
94 if (is_array($filter)) $filter = $filter[2]; // this is the format we get fro the config parser
96 if (strpos($filter, '$USER$') !== false) {
98 } elseif (strpos($filter, '$TODAY$') !== false) {
107 * Replaces placeholders in the given filter value by the proper value
109 * @param string $filter
112 protected function applyFilterVars($filter)
121 $filter = str_replace(
136 $filter
141 if (preg_match('/^(.*?)(?:\$STRUCT\.(.*?)\$)(.*?)$/', $filter, $match)) {
142 $filter = $this->applyFilterVarsStruct($match);
143 } elseif (preg_match('/^(.*?)(?:\$USER\.(.*?)\$)(.*?)$/', $filter, $match)) {
144 $filter = $this->applyFilterVarsUser($match);
145 } elseif (preg_match('/^(.*?)(?:\$DATE\((.*?)\)\$?)(.*?)$/', $filter, $match)) {
154 $filter = str_replace($filter, date('Y-m-d', $timestamp), $filter);
158 return $filter;
162 * Replaces struct placeholders in the given filter value by the proper value
200 $filter = [];
202 $filter[] = $match[1] . $item . $match[3];
205 $filter = $match[1] . $value . $match[3];
208 return $filter;
212 * Replaces user placeholders in the given filter value by the proper value
228 $filter = '';
230 $filter = $INFO['userinfo'][$key];
233 return $filter;