Lines Matching refs:tag
90 protected function writeCall($tag, $attr, $state, $pos, $match, $handler) argument
92 $data = array($state, $tag, $attr);
96 protected function open($tag, $attr, $pos, $match, $handler) argument
99 $match = array(DOKU_LEXER_ENTER, $tag, $attr);
103 protected function close($tag, $pos, $match, $handler) argument
106 $match = array(DOKU_LEXER_EXIT, $tag, $attr);
121 case '{|': $tag = 'table'; break;
122 case '|}': $tag = '/table'; break;
123 case '|+': $tag = 'caption'; break;
124 case '|-': $tag = 'tr'; break;
125 case '||': $tag = 'td'; break;
126 case '!!': $tag = 'th'; break;
130 case '!': $tag = 'th'; break;
131 case '|': $tag = 'td'; break;
134 if (isset($tag)) {
136 return array($tag, $attrs);
183 list($tag, $attr) = $this->interpret($match);
186 array_push($this->stack, $tag);
187 $this->open($tag, $attr, $pos, $match, $handler);
197 list($tag, $attr) = $this->interpret($match);
203 switch ($tag) {
206 array_push($this->stack, $tag);
207 $this->open($tag, $attr, $pos, $match, $handler);
213 array_push($this->stack, $tag);
214 $this->open($tag, $attr, $pos, $match, $handler);
219 switch ($tag) {
226 array_push($this->stack, $tag);
227 $this->open($tag, $attr, $pos, $match, $handler);
231 array_push($this->stack, $tag);
232 $this->open($tag, $attr, $pos, $match, $handler);
238 switch ($tag) {
247 array_push($this->stack, $tag);
248 $this->open($tag, $attr, $pos, $match, $handler);
254 array_push($this->stack, $tag);
255 $this->open($tag, $attr, $pos, $match, $handler);
311 list($state, $tag, $attr) = $data;
315 $renderer->doc.= $this->tag_open($tag, $attr);
319 $renderer->cdata($tag);
322 $renderer->doc.= $this->tag_close($tag);
331 * @param string $tag 'table','caption','tr','th' or 'td'
335 protected function tag_open($tag, $attr = null) argument
337 $before = $this->tagsmap[$tag][0];
338 $after = $this->tagsmap[$tag][1];
340 return $before.'<'.$tag.$attr.'>'.$after;
346 * @param string $tag 'table','caption','tr','th' or 'td'
349 protected function tag_close($tag) argument
351 $before = $this->tagsmap['/'.$tag][0];
352 $after = $this->tagsmap['/'.$tag][1];
353 return $before.'</'.$tag.'>'.$after;