BB code string parser class
Located in /stringparser_bbcode.class.php (line 55)
StringParser | --StringParser_BBCode
Global setting: case sensitive
Defined maximum occurrences
Allow mixed attribute types (e.g. [code=bla attr=blub])
Do not output but return the tree
Paragraph handling parameters
String parser mode
The BBCode string parser works in search mode
Registered parsers
Root content type
Root paragraph handling enabled
Whether to call validation function again (with $action == 'validate_auto') when closetag comes
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 mixed attribute types flag
If set, [code=val1 attr=val2] will cause 2 attributes to be parsed: 'default' will have value 'val1', 'attr' will have value 'val2'. If not set, only one attribute 'default' will have the value 'val1 attr=val2' (the default and original behaviour)
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
Set validate again flag
If this is set to true, the class calls the validation function again with $action == 'validate_again' when closetag comes.
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
Get canonical name of a code
Handle paragraphs
Handle status
Search for a paragraph node in tree in upward direction
Is a node closeable?
Is a node openable?
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
Revalidate codes when close tags appear
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 Mon, 10 Dec 2007 13:29:48 +0100 by phpDocumentor 1.4.0