Lines Matching +full:exception +full:no +full:data +full:saved +(+path:plugin +path:struct) -(+path:plugin +path:struct +path:lang)

20  * 3rd party developers should always interact with struct data through this
31 * Class names of renderers which should NOT render struct data.
40 * Get the structured data of a given page
42 * @param string $page The page to get data for
44 * @param int $time A timestamp if you want historic data
72 * Saves data for a given page (creates a new revision)
74 * If this call succeeds you can assume your data has either been saved or it was
75 * not necessary to save it because the data already existed in the wanted form or
76 * the given schemas are no longer assigned to that page.
81 * this duplicates a bit of code from entry.php - we could also fake post data and let
86 * @param array $data ('schema' => ( 'fieldlabel' => 'value', ...))
94 public function saveData($page, $data, $summary = '', $minor = false)
100 if (!page_exists($page)) throw new StructException("Page does not exist. You can not attach struct data");
103 $valid = AccessDataValidator::validateDataForPage($data, $page, $errors);
107 if (!$valid) return; // empty array when no changes were detected
111 // save the provided data
121 * Save lookup data row
123 * @param AccessTable $access the table into which to save the data
124 * @param array $data data to be saved in the form of [columnName => 'data']
126 public function saveLookupData(AccessTable $access, $data)
129 throw new StructException('lookup save error: no permission for schema');
131 $validator = $access->getValidator($data);
136 throw new StructException('No data saved');
185 * That means all pages that have or had once struct data saved
198 * Returns decoded JSON value or throws exception