Lines Matching full:data
19 * @param array $data Reference to $data, which can be further manipulated
21 public function handle(&$data) { argument
25 $data['options_default'] = $this->getConf('options');
26 if(isset($data['keys']['options'])) {
27 $data['options'] = $data['keys']['options'];
28 //replace %$ ... % snippets with data - prepare
29 $data['options_extractors'] = $json_o->extractors_handle($data['keys']['options']);
33 $schema = $data['keys']['schema'] ?? '{}';
35 $data['schema'] = $schema;
36 //replace %$ ... % snippets with data - prepare
37 $data['schema_extractors'] = $json_o->extractors_handle($schema);
41 //Othervise only difference between original data and inline
42 //data will be saved (default).
43 $save = isset($data['keys']['save']) ? $data['keys']['save'] : '';
45 $data['saveall'] = 'true';
48 $data['saveall'] = 'false';
49 $data['display'] .= ',orig-hidden';
52 //make sure, necessary json data will be there
53 $data['display'] .= ',inl-hidden,comb-hidden';
62 * @param array $data from handler
64 * @param array $data_attr html data attributes
71 …public function render(Doku_Renderer $renderer, &$data, &$class, &$data_attr, &$tabs, &$body, &$lo… argument
73 $options = $data['options_default'];
74 if(isset($data['options'])) {
75 $options_inline = $data['options'];
76 //replace %$ ... % snippets with data
77 if(count($data['options_extractors']) > 0) {
79 … $options_inline = $json_o->extractors_replace($options_inline, $data['options_extractors']);
101 if(count($data['schema_extractors']) > 0) {
103 $schema = $json_o->extractors_replace($data['schema'], $data['schema_extractors']);
106 $schema = $data['schema'];
111 $data_attr['saveall'] = $data['saveall'];
116 if(strpos($data['display'], 'jsoneditor') === false) {
117 $data['display'] .= ',jsoneditor*';
121 if(strpos($data['display'], 'jsoneditor*') !== false) { $data_attr['active'] = $tab_no; }
127 … if(strpos($data['display'], 'all') !== false || strpos($data['display'], 'schema') !== false) {