Property | Type | Description | |
---|---|---|---|
$date_at | |||
$toc | store the table of contents |
Property | Type | Description | |
---|---|---|---|
$_codeblock | counts the code and file blocks, used to provide download links | ||
$_counter | global counter, for table classes etc. | ||
$footnotes | a list of footnotes, list starts at 1! | ||
$headers | the list of headers used to create unique link ids | ||
$lastlevel | current section level | ||
$lastsecid | last section edit id, used by startSectionEdit | ||
$node | section node tracker | ||
$schemes | list of allowed URL schemes | ||
$sectionedits | A stack of section edit data | ||
$store | temporary $doc store |
Method | Description | |
---|---|---|
_audio ( string $src, array $atts = [] ) : string | Embed audio in HTML | |
_formatLink ( array $link ) : string | Build a link | |
_getLastMediaRevisionAt ( string $media_id ) : string | _getLastMediaRevisionAt is a helperfunction to internalmedia() and _media() which returns an existing media revision less or equal to rev or date_at | |
_getLinkTitle ( string | array $title, string $default, boolean &$isImage, null | string $id = null, string $linktype = 'content' ) : string | Construct a title and handle images in titles | |
_getMediaLinkConf ( string $src, string $title, string $align, integer $width, integer $height, string $cache, boolean $render ) : array | helperfunction to return a basic link to a media | |
_headerToLink ( string $title, boolean $create = false ) : string | Creates a linkid from a headline | |
_highlight ( string $type, string $text, string $language = null, string $filename = null ) | Use GeSHi to highlight language syntax in code and file blocks | |
_imageTitle ( array $img ) : string | Returns HTML code for images used in link titles | |
_media ( string $src, string $title = null, string $align = null, integer $width = null, integer $height = null, string $cache = null, boolean $render = true ) : string | Renders internal and external media | |
_video ( string $src, integer $width, integer $height, array $atts = null ) : string | Embed video(s) in HTML | |
_xmlEntities ( $string ) : string | Escape string for output | |
acronym ( string $acronym ) | Format an acronym | |
apostrophe ( ) | Render an apostrophe char (language specific) | |
camelcaselink ( string $link, boolean $returnonly = false ) : void | string | Render a CamelCase link | |
cdata ( $text ) | Render plain text data | |
code ( string $text, string $language = null, string $filename = null ) | Display text as code content, optionally syntax highlighted | |
deleted_close ( ) | Stop deleted (strike-through) formatting | |
deleted_open ( ) | Start deleted (strike-through) formatting | |
document_end ( ) | Finalize the document | |
document_start ( ) | Initialize the document | |
doublequoteclosing ( ) | Render an closinging double quote char (language specific) | |
doublequoteopening ( ) | Render an opening double quote char (language specific) | |
emaillink ( string $address, string | array $name = null, boolean $returnonly = false ) : void | string | Render a linked E-Mail Address | |
emphasis_close ( ) | Stop emphasis (italics) formatting | |
emphasis_open ( ) | Start emphasis (italics) formatting | |
entity ( string $entity ) | Format an entity | |
externallink ( string $url, string | array $name = null, boolean $returnonly = false ) : void | string | Render an external link | |
externalmedia ( string $src, string $title = null, string $align = null, integer $width = null, integer $height = null, string $cache = null, string $linking = null, boolean $return = false ) : void | string | Render an external media file | |
file ( string $text, string $language = null, string $filename = null ) | Display text as file content, optionally syntax highlighted | |
finishSectionEdit ( integer $end = null ) | Finish an edit section range | |
footnote_close ( ) | Callback for footnote end syntax | |
footnote_open ( ) | Callback for footnote start syntax | |
getFormat ( ) : string | Returns the format produced by this renderer. | |
getLastlevel ( ) : integer | Returns the current header level. | |
header ( string $text, integer $level, integer $pos ) | Render a heading | |
hr ( ) | Create a horizontal line | |
html ( string $text, string $wrapper = 'code' ) | Insert HTML if allowed | |
htmlblock ( string $text ) | Output raw block-level HTML | |
internallink ( string $id, string | null $name = null, string | null $search = null, boolean $returnonly = false, string $linktype = 'content' ) : void | string | Render an internal Wiki Link | |
internalmedia ( string $src, string $title = null, string $align = null, integer $width = null, integer $height = null, string $cache = null, string $linking = null, boolean $return = false ) : void | string | Render an internal media file | |
interwikilink ( string $match, string | array $name = null, string $wikiName, string $wikiUri, boolean $returnonly = false ) : void | string | Render an interwiki link | |
linebreak ( ) | Create a line break | |
listcontent_close ( ) | Stop the content of a list item | |
listcontent_open ( ) | Start the content of a list item | |
listitem_close ( ) | Close a list item | |
listitem_open ( integer $level, boolean $node = false ) | Open a list item | |
listo_close ( ) | Close an ordered list | |
listo_open ( string | string[] $classes = null ) | Open an ordered list | |
listu_close ( ) | Close an unordered list | |
listu_open ( string | string[] $classes = null ) | Open an unordered list | |
locallink ( string $hash, string $name = null, boolean $returnonly = false ) : void | string | Render a page local link | |
monospace_close ( ) | Stop monospace formatting | |
monospace_open ( ) | Start monospace formatting | |
multiplyentity ( string | integer $x, string | integer $y ) | Typographically format a multiply sign | |
p_close ( ) | Close a paragraph | |
p_open ( ) | Open a paragraph | |
php ( string $text, string $wrapper = 'code' ) | Execute PHP code if allowed | |
phpblock ( string $text ) | Output block level PHP code | |
preformatted ( string $text ) | Output preformatted text | |
quote_close ( ) | Stop a block quote | |
quote_open ( ) | Start a block quote | |
rss ( string $url, array $params ) | Renders an RSS feed | |
section_close ( ) | Close the current section | |
section_open ( integer $level ) | Open a new section | |
singlequoteclosing ( ) | Render a closing single quote char (language specific) | |
singlequoteopening ( ) | Render an opening single quote char (language specific) | |
smiley ( string $smiley ) | Format a smiley | |
startSectionEdit ( integer $start, string $type, string $title = null ) : string | Register a new edit section range | |
strong_close ( ) | Stop strong (bold) formatting | |
strong_open ( ) | Start strong (bold) formatting | |
subscript_close ( ) | Stop a subscript | |
subscript_open ( ) | Start a subscript | |
superscript_close ( ) | Stop a superscript | |
superscript_open ( ) | Start a superscript | |
table_close ( integer $pos = null ) | Close a table | |
table_open ( integer $maxcols = null, integer $numrows = null, integer $pos = null, string | string[] $classes = null ) | Start a table | |
tablecell_close ( ) | Close a table cell | |
tablecell_open ( integer $colspan = 1, string $align = null, integer $rowspan = 1, string | string[] $classes = null ) | Open a table cell | |
tableheader_close ( ) | Close a table header cell | |
tableheader_open ( integer $colspan = 1, string $align = null, integer $rowspan = 1, string | string[] $classes = null ) | Open a table header cell | |
tablerow_close ( ) | Close a table row | |
tablerow_open ( string | string[] $classes = null ) | Open a table row | |
tabletbody_close ( ) | Close a table body | |
tabletbody_open ( ) | Open a table body | |
tablethead_close ( ) | Close a table header | |
tablethead_open ( ) | Open a table header | |
toc_additem ( string $id, string $text, integer $level ) | Add an item to the TOC | |
underline_close ( ) | Stop underline formatting | |
underline_open ( ) | Start underline formatting | |
unformatted ( string $text ) | Output unformatted $text | |
windowssharelink ( string $url, string | array $name = null, boolean $returnonly = false ) : void | string | Link to windows share |
public _formatLink ( array $link ) : string | ||
$link | array | attributes of a link |
return | string |
public _getLastMediaRevisionAt ( string $media_id ) : string | ||
$media_id | string | |
return | string | revision ('' for current) |
public _getLinkTitle ( string | array $title, string $default, boolean &$isImage, null | string $id = null, string $linktype = 'content' ) : string | ||
$title | string | array | either string title or media array |
$default | string | default title if nothing else is found |
$isImage | boolean | will be set to true if it's a media file |
$id | null | string | linked page id (used to extract title from first heading) |
$linktype | string | content|navigation |
return | string | HTML of the title, might be full image tag or just escaped text |
public _getMediaLinkConf ( string $src, string $title, string $align, integer $width, integer $height, string $cache, boolean $render ) : array | ||
$src | string | media ID |
$title | string | descriptive text |
$align | string | left|center|right |
$width | integer | width of media in pixel |
$height | integer | height of media in pixel |
$cache | string | cache|recache|nocache |
$render | boolean | should the media be embedded inline or just linked |
return | array | associative array with link config |
public _imageTitle ( array $img ) : string | ||
$img | array | |
return | string | HTML img tag or similar |
public _media ( string $src, string $title = null, string $align = null, integer $width = null, integer $height = null, string $cache = null, boolean $render = true ) : string | ||
$src | string | media ID |
$title | string | descriptive text |
$align | string | left|center|right |
$width | integer | width of media in pixel |
$height | integer | height of media in pixel |
$cache | string | cache|recache|nocache |
$render | boolean | should the media be embedded inline or just linked |
return | string |
public _xmlEntities ( $string ) : string | ||
$string | ||
return | string |
public doublequoteclosing ( ) |
public doublequoteopening ( ) |
public emaillink ( string $address, string | array $name = null, boolean $returnonly = false ) : void | string | ||
$address | string | Email-Address |
$name | string | array | name for the link, array for media file |
$returnonly | boolean | whether to return html or write to doc attribute |
return | void | string | writes to doc attribute or returns html depends on $returnonly |
public externallink ( string $url, string | array $name = null, boolean $returnonly = false ) : void | string | ||
$url | string | full URL with scheme |
$name | string | array | name for the link, array for media file |
$returnonly | boolean | whether to return html or write to doc attribute |
return | void | string | writes to doc attribute or returns html depends on $returnonly |
public externalmedia ( string $src, string $title = null, string $align = null, integer $width = null, integer $height = null, string $cache = null, string $linking = null, boolean $return = false ) : void | string | ||
$src | string | full media URL |
$title | string | descriptive text |
$align | string | left|center|right |
$width | integer | width of media in pixel |
$height | integer | height of media in pixel |
$cache | string | cache|recache|nocache |
$linking | string | linkonly|detail|nolink |
$return | boolean | return HTML instead of adding to $doc |
return | void | string | writes to doc attribute or returns html depends on $return |
public finishSectionEdit ( integer $end = null ) | ||
$end | integer | The byte position for the edit end; null for the rest of the page |
public footnote_close ( ) |
public footnote_open ( ) |
public getLastlevel ( ) : integer | ||
return | integer | The current header level |
public internallink ( string $id, string | null $name = null, string | null $search = null, boolean $returnonly = false, string $linktype = 'content' ) : void | string | ||
$id | string | pageid |
$name | string | null | link name |
$search | string | null | adds search url param |
$returnonly | boolean | whether to return html or write to doc attribute |
$linktype | string | type to set use of headings |
return | void | string | writes to doc attribute or returns html depends on $returnonly |
public internalmedia ( string $src, string $title = null, string $align = null, integer $width = null, integer $height = null, string $cache = null, string $linking = null, boolean $return = false ) : void | string | ||
$src | string | media ID |
$title | string | descriptive text |
$align | string | left|center|right |
$width | integer | width of media in pixel |
$height | integer | height of media in pixel |
$cache | string | cache|recache|nocache |
$linking | string | linkonly|detail|nolink |
$return | boolean | return HTML instead of adding to $doc |
return | void | string | writes to doc attribute or returns html depends on $return |
public interwikilink ( string $match, string | array $name = null, string $wikiName, string $wikiUri, boolean $returnonly = false ) : void | string | ||
$match | string | original link - probably not much use |
$name | string | array | name for the link, array for media file |
$wikiName | string | indentifier (shortcut) for the remote wiki |
$wikiUri | string | the fragment parsed from the original link |
$returnonly | boolean | whether to return html or write to doc attribute |
return | void | string | writes to doc attribute or returns html depends on $returnonly |
public listitem_open ( integer $level, boolean $node = false ) | ||
$level | integer | the nesting level |
$node | boolean | true when a node; false when a leaf |
public listo_open ( string | string[] $classes = null ) | ||
$classes | string | string[] | css classes - have to be valid, do not pass unfiltered user input |
public listu_open ( string | string[] $classes = null ) | ||
$classes | string | string[] | css classes - have to be valid, do not pass unfiltered user input |
public locallink ( string $hash, string $name = null, boolean $returnonly = false ) : void | string | ||
$hash | string | hash link identifier |
$name | string | name for the link |
$returnonly | boolean | whether to return html or write to doc attribute |
return | void | string | writes to doc attribute or returns html depends on $returnonly |
public preformatted ( string $text ) | ||
$text | string |
public section_open ( integer $level ) | ||
$level | integer | section level (as determined by the previous header) |
public singlequoteclosing ( ) |
public singlequoteopening ( ) |
public table_close ( integer $pos = null ) | ||
$pos | integer | byte position in the original source |
public table_open ( integer $maxcols = null, integer $numrows = null, integer $pos = null, string | string[] $classes = null ) | ||
$maxcols | integer | maximum number of columns |
$numrows | integer | NOT IMPLEMENTED |
$pos | integer | byte position in the original source |
$classes | string | string[] | css classes - have to be valid, do not pass unfiltered user input |
public tablerow_open ( string | string[] $classes = null ) | ||
$classes | string | string[] | css classes - have to be valid, do not pass unfiltered user input |
public unformatted ( string $text ) | ||
$text | string |
protected $_codeblock |
protected $headers |
protected $lastsecid |