Lines Matching full:json
3 * DokuWiki Plugin json (Syntax Component)
47 …$this->Lexer->addSpecialPattern('<json[a-z0-9]*\b.*?>.*?</json[a-z0-9]*>', $mode, 'plugin_json_def…
52 * Handle matches of the json syntax
62 $json_o = $this->loadHelper('json');
70 if(!isset($data['error']) && $data['tag'] !== 'json') {
133 $json_o = $this->loadHelper('json');
146 //buld the json database
149 //check, if src to json file is specified in query string
174 //check, if src_path to json file is specified in query string
201 //load all json data and put it into the json database
202 … $json_o->add_json(helper_plugin_json::$json, $data, $this->getConf('src_recursive'), $log);
210 $class = array('json-tabs');
212 $class[] = 'json-make-archive';
215 'json-id' => $data['id'] ?? '',
216 'json-hash' => md5($data['json_inline_raw']),
224 //json original data (before they are combined with inline data)
228 …$tabs[] = '<li><a href="#json-tab-'.$tab_number.'-orig">'.$this->getLang('json_original').'</a></l…
229 …$body[] = '<div id="json-tab-'.$tab_number.'-orig"><pre class="json-data-original lang-json">'
233 $body[] = '<div hidden=""><pre class="json-data-original">'
237 //json inline data
241 …$tabs[] = '<li><a href="#json-tab-'.$tab_number.'-inline">'.$this->getLang('json_inline').'</a></l…
242 …$body[] = '<div id="json-tab-'.$tab_number.'-inline"><textarea wrap="off" class="json-data-in…
246 $body[] = '<div hidden=""><textarea class="json-data-inline">'
250 //json combined data
254 …$tabs[] = '<li><a href="#json-tab-'.$tab_number.'-comb">'.$this->getLang('json_combined').'</a></l…
255 …$body[] = '<div id="json-tab-'.$tab_number.'-comb"><pre class="json-data-combined lang-json">'
259 $body[] = '<div hidden=""><pre class="json-data-combined">'
273 …$tabs[] = '<li><a href="#json-tab-'.$tab_number.'-err" class="json-error">'.$this->getLang('error'…
274 …$body[] = '<div id="json-tab-' .$tab_number.'-err" class="json-log">'.$this->render_log($rende…
279 … $tabs[] = '<li><a href="#json-tab-'.$tab_number.'-log">'.$this->getLang('log').'</a></li>';
280 …$body[] = '<div id="json-tab-'.$tab_number.'-log" class="json-log">'.$this->render_log($rende…
285 $class[] = 'json-hidden';
289 $class[] = 'json-hide-tabs';
296 …." <li><a>".$data_path."</a> <button class='json-save-button'>".$this->getLang('save')."</…
335 * Render json log
338 * @param array $log Log data elements from <json> element
341 * @return string html list with info about JSON data source
348 //listitem with info about <json> element
354 $doc .= ', <span class="json-error">ERROR</span>: '.htmlspecialchars($el['error']);
370 //list of files with external json data
375 if($file['filename'] === '***JSON code***') {
376 $doc .= 'JSON code from \'src\' attribute';
385 … $doc .= ', <span class="json-error">ERROR</span>: '.htmlspecialchars($file['error']);
387 else if(!isset($file['elements']) && $file['filename'] !== '***JSON code***') {
388 $doc .= ', JSON file';