Lines Matching defs:page

9  * An assignment is created when actual struct data is attached to the page.
119 * Rechecks all assignments of a given page against the current patterns
170 * Add page to assignments
172 * @param string $page
176 public function assignPageSchema($page, $table)
179 return (bool)$this->sqlite->query($sql, [$page, $table]);
183 * Remove page from assignments
185 * @param string $page
189 public function deassignPageSchema($page, $table)
192 return (bool)$this->sqlite->query($sql, [$page, $table]);
206 * Returns a list of table names assigned to the given page
208 * @param string $page
212 public function getPageAssignments($page, $checkpatterns = true)
215 $page = cleanID($page);
219 $pns = ':' . getNS($page) . ':';
221 if ($this->matchPagePattern($row['pattern'], $page, $pns)) {
228 $list = $this->sqlite->queryAll($sql, [$page]);
273 * Check if the given pattern matches the given page
276 * @param string $page the cleaned pageid to check
277 * @param string|null $pns optimization, the colon wrapped namespace of the page, set null for automatic
280 protected function matchPagePattern($pattern, $page, $pns = null)
286 return (bool)preg_match($pattern, ":$page");
290 $pns = ':' . getNS($page) . ':';
304 } elseif (cleanID($pattern) == $page) {
313 * Returns all tables of schemas that existed and stored data for the page back then
317 * @param string $page
321 public function getHistoricAssignments($page, $ts)
331 $found = $this->sqlite->queryAll($sql, [$page, $ts]);
341 * and reevaluate the page assignments for those pages and assign when needed