Lines Matching +full:lookup +full:schema +(+path:plugin +path:struct) -(+path:plugin +path:struct +path:lang)
14 use dokuwiki\plugin\struct\meta\Schema;
43 * @param string|null $schema The schema to use null for all
45 * @return array ('schema' => ( 'fieldlabel' => 'value', ...))
48 public function getData($page, $schema = null, $time = 0)
55 if (is_null($schema)) {
59 $schemas = [$schema];
63 foreach ($schemas as $schema) {
64 $schemaData = AccessTable::getPageAccess($schema, $page, $time);
65 $result[$schema] = $schemaData->getDataArray();
86 * @param array $data ('schema' => ( 'fieldlabel' => 'value', ...))
115 // make sure this schema is assigned
121 * Save lookup data row
129 throw new StructException('lookup save error: no permission for schema');
163 * @param string|null $schema the schema to query, null for all
164 * @return Schema[]
167 public static function getSchema($schema = null)
169 if (is_null($schema)) {
170 $schemas = Schema::getAll();
172 $schemas = [$schema];
177 $result[$table] = new Schema($table);
187 * @param string|null $schema limit the result to a given schema
188 * @return array (page => (schema => true), ...)
191 public function getPages($schema = null)
194 return $assignments->getPages($schema);
209 if ($value[0] !== '[') throw new StructException('Lookup expects JSON');