Lines Matching refs:pattern
12 * Check if the given pattern matches the given page
14 * @param string $pattern the pattern to check against
20 public function matchPagePattern($pattern, $page, $pns = null)
22 if (trim($pattern, ':') == '**') {
27 if ($pattern[0] == '/') {
28 return (bool) preg_match($pattern, ":$page");
35 $ans = ':' . cleanID($pattern) . ':';
36 if (substr($pattern, -2) == '**') {
41 } elseif (substr($pattern, -1) == '*') {
48 if (cleanID($pattern) == $page) {