Lines Matching +full:page +full:schema +(+path:plugin +path:struct) -(+path:plugin +path:struct +path:lang)
35 * Get the structured data of a given page
37 * @param string $page The page to get data for
38 * @param string $schema The schema to use empty for all
40 * @return array ('schema' => ( 'fieldlabel' => 'value', ...))
44 public function getData($page, $schema, $time) argument
46 $page = cleanID($page);
48 if (auth_quickaclcheck($page) < AUTH_READ) {
49 throw new AccessDeniedException('no permissions to access data of that page');
52 if (!$schema) $schema = null;
55 return $this->hlp->getData($page, $schema, $time);
63 * Saves data for a given page (creates a new revision)
67 * the given schemas are no longer assigned to that page.
69 * @param string $page
70 * @param array $data ('schema' => ( 'fieldlabel' => 'value', ...))
77 public function saveData($page, $data, $summary, $minor = false) argument
79 $page = cleanID($page);
81 if (auth_quickaclcheck($page) < AUTH_EDIT) {
82 throw new AccessDeniedException('no permissions to save data for that page');
86 $this->hlp->saveData($page, $data, $summary, $minor);
98 * @param string $schema the schema to query, empty for all
103 public function getSchema($schema = null) argument
106 throw new AccessDeniedException('you need to be manager to access schema info');
111 $schemas = $this->hlp::getSchema($schema ?: null);
112 foreach ($schemas as $name => $schema) {
114 foreach ($schema->getColumns(false) as $column) {
132 * @param array $schemas array of strings with the schema-names
142 $schemaLine = 'schema: ' . implode(', ', $schemas);