Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
NEWLINE = '[newline\0]'
TYPE_DEFAULT = 'default'
TYPE_SINGLE = 'single'
NAME_CHARSET = '^\[\]=\s'
STATE_SCAN = '0'
STATE_SCANATTRS = '1'
STATE_PARSEVALUE = '2'
string $_buffer = ''
The buffer
Zend_Markup_Token $_current = ''
Current token
int $_pointer = '0'
Current pointer
array $_searchedStoppers = 'array'
Stoppers that we are searching for
int $_state = 'self'
State
array $_tags = 'array'
Tag information
array $_temp = ''
Temporary tag storage
array $_tokens = 'array'
Token array
Zend_Markup_TokenList $_tree = ''
Token tree
string $_value = ''
Source to tokenize
int $_valueLen = '0'
Length of the value
_addToSearchedStoppers(
Zend_Markup_Token $token
)
:
void
Add to searched stoppers
_checkTagDeclaration(
string $name
)
:
void
Check if there is a tag declaration, and if it isnt there, add it
_createTree(
)
:
void
Parse the token array into a tree
_getType(
string $name
)
:
string
Check the tag's type
_isStopper(
string $tag
)
:
bool
Check if the tag is a stopper
_removeFromSearchedStoppers(
Zend_Markup_Token $token
)
:
void
Remove from searched stoppers
_tokenize(
)
:
void
Tokenize
parse(
string $value
)
:
Zend_Markup_TokenList
Prepare the parsing of a bbcode string, the real parsing is done in {@link _parse()}