Home
last modified time | relevance | path

Searched +full:lookup +full:schema +(+path:plugin +path:struct) -(+path:plugin +path:struct +path:lang) (Results 1 – 14 of 14) sorted by relevance

/plugin/struct/action/
H A Dmove.php16 use dokuwiki\plugin\struct\meta\Schema;
17 use dokuwiki\plugin\struct\types\Lookup;
65 $schemas = Schema::getAll();
67 $schema = new Schema($table);
68 foreach ($schema->getColumns() as $col) {
71 $this->updateColumnID($schema, $col, $old, $new, true);
72 } elseif (get_class($col->getType()) == Lookup::class) {
73 $this->updateColumnLookup($schema, $col, $old, $new);
76 $this->updateColumnID($schema,
12 use dokuwiki\plugin\struct\meta\Schema; global() alias
13 use dokuwiki\plugin\struct\types\Lookup; global() alias
152 updateColumnID(Schema $schema, Column $col, $old, $new, $hashes = false) global() argument
193 updateColumnLookup(Schema $schema, Column $col, $old, $new) global() argument
[all...]
H A Dmigration.php74 * Unifies previous page and lookup schema types
109 // add rid and new primary key to lookup tables
120 foreach ($schemas as $schema) {
121 $name = $schema['tbl'];
122 $sid = $schema['id'];
123 $isLookup = $schema['islookup'];
143 // all lookup data has empty pids at this point
153 // introduce composite ids in lookup columns
161 // lookup field
[all...]
H A Dbureaucracy.php15 use dokuwiki\plugin\struct\meta\Schema;
17 use dokuwiki\plugin\struct\types\Lookup;
23 * submitted through the bureaucracy form to all newly created pages (if the schema applies).
26 * schema to the form. The struct_field type is added through standard naming convention - see
46 * Load a whole schema as fields
64 $schema = new Schema($helper->opt['label']);
65 if (!$schema->getId()) {
66 msg('This schema does not exist', -1);
70 foreach ($schema
12 use dokuwiki\plugin\struct\meta\Schema; global() alias
14 use dokuwiki\plugin\struct\types\Lookup; global() alias
[all...]
H A Daggregationeditor.php17 use dokuwiki\plugin\struct\meta\Schema;
100 $tablename = $INPUT->str('schema');
102 throw new StructException('No schema given');
112 throw new StructException('lookup delete error: no permission for schema');
123 $tablename = $INPUT->str('schema');
161 $schema = new Schema($tablename);
162 if (!$schema->isEditable()) {
169 echo '<legend>' . $this->getLang('lookup ne
14 use dokuwiki\plugin\struct\meta\Schema; global() alias
198 resolveColumns($searchconf, $schema) global() argument
[all...]
H A Dinline.php133 throw new StructException('inline save error: schema not assigned to page');
137 throw new StructException('inline save error: no permission for schema');
164 // make sure this schema is assigned
176 // so we don't check if it's a lookup here
/plugin/struct/types/
H A DLookup.php11 use dokuwiki\plugin\struct\meta\Schema; alias
17 class Lookup extends Dropdown class
19 protected $config = ['schema' => '', 'field' => ''];
35 $this->config['schema'] = Schema::cleanTableName($this->config['schema']);
46 $this->column = $this->getColumn($this->config['schema'], $this->config['field']);
61 $table = new Schema($table);
63 // schema does not exist
64 msg(sprintf('Schema
[all...]
/plugin/struct/
H A Dhelper.php14 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]
13 use dokuwiki\plugin\struct\meta\Schema; global() alias
47 getData($page, $schema = null, $time = 0) global() argument
166 getSchema($schema = null) global() argument
190 getPages($schema = null) global() argument
[all...]
H A Ddeleted.files24 _test/Schema.test.php
58 _test/json/schema1.schema.json
59 _test/json/schema2.schema.json
69 action/lookup.php
96 syntax/lookup.php
H A Dstyle.less203 * Tabs in the Schema Editor
238 * The Schema Editor
462 * Lookup Aggregation Editor
/plugin/struct/helper/
H A Dfield.php4 use dokuwiki\plugin\struct\meta\Schema; alias
8 use dokuwiki\plugin\struct\types\Lookup; alias
155 * Special handling for Page and Lookup literal form values.
181 // no way to pass $israw parameter to constructor, so re-set the Lookup value
182 if ($this->column->getType() instanceof Lookup) {
219 * Tries to find the correct column and schema
229 throw new StructException('Field \'%s\' not given in schema.field form', $colname);
231 $schema = new Schema($table);
232 return $schema
[all...]
H A Dlookup.php7 * Allows adding a lookup schema as a bureaucracy action
42 msg('lookup save error: no permission for schema', -1);
/plugin/bez/syntax/
H A Dstruct.php37 * Connect lookup pattern to lexer.
90 $schema = $data['schemas'][0][0];
94 $factory = $model->factory($schema);
/plugin/struct/syntax/
H A Doutput.php53 * Connect lookup pattern to lexer.
81 * Render schema data
124 continue; // no such schema at this revision
153 * Default schema data rendering (simple table view)
/plugin/struct/meta/
H A DSearch.php32 /** @var Schema[] list of schemas to query */
80 * Add a schema to be searched
89 $schema = new Schema($table);
90 if (!$schema->getId()) {
91 throw new StructException('schema missing', $table);
94 $this->schemas[$schema->getTable()] = $schema;
95 if ($alias) $this->aliases[$alias] = $schema->getTable();
109 if ($colname[0] == '-') { // remove column from previous wildcard lookup
[all...]