Lines Matching refs:schema
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);
186 * Delete all data associated with this schema
192 if (!$this->id) throw new StructException('can not delete unsaved schema');
228 // a deleted schema should not be used anymore, but let's make sure it's somewhat sane anyway
237 * Clear all data of a schema, but retain the schema itself
241 if (!$this->id) throw new StructException('can not clear data of unsaved schema');
281 * Returns the translated label for this schema
294 * Checks if the current user may edit data in this schema
318 * Returns a list of columns in this schema
336 * Find a column in the schema by its label
362 * @return int the highest sort number used in this schema
370 * @return string the JSON representing this schema
376 'schema' => $this->getTable(),