object Text_Wiki (array default rule set default null)Instantiates a Text_Wiki object, optionally with a user-defined rule set.

 
require_once 'Text/Wiki.php';
$wiki =& new Text_Wiki();

To re-define the default rule set, pass a sequential array of rule names as the only parameter to Text_Wiki.

 
// define a rule set that only looks for bold, italic, and
// teletype inline markup
 
$rules = array(
    'strong',
    'emphasis',
    'tt'
)
 
$wiki =& new Text_Wiki($rules);
 
text_wiki/methodtextwiki.txt · Last modified: 2008/09/16 11:49 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki