Lines Matching refs:pattern
60 $sql = 'SELECT * FROM structpublish_assignments_patterns ORDER BY pattern';
65 * Add a new assignment pattern to the pattern table
67 * @param string $pattern
72 public function addPattern($pattern, $user, $status)
74 // add the pattern
75 $sql = 'REPLACE INTO structpublish_assignments_patterns (pattern, user, status) VALUES (?,?,?)';
76 $ok = (bool) $this->sqlite->query($sql, [$pattern, $user, $status]);
103 * Remove an existing assignment pattern from the pattern table
105 * @param string $pattern
110 public function removePattern($pattern, $user, $status)
112 // remove the pattern
113 $sql = 'DELETE FROM structpublish_assignments_patterns WHERE pattern = ? AND user = ? AND status = ?';
114 $ok = (bool) $this->sqlite->query($sql, [$pattern, $user, $status]);
123 // remove page assignments matching the pattern being removed
207 * Get the whole pattern table
233 if ($helper->matchPagePattern($row['pattern'], $page, $pns)) {