Lines Matching refs:this

21         $this->reset();
28 $this->info = array(
32 $this->precedinglevel = array();
33 $this->nextHeader = "";
34 $this->helper = &plugin_load('helper','xml');
35 $this->doc = '';
36 $this->tagStack = array();
52 if ($this->helper->_xml_extension($this,$name,$data)) return;
53 $plugin->render($this->getFormat(),$this,$data);
68 $this->doc = '<?xml version="1.0" encoding="UTF-8"?>'.DOKU_LF;
69 …$this->doc .= '<document domain="' . DOKU_URL .'" id="' . cleanID($ID) . '" revision="' . $INFO['r…
80 while(count($this->precedinglevel)>0) {
81 $this->doc .= '</section>'.'<!--' . array_pop($this->precedinglevel) . '-->'.DOKU_LF;
83 $this->doc .= '</document>'.DOKU_LF;
88 $this->nextHeader = '<header level="' . $level . '" pos="' . $pos . '">'.
89 $this->nextHeader .= $this->_xmlEntities($text);
90 $this->nextHeader .= '</header>'.DOKU_LF;
94 while(end($this->precedinglevel) >= $level)
96 $this->doc .= '</section>'.'<!--' . array_pop($this->precedinglevel) . '-->'.DOKU_LF;
99 $this->doc .= '<section level="' . $level . '">'.DOKU_LF;
100 $this->doc .= $this->nextHeader;
101 $this->nextHeader = "";
102 array_push($this->precedinglevel,$level);
110 $this->info['cache'] = false;
111 $this->doc .= '<macro name="nocache" />'.DOKU_LF;
115 $this->info['toc'] = false;
116 $this->doc .= '<macro name="notoc" />'.DOKU_LF;
120 $this->doc .= $this->_xmlEntities($text);
124 $this->doc .= '<p>';
125 $this->_openTag($this, 'p_close', array());
129 $this->_closeTags($this, __FUNCTION__);
130 $this->doc .= '</p>'.DOKU_LF;
134 $this->doc .= '<linebreak/>';
138 $this->doc .= '<hr/>'.DOKU_LF;
142 $this->doc .= '<strong>';
143 $this->_openTag($this, 'strong_close', array());
147 $this->_closeTags($this, __FUNCTION__);
148 $this->doc .= '</strong>';
152 $this->doc .= '<emphasis>';
153 $this->_openTag($this, 'emphasis_close', array());
157 $this->_closeTags($this, __FUNCTION__);
158 $this->doc .= '</emphasis>';
162 $this->doc .= '<underline>';
163 $this->_openTag($this, 'underline_close', array());
167 $this->_closeTags($this, __FUNCTION__);
168 $this->doc .= '</underline>';
172 $this->doc .= '<monospace>';
173 $this->_openTag($this, 'monospace_close', array());
177 $this->_closeTags($this, __FUNCTION__);
178 $this->doc .= '</monospace>';
182 $this->doc .= '<subscript>';
183 $this->_openTag($this, 'subscript_close', array());
187 $this->_closeTags($this, __FUNCTION__);
188 $this->doc .= '</subscript>';
192 $this->doc .= '<superscript>';
193 $this->_openTag($this, 'superscript_close', array());
197 $this->_closeTags($this, __FUNCTION__);
198 $this->doc .= '</superscript>';
202 $this->doc .= '<delete>';
203 $this->_openTag($this, 'deleted_close', array());
207 $this->_closeTags($this, __FUNCTION__);
208 $this->doc .= '</delete>';
212 $this->doc .= '<footnote>';
213 $this->_openTag($this, 'footnote_close', array());
217 $this->_closeTags($this, __FUNCTION__);
218 $this->doc .= '</footnote>';
222 $this->doc .= '<listu>'.DOKU_LF;
223 $this->_openTag($this, 'listu_close', array());
227 $this->_closeTags($this, __FUNCTION__);
228 $this->doc .= '</listu>'.DOKU_LF;
232 $this->doc .= '<listo>'.DOKU_LF;
233 $this->_openTag($this, 'listo_close', array());
237 $this->_closeTags($this, __FUNCTION__);
238 $this->doc .= '</listo>'.DOKU_LF;
242 $this->doc .= DOKU_TAB.'<listitem level="' . $level . '">';
243 $this->_openTag($this, 'listitem_close', array());
247 $this->_closeTags($this, __FUNCTION__);
248 $this->doc .= '</listitem>'.DOKU_LF;
252 $this->doc .= '<listcontent>';
253 $this->_openTag($this, 'listcontent_close', array());
257 $this->_closeTags($this, __FUNCTION__);
258 $this->doc .= '</listcontent>';
262 $this->doc .= '<unformatted>';
263 $this->doc .= $this->_xmlEntities($text);
264 $this->doc .= '</unformatted>';
268 $this->doc .= '<php>';
269 $this->doc .= $this->_xmlEntities($text);
270 $this->doc .= '</php>';
274 $this->doc .= '<phpblock>';
275 $this->doc .= $this->_xmlEntities($text);
276 $this->doc .= '</phpblock>'.DOKU_LF;
280 $this->doc .= '<html>';
281 $this->doc .= $this->_xmlEntities($text);
282 $this->doc .= '</html>';
286 $this->doc .= '<htmlblock>';
287 $this->doc .= $this->_xmlEntities($text);
288 $this->doc .= '</htmlblock>'.DOKU_LF;
292 $this->doc .= '<preformatted>';
293 $this->doc .= $this->_xmlEntities($text);
294 $this->doc .= '</preformatted>'.DOKU_LF;
298 $this->doc .= '<quote>';
299 $this->_openTag($this, 'quote_close', array());
303 $this->_closeTags($this, __FUNCTION__);
304 $this->doc .= '</quote>'.DOKU_LF;
308 $this->doc .= '<code lang="' . $lang . '" file="' . $file . '">';
309 $this->doc .= $this->_xmlEntities($text);
310 $this->doc .= '</code>'.DOKU_LF;
314 $this->doc .= '<file lang="' . $lang . '" file="' . $file . '">';
315 $this->doc .= $this->_xmlEntities($text);
316 $this->doc .= '</file>'.DOKU_LF;
320 $this->doc .= '<acronym data="' . $this->_xmlEntities($this->acronyms[$acronym]) . '">';
321 $this->doc .= $this->_xmlEntities($acronym);
322 $this->doc .= '</acronym>';
326 $this->doc .= '<smiley>';
327 $this->doc .= $this->_xmlEntities($smiley);
328 $this->doc .= '</smiley>';
332 $this->doc .= '<entity data="' . $this->_xmlEntities($this->entities[$entity]) . '">';
333 $this->doc .= $this->_xmlEntities($entity);
334 $this->doc .= '</entity>';
344 $this->doc .= '<multiplyentity>';
345 $this->doc .= '<x>'.$this->_xmlEntities($x).'</x>';
346 $this->doc .= '<y>'.$this->_xmlEntities($y).'</y>';
347 $this->doc .= '</multiplyentity>';
352 …$this->doc .= '<singlequote open="' . $this->_xmlEntities($lang['singlequoteopening']) . '" close=…
353 $this->_openTag($this, 'singlequoteclosing', array());
357 $this->_closeTags($this, __FUNCTION__);
358 $this->doc .= '</singlequote>';
363 $this->doc .= '<apostrophe data="' . $this->_xmlEntities($lang['apostrophe']) . '"/>';
368 …$this->doc .= '<doublequote open="' . $this->_xmlEntities($lang['doublequoteopening']) . '" close=…
369 $this->_openTag($this, 'doublequoteclosing', array());
373 $this->_closeTags($this, __FUNCTION__);
374 $this->doc .= '</doublequote>';
383 $this->internallink($link, $link, 'camelcase');
387 …$this->doc .= '<link type="locallink" link="'.$this->_xmlEntities($hash).'" href="'.$this->_xmlEnt…
388 $this->doc .= $this->_getLinkTitle($name, $hash, $isImage);
389 $this->doc .= '</link>';
407 $default = $this->_simpleTitle($id);
409 $name = $this->_getLinkTitle($name, $default, $isImage, $id, 'content');
410 …$this->doc .= '<link type="'.$type.'" link="'.$this->_xmlEntities($link).'" id="'.$id.'" search="'…
411 $this->doc .= $name;
412 $this->doc .= '</link>';
422 …$this->doc .= '<link type="external" link="'.$this->_xmlEntities($link).'" href="'.$this->_xmlEnti…
423 $this->doc .= $this->_getLinkTitle($title, $link, $isImage);
424 $this->doc .= '</link>';
434 $name = $this->_getLinkTitle($title, $wikiUri, $isImage);
435 $url = $this->_resolveInterWiki($wikiName, $wikiUri);
436 …$this->doc .= '<link type="interwiki" link="'.$this->_xmlEntities($link).'" href="'.$this->_xmlEnt…
437 $this->doc .= $name;
438 $this->doc .= '</link>';
448 $name = $this->_getLinkTitle($title, $link, $isImage);
451 …$this->doc .= '<link type="windowssharelink" link="'.$this->_xmlEntities($link).'" href="'.$this->…
452 $this->doc .= $name;
453 $this->doc .= '</link>';
457 $name = $this->_getLinkTitle($name, '', $isImage);
458 $url = $this->_xmlEntities($address);
461 … $this->doc .= '<link type="emaillink" link="'.$this->_xmlEntities($address).'" href="'.$url.'">';
462 $this->doc .= $name;
463 $this->doc .= '</link>';
478 …$this->doc .= $this->_media('internalmedia', $src, $title, $align, $width, $height, $cache, $linki…
493 …$this->doc .= $this->_media('externalmedia', $src, $title, $align, $width, $height, $cache, $linki…
497 $this->doc .= '<table maxcols="' . $maxcols . '" numrows="' . $numrows . '">'.DOKU_LF;
498 $this->_openTag($this, 'table_close', array());
502 $this->_closeTags($this, __FUNCTION__);
503 $this->doc .= '</table>'.DOKU_LF;
507 $this->doc .= DOKU_TAB.'<tablerow>';
508 $this->_openTag($this, 'tablerow_close', array());
512 $this->_closeTags($this, __FUNCTION__);
513 $this->doc .= '</tablerow>'.DOKU_LF;
517 $this->doc .= '<tableheader';
518 if ($colspan>1) $this->doc .= ' colspan="' . $colspan . '"';
519 if ($rowspan>1) $this->doc .= ' rowspan="' . $rowspan . '"';
520 if ($align) $this->doc .= ' align="' . $align . '"';
521 $this->doc .= '>';
522 $this->_openTag($this, 'tableheader_close', array());
526 $this->_closeTags($this, __FUNCTION__);
527 $this->doc .= '</tableheader>';
531 $this->doc .= '<tablecell';
532 if ($colspan>1) $this->doc .= ' colspan="' . $colspan . '"';
533 if ($rowspan>1) $this->doc .= ' rowspan="' . $rowspan . '"';
534 if ($align) $this->doc .= ' align="' . $align . '"';
535 $this->doc .= '>';
536 $this->_openTag($this, 'tablecell_close', array());
540 $this->_closeTags($this, __FUNCTION__);
541 $this->doc .= '</tablecell>';
571 … $name = $title ? $this->_xmlEntities($title) : $this->_xmlEntities(utf8_basename(noNS($src)));
573 $src = ' id="'.$this->_xmlEntities($src).'" hash="'.$this->_xmlEntities($hash).'"';
576 $src = ' src="'.$this->_xmlEntities($src).'"';
578 …$out .= '<media type="'.$type.'" link="'.$this->_xmlEntities($link).'"'.($src).' align="'.$align.'…
588 return $this->_imageTitle($title);
593 return $this->_xmlEntities($heading);
596 return $this->_xmlEntities($default);
598 return $this->_xmlEntities($title);
612 return $this->_media($img['type'],
622 $this->tagStack[] = array($class, $func, $data);
626 if ($this->tagClosing==true) return; // skip nested calls
627 $this->tagClosing = true;
628 while(count($this->tagStack)>0) {
629 list($lastclass, $lastfunc, $lastdata) = array_pop($this->tagStack);
633 $this->tagClosing = false;