Home
last modified time | relevance | path

Searched refs:schema (Results 1 – 25 of 139) sorted by relevance

123456

/plugin/struct/_test/
H A Dedit.test.php113 $schema = 'schema2';
132 $schema = 'schema2';
137 $schema => array(
164 $schema = 'schema2';
169 $schema => array(
195 $schema = 'schema2';
200 $schema => array(
223 $schema = 'schema2';
270 $schema = 'schema2';
313 $schema = 'schema2';
[all …]
H A DAggregationResults.test.php61 $schema = 'schema1';
62 $result = $this->fetchResult($schema, $id, []);
78 $schema = 'schema1';
79 $result = $this->fetchResult($schema, 'test0');
95 $schema = 'pageschema';
96 $result = $this->fetchResult($schema);
128 * @param string $schema
133 protected function fetchPagesResult($schema, $id = '', $filters = []) argument
135 $syntaxConfig = ['schema: ' . $schema, 'cols: %pageid%, %rowid%, *'];
149 * @param string $schema
[all …]
H A DSchema.test.php73 $schema = new Schema('foo');
74 $schema->delete();
81 $schema = new Schema('schema1');
82 $this->assertEquals(1, $schema->getId());
83 $schema->delete();
84 $this->assertEquals(0, $schema->getId());
86 $schema = new Schema('schema1');
87 $this->assertEquals(0, $schema->getId());
H A DSchemaImporter.test.php30 $schema = new meta\Schema('schema1');
32 $actual = json_decode($schema->toJSON(), true);
44 $schema = new meta\Schema('tag');
45 $columns = $schema->getColumns();
59 $schema = new meta\Schema('foobar');
61 $actual = json_decode($schema->toJSON(), true);
H A DStructTest.php39 * @param string $schema
44 protected function loadSchemaJSON($schema, $json = '', $rev = 0) argument
46 if (!$json) $json = $schema;
52 $importer = new SchemaImporter($schema, file_get_contents($file));
55 throw new \RuntimeException("build of $schema from $file failed");
H A Ddiff.test.php29 $schema = 'schema1';
30 $assignment->addPattern($page, $schema);
36 $schema => array(
53 $schema => array(
/plugin/struct/_test/mock/
H A DAccessTable.php13 $schema = new Schema($tablename, $ts);
14 return new AccessTablePage($schema, $pid, $ts, 0);
19 $schema = new Schema($tablename, 0);
20 return new AccessTableGlobal($schema, '', 0, $rid);
24 * @param Schema $schema
31 public static function bySchema(Schema $schema, $pid, $ts = 0, $rid = 0) argument
34 return new AccessTablePage($schema, $pid, $ts, $rid);
36 return new AccessTableGlobal($schema, $pid, $ts, $rid);
49 $schema = new Schema($tablename, $ts);
50 …return self::bySchema($schema, $pid, $ts); // becuse we have a static call here we can not rely on…
H A DAccessTableDataNoDB.php21 $this->schema = new SchemaNoDB($table, $ts);
33 $this->schema->columns = array();
37 $this->schema->columns[] = new Column($sort, new $single(), $sort);
41 $this->schema->columns[] = new Column($sort, new $multi(null, null, true), $sort);
/plugin/mobiletable/
H A Daction.php49 list($schema, $i) = $this->schema($m[1]);
58 list($schema, $i) = $this->schema($m[1]);
59 $table = $this->table($schema, $i, $m[2]);
70 private function schema($row) { function in action_plugin_mobiletable
72 $schema = [];
78 $index = count($schema);
82 $schema[] = $last = trim($th) ?: $last;
84 return [$schema, $index];
89 private function table($schema, $index, $body) { argument
92 $length = count($schema);
[all …]
H A DmobileTable.js30 const schema = []
43 schema.push(indexColumn)
45 schema.push(hiddenHeading)
49 schema.push(td)
57 return schema
127 const buildTable = (table, schema) => {
128 const columnIndex = schema.indexOf(indexColumn)
136 const rowSpans = new Array(schema.length).fill(0)
165 for (let name of schema) {
/plugin/struct/meta/
H A DAccessTable.php18 protected $schema; variable in dokuwiki\\plugin\\struct\\meta\\AccessTable
58 $schema = new Schema($tablename, $ts);
64 $schema = new Schema($tablename, 0);
70 $schema = new Schema($tablename, 0);
77 * @param Schema $schema schema to load
108 $schema = new Schema($tablename, time());
110 $schema = new Schema($tablename, $ts);
118 * @param Schema $schema The schema valid at $ts
129 if (!$schema->getId()) {
133 $this->schema = $schema;
[all …]
H A DSchemaEditor.php19 protected $schema; variable in dokuwiki\\plugin\\struct\\meta\\SchemaEditor
26 * @param Schema $schema
28 public function __construct(Schema $schema) argument
30 $this->schema = $schema;
47 $form->setHiddenField('table', $this->schema->getTable());
48 $form->setHiddenField('schema[id]', $this->schema->getId());
61 foreach ($this->schema->getColumns() as $key => $col) {
66 …$form->addHTML($this->adminColumn('new1', new Column($this->schema->getMaxsort() + 10, new Text())…
71 $config = json_encode($this->schema->getConfig(), JSON_PRETTY_PRINT);
H A DSearch.php79 $schema = new Schema($table);
80 if (!$schema->getId()) {
84 $this->schemas[$schema->getTable()] = $schema;
85 if ($alias) $this->aliases[$alias] = $schema->getTable();
434 foreach ($this->schemas as $schema) {
435 $datatable = 'data_' . $schema->getTable();
587 $schema = $this->schemas[$table];
588 if (!$schema) return false;
668 foreach ($schemas as $schema) {
669 if (empty($schema)) {
[all …]
H A DCSVImporter.php17 protected $schema; variable in dokuwiki\\plugin\\struct\\meta\\CSVImporter
54 $this->schema = new Schema($table);
55 if (!$this->schema->getId()) throw new StructException('Schema does not exist');
115 $pidCol = new Column(0, $pageType, 0, true, $this->schema->getTable());
120 $col = $this->schema->findColumn($head);
214 $table = $this->schema->getTable();
H A DAccessTablePage.php16 public function __construct($schema, $pid, $ts = 0, $rid = 0) argument
19 parent::__construct($schema, $pid, $ts, $rid);
33 foreach ($this->schema->getColumns() as $col) {
49 $table = 'data_' . $this->schema->getTable();
/plugin/struct/
H A Dhelper.php42 * @param string|null $schema The schema to use null for all
47 public function getData($page, $schema = null, $time = 0) argument
54 if (is_null($schema)) {
58 $schemas = array($schema);
62 foreach ($schemas as $schema) {
64 $result[$schema] = $schemaData->getDataArray();
166 public function getSchema($schema = null) argument
168 if (is_null($schema)) {
171 $schemas = array($schema);
190 public function getPages($schema = null) argument
[all …]
H A Dremote.php35 * @param string $schema The schema to use empty for all
41 public function getData($page, $schema, $time) argument
49 if (!$schema) $schema = null;
52 return $this->hlp->getData($page, $schema, $time);
95 * @param string $schema the schema to query, empty for all
100 public function getSchema($schema = null) argument
108 $schemas = $this->hlp->getSchema($schema ?: null);
109 foreach ($schemas as $name => $schema) {
111 foreach ($schema->getColumns(false) as $column) {
/plugin/scrape/HTMLPurifier/ConfigSchema/Builder/
H A DConfigSchema.php11 $schema = new HTMLPurifier_ConfigSchema();
13 $schema->add(
20 $schema->addAllowedValues(
26 $schema->addAlias(
32 $schema->addValueAliases(
38 $schema->postProcess();
39 return $schema;
/plugin/struct/action/
H A Dmove.php63 $schema = new Schema($table);
64 foreach ($schema->getColumns() as $col) {
68 $this->updateColumnID($schema, $col, $old, $new, true);
71 $this->updateColumnLookup($schema, $col, $old, $new);
77 $this->updateColumnID($schema, $col, $old, $new);
146 * @param Schema $schema
152 protected function updateColumnID(Schema $schema, Column $col, $old, $new, $hashes = false) argument
155 $table = $schema->getTable();
188 * @param Schema $schema
193 protected function updateColumnLookup(Schema $schema, Column $col, $old, $new) argument
[all …]
H A Dajax.php69 list($schema, $colname) = explode('.', $col, 2);
70 if (blank($schema) || blank($colname)) throw new StructException('Column format is wrong');
72 $schema = new Schema($schema);
73 if (!$schema->getId()) throw new StructException('Unknown Schema');
75 $column = $schema->findColumn($colname);
/plugin/struct/admin/
H A Dschemas.php116 $schema = new Schema($table);
117 $schema->delete();
133 $schema = new Schema($table);
134 $schema->clear();
154 $schema = new Schema($table, 0);
169 $editor = new SchemaEditor($schema);
171 echo $this->htmlJson($schema);
172 echo $this->htmlDelete($schema);
182 * @param Schema $schema
185 protected function htmlJson(Schema $schema) argument
[all …]
/plugin/structstatus/
H A Daction.php73 foreach ($schemas as $schema) {
74 $ok = $ok && $this->$call($sqlite, $schema);
108 * @param array $schema
111 protected function migration17($sqlite, $schema) argument
113 $name = $schema['tbl'];
114 $sid = $schema['id'];
/plugin/struct/script/
H A DAggregationEditor.js9 const schema = $table.parents('.structaggregation').data('schema');
10 if (!schema) return;
55 schema: schema,
142 schema: schema
/plugin/struct/lang/en/
H A Ddelete_intro.txt1 **WARNING:** Deleting a schema will delete the schema definition and **all** data that has ever bee…
/plugin/structcombolookup/types/
H A DNarrowingLookup.php39 $schema = $this->config['schema'];
45 $search->addSchema($schema);
58 $schema = $this->config['schema'];
64 $search->addSchema($schema);
78 $schema = $this->config['schema'];
90 $search->addSchema($schema);

123456