/plugin/struct/meta/ |
H A D | AccessTableGlobal.php | 27 $sql = 'DELETE FROM data_' . $this->schema->getTable() . ' WHERE rid = ?'; 29 $sql = 'DELETE FROM multi_' . $this->schema->getTable() . ' WHERE rid = ?'; 143 $table = 'multi_' . $this->schema->getTable();
|
H A D | AccessTablePage.php | 9 * This class is for accessing the data stored for a page in a schema 16 public function __construct($schema, $pid, $ts = 0, $rid = 0) argument 19 parent::__construct($schema, $pid, $ts, $rid); 23 * adds an empty data set for this schema and page 25 * This is basically a delete for the schema fields of a page 33 foreach ($this->schema->getColumns() as $col) { 49 $table = 'data_' . $this->schema->getTable();
|
H A D | Assignments.php | 240 * @param null|string $schema limit results to the given schema 244 public function getPages($schema = null, $assignedonly = false) 249 if ($schema) { 251 $opts[] = $schema; 340 * fetch all pages where the schema isn't assigned, yet 242 getPages($schema = null, $assignedonly = false) global() argument
|
H A D | CSVImporter.php | 17 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); 121 // just skip the checks for 'pid' but discard other columns not present in the schema 133 throw new StructException('None of the CSV headers matched any of the schema\'s fields'); 214 $table = $this->schema->getTable(); 231 * Imports one line into the schema
|
H A D | CSVPageImporter.php | 13 * Import page schema only when the pid header is present. 34 // make sure this schema is assigned 38 $this->schema->getTable() 129 //check if page id exists and schema is bound to the page
|
H A D | CSVSerialImporter.php | 11 * Import page schema only when the pid header is present. 53 $schema = $this->schema->getTable(); 56 schema: $schema
|
H A D | Schema.php | 12 * Represents the schema of a single data table and all its properties. It defines what can be stored in 15 * It can be initialized with a timestamp to access the schema as it looked at that particular point in time. 26 /** @var int The ID of this schema */ 29 /** @var string the user who last edited this schema */ 53 * @param string $table The table this schema is for 54 * @param int $ts The timestamp for when this schema was valid, 0 for current 70 // load info about the schema itself 87 $schema = $this->sqlite->queryAll($sql, $opt); 90 if (!empty($schema)) { 91 $result = array_shift($schema); [all...] |
H A D | SchemaEditor.php | 13 * schema happens in the SchemaBuilder class. 19 /** @var Schema the schema that is edited */ variable in dokuwiki\\plugin\\struct\\meta\\SchemaEditor 20 protected $schema; 27 * @param Schema $schema 29 public function __construct(Schema $schema) 31 $this->schema = $schema; 36 * Returns the Admin Form to edit the schema 48 $form->setHiddenField('table', $this->schema->getTable()); 49 $form->setHiddenField('schema[i 28 __construct(Schema $schema) global() argument [all...] |
H A D | Search.php | 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(); 214 if (!$col) return null; // ignore missing columns, filter might have been for different schema 556 $schema = $this->schemas[$table] ?? null; 557 if (!$schema instanceo [all...] |
H A D | SearchCloud.php | 27 $schema = current($this->schemas); 28 $datatable = 'data_' . $schema->getTable(); 45 // add conditional schema assignment check 52 AND schema_assignments.tbl = '{$schema->getTable()}'"
|
H A D | SearchConfig.php | 46 if (!empty($config['schemas'])) foreach ($config['schemas'] as $schema) { 47 $this->addSchema($schema[0], $schema[1]);
|
/plugin/struct/ |
H A D | remote.php | 38 * @param string $schema The schema to use empty for all 40 * @return array ('schema' => ( 'fieldlabel' => 'value', ...)) 44 public function getData($page, $schema, $time) 52 if (!$schema) $schema = null; 55 return $this->hlp->getData($page, $schema, $time); 70 * @param array $data ('schema' => ( 'fieldlabel' => 'value', ...)) 98 * @param string $schema the schema t 41 getData($page, $schema, $time) global() argument 100 getSchema($schema = null) global() argument [all...] |
/plugin/struct/script/ |
H A D | AggregationEditor.js | 9 const schema = $table.parents('.structaggregation').data('schema'); 10 if (!schema) return; 57 schema: schema,
|
H A D | SchemaEditor.js | 20 * Toggle the disabled class in the schema editor 31 var schema = jQuery(this).closest('tr').find('td:nth-child(2)').text(); 33 if (!window.confirm(formatString(LANG.plugins.struct['confirmAssignmentsDelete'], schema, page))) {
|
/plugin/struct/types/ |
H A D | Lookup.php | 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']); 63 // schema does not exist 117 $schema = $this->config['schema']; 123 $search->addSchema($schema); 235 $schema = 'data_' . $this->config['schema']; [all...] |
/plugin/structacl/ |
H A D | action.php | 55 $schema = new \dokuwiki\plugin\struct\meta\Schema($schemaName); 59 $col = $schema->findColumn($field);
|
H A D | helper.php | 23 list($schema, $field) = explode(self::STRUCTACL_SEPCHAR, $line, 2); 24 $config[$schema] = $config[$schema] ?? []; 25 $config[$schema][] = $field;
|
/plugin/structat/meta/ |
H A D | SearchConfigAt.php | 61 foreach($this->schemas as $schema) { 62 $datatable = 'data_' . $schema->getTable(); 85 AND schema_assignments.tbl = '{$schema->getTable()}'"
|
/plugin/structautolink/ |
H A D | renderer.php | 83 $schema = $this->getConf('schema'); 85 if (!$schema || !$field) return []; 89 'schemas' => [[$schema, 'glossary']],
|
/plugin/structcombolookup/ |
H A D | action.php | 64 $schema = $search->getSchemas()[0]; 65 if ($schema->isLookup()) {
|
/plugin/structcombolookup/types/ |
H A D | NarrowingLookup.php | 39 $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);
|
/plugin/structjoin/types/ |
H A D | Join.php | 152 $schema = 'data_' . $this->config['schema']; 179 $schema = 'data_' . $this->config['schema'];
|
/plugin/structnotification/action/ |
H A D | notification.php | 91 $schema = $predicate['schema']; 100 foreach (explode(',', $schema) as $table) { 127 'id' => $predicate['id'] . ':'. $schema . ':' . $pid . ':' . $rawDate, 152 list($schema, $field) = explode('.', trim($matches[1])); 230 $schema = $value->getColumn()->getTable(); 232 $patterns[] = "/@@$schema.$label@@/";
|
/plugin/structnotification/db/ |
H A D | update0001.sql | 3 schema TEXT NOT NULL, field
|
/plugin/structodt/ |
H A D | action.php | 170 $schema = $INPUT->str('schema'); 177 $row = $helper->getRow($schema, $pid, $rev, $rid); 209 $schemas = $INPUT->arr('schema');
|