Lines Matching defs:filter
81 * @var array $filter
83 protected $filter;
146 * @param array $filter array of field/pattern pairs
150 public function retrieveUsers($start = 0, $limit = 0, $filter = array())
156 // Apply filter and pagination
157 $this->setFilter($filter);
177 * Return a count of the number of user which meet $filter criteria.
179 * @param array $filter
183 public function getUserCount($filter = array())
187 if (empty($filter)) {
190 $this->setFilter($filter);
329 * Build filter patterns from given criteria.
331 * @param array $filter
335 protected function setFilter(array $filter): void
337 $this->filter = array();
338 foreach ($filter as $field => $value) {
340 $this->filter[$field] = '/' . str_replace('/', '\/', $value) . '/ui';
345 * Return true if given user matches filter pattern, false otherwise.
354 foreach ($this->filter as $elem => $pattern) {