[ Index ]
 

Code source de DokuWiki 2006-11-06

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/inc/parser/ -> xhtml.php (sommaire)

Renderer for XHTML output

Author: Harry Fuecks <hfuecks@gmail.com>
Author: Andreas Gohr <andi@splitbrain.org>
Poids: 1095 lignes (34 kb)
Inclus ou requis: 3 fois
Référencé: 0 fois
Nécessite: 4 fichiers
 inc/parser/renderer.php
 inc/html.php
 inc/FeedParser.php
 inc/JpegMeta.php

Définit 1 class

Doku_Renderer_xhtml:: (78 méthodes):
  document_start()
  document_end()
  render_TOC()
  _tocitem()
  header()
  section_edit()
  section_open()
  section_close()
  cdata()
  p_open()
  p_close()
  linebreak()
  hr()
  strong_open()
  strong_close()
  emphasis_open()
  emphasis_close()
  underline_open()
  underline_close()
  monospace_open()
  monospace_close()
  subscript_open()
  subscript_close()
  superscript_open()
  superscript_close()
  deleted_open()
  deleted_close()
  footnote_open()
  footnote_close()
  listu_open()
  listu_close()
  listo_open()
  listo_close()
  listitem_open()
  listitem_close()
  listcontent_open()
  listcontent_close()
  unformatted()
  php()
  html()
  preformatted()
  file()
  quote_open()
  quote_close()
  code()
  acronym()
  smiley()
  entity()
  multiplyentity()
  singlequoteopening()
  singlequoteclosing()
  doublequoteopening()
  doublequoteclosing()
  camelcaselink()
  locallink()
  internallink()
  externallink()
  interwikilink()
  windowssharelink()
  emaillink()
  internalmedia()
  externalmedia()
  rss()
  table_open()
  table_close()
  tablerow_open()
  tablerow_close()
  tableheader_open()
  tableheader_close()
  tablecell_open()
  tablecell_close()
  _formatLink()
  _simpleTitle()
  _media()
  _xmlEntities()
  _headerToLink()
  _getLinkTitle()
  _imageTitle()


Classe: Doku_Renderer_xhtml  - X-Ref

The Renderer

document_start()   X-Ref
Pas de description

document_end()   X-Ref
Pas de description

render_TOC()   X-Ref
Return the TOC rendered to XHTML

author: Andreas Gohr <andi@splitbrain.org>

_tocitem($item)   X-Ref
Callback for html_buildlist


header($text, $level, $pos)   X-Ref
Pas de description

section_edit($start, $end, $level, $name)   X-Ref
Section edit marker is replaced by an edit button when
the page is editable. Replacement done in 'inc/html.php#html_secedit'

author: Andreas Gohr <andi@splitbrain.org>
author: Ben Coburn   <btcoburn@silicodon.net>

section_open($level)   X-Ref
Pas de description

section_close()   X-Ref
Pas de description

cdata($text)   X-Ref
Pas de description

p_open()   X-Ref
Pas de description

p_close()   X-Ref
Pas de description

linebreak()   X-Ref
Pas de description

hr()   X-Ref
Pas de description

strong_open()   X-Ref
Pas de description

strong_close()   X-Ref
Pas de description

emphasis_open()   X-Ref
Pas de description

emphasis_close()   X-Ref
Pas de description

underline_open()   X-Ref
Pas de description

underline_close()   X-Ref
Pas de description

monospace_open()   X-Ref
Pas de description

monospace_close()   X-Ref
Pas de description

subscript_open()   X-Ref
Pas de description

subscript_close()   X-Ref
Pas de description

superscript_open()   X-Ref
Pas de description

superscript_close()   X-Ref
Pas de description

deleted_open()   X-Ref
Pas de description

deleted_close()   X-Ref
Pas de description

footnote_open()   X-Ref
Callback for footnote start syntax

All following content will go to the footnote instead of
the document. To achieve this the previous rendered content
is moved to $store and $doc is cleared

author: Andreas Gohr <andi@splitbrain.org>

footnote_close()   X-Ref
Callback for footnote end syntax

All rendered content is moved to the $footnotes array and the old
content is restored from $store again

author: Andreas Gohr

listu_open()   X-Ref
Pas de description

