Lines Matching defs:filter
25 'filter' => '',
84 $filter = $this->config['autocomplete']['filter'];
86 // this basically duplicates what we do in ajax_qsearch() but with a filter
90 if (!empty($filter) && !$this->filterMatch($id, $filter)) {
197 public function filter(QueryBuilderWhere $add, $tablealias, $colname, $comp, $value, $op)
200 parent::filter($add, $tablealias, $colname, $comp, $value, $op);
217 * Check if the given id matches a configured filter pattern
220 * @param string $filter
223 public function filterMatch($id, $filter)
226 if (PhpString::substr($filter, 0, 1) === ':') {
227 $filter = '^' . $filter;
231 $check = preg_match('/' . $filter . '/', ':' . $id, $matches);
233 throw new StructException("Error processing regular expression '$filter'");
257 // migrate autocomplete options 'namespace' and 'postfix' to 'filter'
258 if (empty($config['autocomplete']['filter'])) {
260 $config['autocomplete']['filter'] = $config['autocomplete']['namespace'];
264 $config['autocomplete']['filter'] .= '.+?' . $config['autocomplete']['postfix'] . '$';