| /plugin/structtasks/meta/ |
| D | Utilities.php | 41 * @param mixed $schema 43 function isValidSchema($schema): bool { argument 44 $schemas_found = $this->struct->getSchema($schema); 45 $s = $schemas_found[$schema]; 47 msg("Schema '${schema}', needed for structtasks, does not exist.", -1); 66 msg("structtasks schema '$schema' has no column '$name'.", -1); 71 … msg("Column '${name}' of structtasks schema '$schema' has invalid type ${coltype}", -1); 75 …msg("Column '${name}' of structtasks schema '$schema' must not accept multiple values; change the … 80 …if ($valid) $this->duedate_formats[$schema] = $s->findColumn('duedate')->getType()->getConfig()['f… 88 function dateFormat($schema) { argument [all …]
|
| /plugin/struct/_test/ |
| H A D | AggregationResultsTest.php | 68 $schema = 'schema1'; 69 $result = $this->fetchNonPageResults($schema, $id); 85 $schema = 'schema1'; 86 $result = $this->fetchNonPageResults($schema, 'test0'); 89 $result = $this->fetchNonPageResults($schema, 'test0', ['first', '=', 'foo0', 'AND']); 92 $result = $this->fetchNonPageResults($schema, 'test0', ['first', '!=', 'foo0', 'AND']); 99 $schema = 'schema1'; 100 $result = $this->fetchAllResults($schema, ''); 103 $result = $this->fetchAllResults($schema, '', ['second', '=', 'green', 'AND']); 108 $result = $this->fetchAllResults($schema, '', ['second', '!~', 'green', 'AND']); [all …]
|
| H A D | SchemaTest.php | 71 $schema = new Schema('foo'); 72 $schema->delete(); 79 $schema = new Schema('schema1'); 80 $this->assertEquals(1, $schema->getId()); 81 $schema->delete(); 82 $this->assertEquals(0, $schema->getId()); 84 $schema = new Schema('schema1'); 85 $this->assertEquals(0, $schema->getId());
|
| H A D | SchemaImporterTest.php | 31 $schema = new meta\Schema('schema1'); 33 $actual = json_decode($schema->toJSON(), true); 45 $schema = new meta\Schema('tag'); 46 $columns = $schema->getColumns(); 60 $schema = new meta\Schema('foobar'); 62 $actual = json_decode($schema->toJSON(), true);
|
| /plugin/struct/_test/action/ |
| H A D | EditTest.php | 45 * @param string $schema 49 protected function checkField(Document $pq, $schema, $name, $value) argument 54 "Field $schema.$name not found" 58 $pq->find("input[name='struct_schema_data[$schema][$name]']")->attr('value'), 59 "Field $schema.$name has wrong value" 137 $schema = 'schema2'; 138 $assignment->addPattern($page, $schema); 157 $schema = 'schema2'; 158 $assignment->addPattern($page, $schema); 162 $schema => [ [all …]
|
| /plugin/struct/_test/mock/ |
| H A D | AccessTable.php | 13 $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…
|
| /plugin/mobiletable/ |
| D | action.php | 49 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 …]
|
| /plugin/struct/meta/ |
| H A D | AccessTable.php | 18 protected $schema; variable in dokuwiki\\plugin\\struct\\meta\\AccessTable 59 $schema = new Schema($tablename, $ts); 60 return new AccessTablePage($schema, $pid, $ts, 0); 65 $schema = new Schema($tablename, 0); 66 return new AccessTableSerial($schema, $pid, 0, $rid); 71 $schema = new Schema($tablename, 0); 72 return new AccessTableGlobal($schema, '', 0, $rid); 78 * @param Schema $schema schema to load 85 public static function bySchema(Schema $schema, $pid, $ts = 0, $rid = 0) argument 88 return new AccessTablePage($schema, $pid, $ts, $rid); [all …]
|
| H A D | SchemaEditor.php | 20 protected $schema; variable in dokuwiki\\plugin\\struct\\meta\\SchemaEditor 27 * @param Schema $schema 29 public function __construct(Schema $schema) argument 31 $this->schema = $schema; 48 $form->setHiddenField('table', $this->schema->getTable()); 49 $form->setHiddenField('schema[id]', $this->schema->getId()); 62 foreach ($this->schema->getColumns() as $col) { 67 …$form->addHTML($this->adminColumn('new1', new Column($this->schema->getMaxsort() + 10, new Text())… 73 $config = json_encode($this->schema->getConfig(), JSON_PRETTY_PRINT);
|
| /plugin/struct/ |
| H A D | helper.php | 43 * @param string|null $schema The schema to use null for all 48 public function getData($page, $schema = null, $time = 0) argument 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(); 163 * @param string|null $schema the schema to query, null for all 167 public static function getSchema($schema = null) argument 169 if (is_null($schema)) { [all …]
|
| H A D | remote.php | 38 * @param string $schema The schema to use empty for all 44 public function getData($page, $schema, $time) argument 52 if (!$schema) $schema = null; 55 return $this->hlp->getData($page, $schema, $time); 98 * @param string $schema the schema to query, empty for all 103 public function getSchema($schema = null) argument 111 $schemas = $this->hlp::getSchema($schema ?: null); 112 foreach ($schemas as $name => $schema) { 114 foreach ($schema->getColumns(false) as $column) {
|
| /plugin/scrape/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Builder/ |
| D | ConfigSchema.php | 16 $schema = new HTMLPurifier_ConfigSchema(); 18 $schema->add( 25 $schema->addAllowedValues( 31 $schema->addAlias( 37 $schema->addValueAliases( 43 $schema->postProcess(); 44 return $schema;
|
| /plugin/struct/admin/ |
| H A D | schemas.php | 117 $schema = new Schema($table); 118 $schema->delete(); 134 $schema = new Schema($table); 135 $schema->clear(); 155 $schema = new Schema($table, 0); 160 if ($schema->getConfig()['internal']) { 175 $editor = new SchemaEditor($schema); 177 echo $this->htmlJson($schema); 178 echo $this->htmlDelete($schema); 188 * @param Schema $schema [all …]
|
| /plugin/authgooglesheets/vendor/google/apiclient-services/src/Datastream/ |
| D | OracleObjectIdentifier.php | 25 public $schema; variable in Google\\Service\\Datastream\\OracleObjectIdentifier 34 public function setSchema($schema) argument 36 $this->schema = $schema; 43 return $this->schema;
|
| D | OracleSchema.php | 28 public $schema; variable in Google\\Service\\Datastream\\OracleSchema 47 public function setSchema($schema) argument 49 $this->schema = $schema; 56 return $this->schema;
|
| /plugin/authgooglesheets/vendor/google/apiclient-services/src/Pubsub/ |
| D | SchemaSettings.php | 29 public $schema; variable in Google\\Service\\Pubsub\\SchemaSettings 48 public function setSchema($schema) argument 50 $this->schema = $schema; 57 return $this->schema;
|
| D | ValidateSchemaRequest.php | 28 public function setSchema(Schema $schema) argument 30 $this->schema = $schema; 37 return $this->schema;
|
| /plugin/struct/action/ |
| H A D | move.php | 67 $schema = new Schema($table); 68 foreach ($schema->getColumns() as $col) { 71 $this->updateColumnID($schema, $col, $old, $new, true); 73 $this->updateColumnLookup($schema, $col, $old, $new); 76 $this->updateColumnID($schema, $col, $old, $new); 143 * @param Schema $schema 149 protected function updateColumnID(Schema $schema, Column $col, $old, $new, $hashes = false) argument 152 $table = $schema->getTable(); 185 * @param Schema $schema 190 protected function updateColumnLookup(Schema $schema, Column $col, $old, $new) argument [all …]
|
| H A D | ajax.php | 69 [$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/structtasks/_test/ |
| D | UtilitiesTest.php | 38 function testIsValidSchema($schema) { argument 39 $this->assertFalse($this->util->isValidSchema($schema)); 40 $this->loadSchemaJSON($schema); 41 $this->assertTrue($this->util->isValidSchema($schema)); 47 function testIsInvalidSchema($schema) { argument 48 $this->assertFalse($this->util->isValidSchema($schema)); 49 $this->loadSchemaJSON($schema); 50 $this->assertFalse($this->util->isValidSchema($schema)); 150 function testGetMetadataInvalid($page, $schema) { argument 151 …list($old_data, $new_data, $valid) = $this->util->getMetadata($page, $schema, $this->rev1, $this->…
|
| D | StructtasksTest.php | 17 * @param string $schema 22 protected function loadSchemaJSON($schema, $json = '', $rev = 0) argument 24 if (!$json) $json = $schema; 31 $importer = new SchemaImporter($schema, $json); 34 throw new \RuntimeException("build of $schema from $file failed");
|
| /plugin/structtasks/ |
| D | cli.php | 18 private $schema; variable in cli_plugin_structtasks 52 $tasks = $this->struct->getPages($this->schema); 69 $this->schema = $this->getConf('schema'); 70 if ($this->schema == '') return false; 74 if (!$this->util->isValidSchema($this->schema)) { 76 sprintf($this->getLang('msg_invalid_schema'), $this->schema)); 80 sprintf($this->getLang('msg_handling_schema'), $this->schema)); 81 $this->dateformat = $this->util->dateFormat($this->schema); 135 $structdata = $this->struct->getData($task, $this->schema)[$this->schema];
|
| /plugin/diagrams/script/ |
| H A D | DiagramsMenuItemDispatcher.js | 14 static isAvailable(schema) { argument 15 return !!schema.nodes.diagrams; 44 static getMenuItem(schema) { argument 45 if (!this.isAvailable(schema)) { 53 if (!$from.parent.canReplaceWith(index, index, schema.nodes.diagrams)) { 72 schema.nodes.diagrams.create(attributes)
|
| /plugin/jsoneditor/ |
| D | helper.php | 33 $schema = $data['keys']['schema'] ?? '{}'; 35 $data['schema'] = $schema; 37 $data['schema_extractors'] = $json_o->extractors_handle($schema); 103 $schema = $json_o->extractors_replace($data['schema'], $data['schema_extractors']); 106 $schema = $data['schema']; 110 $data_attr['schema'] = htmlspecialchars($schema); 131 …htmlspecialchars(json_encode(json_decode($schema, true), JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE)…
|
| /plugin/structpublish/meta/ |
| H A D | Revision.php | 20 protected $schema; variable in dokuwiki\\plugin\\structpublish\\meta\\Revision 47 $this->schema = new Schema('structpublish'); 48 $this->statusCol = $this->schema->findColumn('status'); 49 $this->versionCol = $this->schema->findColumn('version'); 50 $this->userCol = $this->schema->findColumn('user'); 51 $this->datetimeCol = $this->schema->findColumn('datetime'); 52 $this->revisionCol = $this->schema->findColumn('revision'); 223 $schema = new Schema('structpublish', 0); 224 $access = new AccessTableStructpublish($schema, $pid, 0, $rid);
|