SSHTMLBBCodeParser_Filter_Basic
class SSHTMLBBCodeParser_Filter_Basic extends SSHTMLBBCodeParser_Filter (View source)
Methods
Constructor, initialises the options and filters
Quick method to do setText(), parse() and getParsed at once
Quick static method to do setText(), parse() and getParsed at once
Details
none
__construct($options = array())
Constructor, initialises the options and filters
Sets the private variable _options with base options defined with &PEAR::getStaticProperty(), overwriting them with (if present) the argument to this method. Then it sets the extra options to properly escape the tag characters in preg_replace() etc. The set options are then stored back with &PEAR::getStaticProperty(), so that the filter classes can use them. All the filters in the options are initialised and their defined tags are copied into the private variable _definedTags.
static
getStaticProperty($class, $var)
No description
setOption($name, $value)
Option setter
addFilter($filter)
Add a new filter
removeFilter(string $filter)
Remove an existing filter
bool
addFilters($filters)
Add new filters
none
setText($str)
Sets text in the object to be parsed
string
getText()
Gets the unparsed text from the object
string
getPreparsed()
Gets the preparsed text from the object
string
getParsed()
Gets the parsed text from the object
none
parse()
Parses the text set in the object
none
qparse($str)
Quick method to do setText(), parse() and getParsed at once
none
staticQparse($str)
Quick static method to do setText(), parse() and getParsed at once