Class: Text_Wiki
Source Location: /Text_Wiki-0.24.0/Text/Wiki.php
Parse structured wiki text and render into arbitrary formats such as XHTML.
Author(s):
Version:
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
$delim = "\xFF"
[line 201]
The delimiter for token numbers of parsed elements in source text.
$disable = array(
'Html',
'Include',
'Embed'
)
[line 95]
The list of rules to not-apply to the source text.
$formatConf = array(
'Docbook' => array(),'Latex'=>array(),'Pdf'=>array(),'Plain'=>array(),'Rtf'=>array(),'Xhtml'=>array())
[line 181]
Custom configuration for the output format itself. Even though Text_Wiki will render the tokens from parsed text, the format itself may require some configuration. For example, RTF needs to know font names and sizes, PDF requires page layout information, and DocBook needs a section hierarchy. This array matches the $conf property of the the format-level renderer (e.g., Text_Wiki_Render_Xhtml). In this array, the key is the rendering format name, and the value is an array of key-value configuration pairs corresponding to the $conf property in the rendering format rule.
$parseConf = array()
[line 128]
Custom configuration for rules at the parsing stage. In this array, the key is the parsing rule name, and the value is an array of key-value configuration pairs corresponding to the $conf property in the target parsing rule. For example: $parseConf = array(
'Include' => array(
'base' => '/path/to/scripts/'
)
);
Note that most default rules do not need any parsing configuration.
$renderConf = array(
'Docbook' => array(),'Latex'=>array(),'Pdf'=>array(),'Plain'=>array(),'Rtf'=>array(),'Xhtml'=>array())
[line 150]
Custom configuration for rules at the rendering stage. Because rendering may be different for each target format, the first-level element in this array is always a format name (e.g., 'Xhtml'). Within that first level element, the subsequent elements match the $parseConf format. That is, the sub-key is the rendering rule name, and the sub-value is an array of key-value configuration pairs corresponding to the $conf property in the target rendering rule.
$rules = array(
'Prefilter',
'Delimiter',
'Code',
'Function',
'Html',
'Raw',
'Include',
'Embed',
'Anchor',
'Heading',
'Toc',
'Horiz',
'Break',
'Blockquote',
'List',
'Deflist',
'Table',
'Image',
'Phplookup',
'Center',
'Newline',
'Paragraph',
'Url',
'Freelink',
'Interwiki',
'Wikilink',
'Colortext',
'Strong',
'Bold',
'Emphasis',
'Italic',
'Tt',
'Superscript',
'Revise',
'Tighten'
)
[line 46]
The default list of rules, in order, to apply to the source text.
Method Detail
Documentation generated on Mon, 11 Mar 2019 14:22:34 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|