Lines Matching full:json
3 * DokuWiki Plugin json (Remote Component)
16 'doc' => 'Get JSON data from page from data path.'
22 'doc' => 'Set JSON data inside the <json> element inside the wiki page.'
28 'doc' => 'Append JSON data into array inside page inside <json id=xxx> element.'
34 * Generate JSON database on page and return data from the JSON_path.
37 * @param string $path Path on the JSON database.
41 * data => string JSON data from database
42 * log => array Only if $addLog is true. JSON string with
46 $json_o = $this->loadHelper('json');
61 $json = [];
73 // generate complete JSON database from wikipage
74 $json_o->add_json($json,
79 // get part of JSON data specified by path
81 $json);
83 // add information about JSON data loading
93 * Find <json id=… element inside page and set its inline data.
96 * @param string $json_id 'id' attribute of the <json> element on the wiki page.
97 * @param string $data JSON data to be put inside <json></json>.
98 …* @param boolean $overwrite If false, error will be reported if <json> element already contains…
113 //verify JSON data (must be an array, empty string or valid JSON string)
147 //replace json data; must be one match
150 '/(<(json[a-z0-9]*)\b[^>]*?id\s*=[\s"\']*'.$json_id.'\b.*?>)(.*?)(<\/\2>)/s',
179 $err = sprintf($this->getLang('internal_error'), 'plugin/json/remote/set');
199 * Find <json id=… element inside page and append data to its inline database.
201 * Inline JSON data must be an array or empty. If empty, new array will be initialized.
204 …* @param string $json_id 'id' attribute of the <json> element. If empty, complete page will …
205 …* treated as JSON database (page must be a JSON array, empty or non-e…
206 …* @param string $data JSON data to be appended inside <json>[]</json>. Must be an array o…
221 //verify JSON data (must be an array or valid JSON string)
266 //a classic dokuwiki page with <json> elements inside
268 //replace json data; must be one match
270 '/(<(json[a-z0-9]*)\b[^>]*?id\s*=[\s"\']*'.$json_id.'\b.*?>)(.*?)(<\/\2>)/s',
305 $err = sprintf($this->getLang('internal_error'), 'plugin/json/remote/append');
308 //a pure JSON file