StringParser_BBCodeBB code string parser class
Located in /stringparser_bbcode.class.php (line 57)
StringParser | --StringParser_BBCode
bool
addCode
(string $name, string $callback_type, string $callback_func, array $callback_params, string $content_type, array $allowed_within, array $not_allowed_within)
bool
$_caseSensitive
= true (line 117)
Global setting: case sensitive
array
$_maxOccurrences
= array () (line 93)
Defined maximum occurrences
bool
$_noOutput
= false (line 109)
Do not output but return the tree
array
$_paragraphHandling
= array (Paragraph handling parameters
int
$_parserMode
= STRINGPARSER_MODE_SEARCH (line 67)
String parser mode
The BBCode string parser works in search mode
array
$_parsers
= array () (line 85)
Registered parsers
string
$_rootContentType
= 'block' (line 101)
Root content type
bool
$_rootParagraphHandling
= false (line 125)
Root paragraph handling enabled
Inherited from StringParser
StringParser::$strict
StringParser::$_charactersAllowed
StringParser::$_charactersSearch
StringParser::$_cpos
StringParser::$_length
StringParser::$_parsing
StringParser::$_postfilters
StringParser::$_prefilters
StringParser::$_recentlyReparsed
StringParser::$_root
StringParser::$_stack
StringParser::$_status
StringParser::$_text
Add a code
Add a parser
Get a code flag
Set a code flag
Set global case sensitive flag
If this is set to true, the class normally is case sensitive, but the case_sensitive code flag may override this for a single code.
If this is set to false, all codes are case insensitive.
Set maximum number of occurrences
Set occurrence type
Example: $bbcode->setOccurrenceType ('url', 'link'); $bbcode->setMaxOccurrences ('link', 4); Would create the situation where a link may only occur four times in the hole text.
Set paragraph handling parameters
Set root content type
Set paragraph handling on root element
Abstract method Append text depending on current status
Break up nodes
Abstract method: Close remaining blocks
Find a node with a specific name in stack
Handle paragraphs
Handle status
Search for a paragraph node in tree in upward direction
Is a node openable by closing other nodes?
Is this node a usecontent node
Abstract method: Manipulate the tree
Abstract method: Output tree
Restart parsing after current block
To achieve this the current top stack object is removed from the tree. Then the current item
Set a specific status
Inherited From StringParser
StringParser::StringParser()
StringParser::addFilter()
StringParser::clearFilters()
StringParser::parse()
StringParser::_appendText()
StringParser::_appendToLastTextChild()
StringParser::_applyPostfilters()
StringParser::_applyPrefilters()
StringParser::_closeRemainingBlocks()
StringParser::_handleStatus()
StringParser::_loop()
StringParser::_modifyTree()
StringParser::_outputTree()
StringParser::_parserInit()
StringParser::_popNode()
StringParser::_pushNode()
StringParser::_reparseAfterCurrentBlock()
StringParser::_searchLoop()
StringParser::_setStatus()
StringParser::_strDetect()
StringParser::_strpos()
StringParser::_topNode()
StringParser::_topNodeVar()
Documentation generated on Sun, 14 Aug 2005 14:27:06 +0200 by phpDocumentor 1.3.0RC3