Lines Matching defs:pattern
70 protected $pattern = [];
395 * @param array $filter $filter array of field/pattern pairs, empty array for no filter
510 * @param array $filter array of field/pattern pairs, null for no filter
778 foreach ($this->pattern as $item => $pattern) {
780 if (!preg_match($pattern, $user)) return false;
782 if (!count(preg_grep($pattern, $info['grps']))) return false;
783 } elseif (!preg_match($pattern, $info[$item])) {
791 * Create a pattern for $this->_filter()
799 $this->pattern = [];
800 foreach ($filter as $item => $pattern) {
801 $this->pattern[$item] = '/' . str_replace('/', '\/', $pattern) . '/i'; // allow regex characters