Lines Matching refs:json_id
96 * @param string $json_id 'id' attribute of the <json> element on the wiki page.
102 public function set($page_id, $json_id, $data, $overwrite = false) { argument
150 '/(<(json[a-z0-9]*)\b[^>]*?id\s*=[\s"\']*'.$json_id.'\b.*?>)(.*?)(<\/\2>)/s',
169 $err = sprintf($this->getLang('element_not_found'), $json_id);
172 $err = sprintf($this->getLang('duplicated_id'), $json_id);
175 $err = sprintf($this->getLang('not_empty'), $json_id);
185 …eWikiText($page_id, $file_updated, sprintf($this->getLang('json_updated_remote'), $json_id), true);
204 …* @param string $json_id 'id' attribute of the <json> element. If empty, complete page will …
210 public function append($page_id, $json_id, $data) { argument
213 if(!page_exists($page_id) && $json_id) {
254 if ($json_id) {
267 if($json_id) {
270 '/(<(json[a-z0-9]*)\b[^>]*?id\s*=[\s"\']*'.$json_id.'\b.*?>)(.*?)(<\/\2>)/s',
295 $err = sprintf($this->getLang('element_not_found'), $json_id);
298 $err = sprintf($this->getLang('duplicated_id'), $json_id);
301 $err = sprintf($this->getLang('not_array'), $json_id);
325 …aveWikiText($page_id, $file_updated, sprintf($this->getLang('json_added_remote'), $json_id), true);