Lines Matching refs:pattern
69 * @param string $pattern
73 public function addPattern($pattern, $table) argument
77 $ok = (bool)$this->sqlite->query($sql, [$pattern, $table]);
90 * @param string $pattern
94 public function removePattern($pattern, $table) argument
98 $ok = (bool)$this->sqlite->query($sql, [$pattern, $table]);
275 * @param string $pattern the pattern to check against
280 protected function matchPagePattern($pattern, $page, $pns = null) argument
282 if (trim($pattern, ':') == '**') return true; // match all
285 if ($pattern[0] == '/') {
286 return (bool)preg_match($pattern, ":$page");
293 $ans = ':' . cleanID($pattern) . ':';
294 if (str_ends_with($pattern, '**')) {
299 } elseif (str_ends_with($pattern, '*')) {
304 } elseif (cleanID($pattern) == $page) {