Lines Matching full:pattern
22 if (empty($assignment['pattern'])) {
29 $assignment['pattern'] === $data['pattern']
52 return $hlp::matchPagePattern($data['pattern']);
60 * Check if the given pattern matches the given page
62 * @param string $pattern the pattern to check against
69 public static function matchPagePattern($pattern, $page = null, $pns = null) argument
73 if (trim($pattern, ':') == '**') {
78 if ($pattern[0] == '/') {
79 return (bool) preg_match($pattern, ":$page");
86 $ans = ':' . cleanID($pattern) . ':';
87 if (str_ends_with($pattern, '**')) {
92 } elseif (str_ends_with($pattern, '*')) {
97 } elseif (cleanID($pattern) == $page) {