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
$_codes
= array () (line 77)
Defined BB Codes
The registered BB codes
array
$_maxOccurrences
= array () (line 93)
Defined maximum occurrences
bool
$_mixedAttributeTypes
= false (line 143)
Allow mixed attribute types (e.g. [code=bla attr=blub])
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
bool
$_validateAgain
= false (line 150)
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
addCode (line 165)
Add a code
addParser (line 269)
Add a parser
getCodeFlag (line 402)
Get a code flag
globalCaseSensitive (line 340)
Get global case sensitive flag
mixedAttributeTypes (line 365)
Get mixed attribute types flag
removeAllCodes (line 205)
Remove all codes
removeCode (line 192)
Remove a code
setCodeFlag (line 218)
Set a code flag
setGlobalCaseSensitive (line 330)
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.
setMaxOccurrences (line 252)
Set maximum number of occurrences
setMixedAttributeTypes (line 355)
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)
setOccurrenceType (line 240)
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.
setParagraphHandlingParameters (line 311)
Set paragraph handling parameters
setRootContentType (line 289)
Set root content type
setRootParagraphHandling (line 299)
Set paragraph handling on root element
setValidateAgain (line 378)
Set validate again flag
If this is set to true, the class calls the validation function again with $action == 'validate_again' when closetag comes.
validateAgain (line 388)
Get validate again flag
_appendText (line 486)
Abstract method Append text depending on current status
_applyParsers (line 539)
Apply parsers
_breakupNodeByParagraphs (line 1267)
Break up nodes
_closeRemainingBlocks (line 965)
Abstract method: Close remaining blocks
_findNamedNode (line 992)
Find a node with a specific name in stack
_handleParagraphs (line 1202)
Handle paragraphs
_handleStatus (line 561)
Handle status
_hasParagraphAncestor (line 1250)
Search for a paragraph node in tree in upward direction
_isCloseable (line 849)
Is a node closeable?
_isOpenable (line 891)
Is a node openable?
_isOpenableWithClose (line 927)
Is a node openable by closing other nodes?
_isUseContent (line 1343)
Is this node a usecontent node
_modifyTree (line 1119)
Abstract method: Manipulate the tree
_openElement (line 774)
Open the next element
_outputNode (line 1041)
Output a node
_outputTree (line 1022)
Abstract method: Output tree
_reparseAfterCurrentBlock (line 519)
Restart parsing after current block
To achieve this the current top stack object is removed from the tree. Then the current item
_setStatus (line 420)
Set a specific status
_validateCloseTags (line 873)
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, 24 Apr 2006 10:18:39 +0200 by phpDocumentor 1.3.0RC5