listu_close()   X-Ref
Pas de description

listo_open()   X-Ref
Pas de description

listo_close()   X-Ref
Pas de description

listitem_open($level)   X-Ref
Pas de description

listitem_close()   X-Ref
Pas de description

listcontent_open()   X-Ref
Pas de description

listcontent_close()   X-Ref
Pas de description

unformatted($text)   X-Ref
Pas de description

php($text)   X-Ref
Execute PHP code if allowed

author: Andreas Gohr <andi@splitbrain.org>

html($text)   X-Ref
Insert HTML if allowed

author: Andreas Gohr <andi@splitbrain.org>

preformatted($text)   X-Ref
Pas de description

file($text)   X-Ref
Pas de description

quote_open()   X-Ref
Pas de description

quote_close()   X-Ref
Pas de description

code($text, $language = NULL)   X-Ref
Callback for code text

Uses GeSHi to highlight language syntax

author: Andreas Gohr <andi@splitbrain.org>

acronym($acronym)   X-Ref
Pas de description

smiley($smiley)   X-Ref
Pas de description

entity($entity)   X-Ref
Pas de description

multiplyentity($x, $y)   X-Ref
Pas de description

singlequoteopening()   X-Ref
Pas de description

singlequoteclosing()   X-Ref
Pas de description

doublequoteopening()   X-Ref
Pas de description

doublequoteclosing()   X-Ref
Pas de description

camelcaselink($link)   X-Ref
Pas de description

locallink($hash, $name = NULL)   X-Ref
Pas de description

internallink($id, $name = NULL, $search=NULL,$returnonly=false)   X-Ref
Render an internal Wiki Link

$search and $returnonly are not for the renderer but are used
elsewhere - no need to implement them in other renderers

author: Andreas Gohr <andi@splitbrain.org>

externallink($url, $name = NULL)   X-Ref
Pas de description

interwikilink($match, $name = NULL, $wikiName, $wikiUri)   X-Ref
Pas de description

windowssharelink($url, $name = NULL)   X-Ref
Pas de description

emaillink($address, $name = NULL)   X-Ref
Pas de description

internalmedia($src, $title=NULL, $align=NULL, $width=NULL,$height=NULL, $cache=NULL, $linking=NULL)   X-Ref
Pas de description

externalmedia($src, $title=NULL, $align=NULL, $width=NULL,$height=NULL, $cache=NULL, $linking=NULL)   X-Ref


rss($url,$params)   X-Ref
Renders an RSS feed

author: Andreas Gohr <andi@splitbrain.org>

table_open($maxcols = NULL, $numrows = NULL)   X-Ref
Pas de description

table_close()   X-Ref
Pas de description

tablerow_open()   X-Ref
Pas de description

tablerow_close()   X-Ref
Pas de description

tableheader_open($colspan = 1, $align = NULL)   X-Ref
Pas de description

tableheader_close()   X-Ref
Pas de description

tablecell_open($colspan = 1, $align = NULL)   X-Ref
Pas de description

tablecell_close()   X-Ref
Pas de description

_formatLink($link)   X-Ref
Build a link

Assembles all parts defined in $link returns HTML for the link

author: Andreas Gohr <andi@splitbrain.org>

_simpleTitle($name)   X-Ref
Removes any Namespace from the given name but keeps
casing and special chars

author: Andreas Gohr <andi@splitbrain.org>

_media($src, $title=NULL, $align=NULL, $width=NULL,$height=NULL, $cache=NULL)   X-Ref
Renders internal and external media

author: Andreas Gohr <andi@splitbrain.org>

_xmlEntities($string)   X-Ref
Pas de description

_headerToLink($title,$create=false)   X-Ref
Creates a linkid from a headline

author: Andreas Gohr <andi@splitbrain.org>
param: string  $title   The headline title
param: boolean $create  Create a new unique ID?

_getLinkTitle($title, $default, & $isImage, $id=NULL)   X-Ref
Construct a title and handle images in titles

author: Harry Fuecks <hfuecks@gmail.com>

_imageTitle($img)   X-Ref
Returns an HTML code for images used in link titles

author: Andreas Gohr <andi@splitbrain.org>



Généré le : Tue Apr 3 20:47:31 2007 par Balluche grâce à PHPXref 0.7