Lines Matching refs:page
40 * Get the structured data of a given page
42 * @param string $page The page to get data for
48 public function getData($page, $schema = null, $time = 0)
50 $page = cleanID($page);
57 $schemas = $assignments->getPageAssignments($page, false);
64 $schemaData = AccessTable::getPageAccess($schema, $page, $time);
72 * Saves data for a given page (creates a new revision)
76 * the given schemas are no longer assigned to that page.
78 * Important: You have to check write permissions for the given page before calling
85 * @param string $page
90 * @todo should this try to lock the page?
94 public function saveData($page, $data, $summary = '', $minor = false)
96 $page = cleanID($page);
100 if (!page_exists($page)) throw new StructException("Page does not exist. You can not attach struct data");
103 $valid = AccessDataValidator::validateDataForPage($data, $page, $errors);
109 $newrevision = self::createPageRevision($page, $summary, $minor);
116 $assignments->assignPageSchema($page, $v->getAccessTable()->getSchema()->getTable());
141 * Creates a new page revision with the same page content as before
143 * @param string $page
148 public static function createPageRevision($page, $summary = '', $minor = false)
151 // force a new page revision @see action_plugin_struct_entry::handle_pagesave_before()
153 saveWikiText($page, rawWiki($page), $summary, $minor);
155 $file = wikiFN($page);
188 * @return array (page => (schema => true), ...)