Lines Matching refs:schema
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
89 if (!array_key_exists($schema, $this->duedate_formats)) {
90 $this->isValidSchema($schema);
92 return $this->duedate_formats[$schema];
100 function getMetadata($id, $schema, $old_rev, $new_rev) { argument
101 if (!$this->isValidSchema($schema)) {
106 if (!array_key_exists($schema, $old_data) or !array_key_exists($schema, $new_data)) {
109 $dateformat = $this->dateFormat($schema);
110 $old_data[$schema]['date_format'] =
111 $new_data[$schema]['date_format'] = $this->dateFormat($schema);
112 return [$this->formatData($old_data[$schema], $dateformat),
113 $this->formatData($new_data[$schema], $dateformat),