API Documentation

Markup/Parser/Bbcode.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Markup
subpackage
Parser
version
$Id: Bbcode.php 21128 2010-02-21 15:36:07Z kokx $
Classes
Zend_Markup_Parser_Bbcode

Description

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.

Zend_Markup_Parser_Bbcode

Implements
Zend_Markup_Parser_ParserInterface
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Markup
subpackage
Parser
Constants
NEWLINE
TYPE_DEFAULT
TYPE_SINGLE
NAME_CHARSET
STATE_SCAN
STATE_SCANATTRS
STATE_PARSEVALUE
Properties
$_tree
$_current
$_value
$_valueLen
$_pointer
$_buffer
$_temp
$_searchedStoppers
$_tags
$_tokens
$_state
Methods
parse
_tokenize
_createTree
_checkTagDeclaration
_getType
_isStopper
_addToSearchedStoppers
_removeFromSearchedStoppers

Description

Constants

NEWLINE

 NEWLINE = '[newline\0]'

Details

value
[newline\0]

TYPE_DEFAULT

 TYPE_DEFAULT = 'default'

Details

value
default

TYPE_SINGLE

 TYPE_SINGLE = 'single'

Details

value
single

NAME_CHARSET

 NAME_CHARSET = '^\[\]=\s'

Details

value
^\[\]=\s

STATE_SCAN

 STATE_SCAN = '0'

Details

value
0

STATE_SCANATTRS

 STATE_SCANATTRS = '1'

Details

value
1

STATE_PARSEVALUE

 STATE_PARSEVALUE = '2'

Details

value
2

Properties

$_buffer

string $_buffer = ''

The buffer

Details

$_buffer
string
visibility
protected
default
final
false
static
false

$_current

Zend_Markup_Token $_current = ''

Current token

Details

$_current
Zend_Markup_Token
visibility
protected
default
final
false
static
false

$_pointer

int $_pointer = '0'

Current pointer

Details

$_pointer
int
visibility
protected
default
0
final
false
static
false

$_searchedStoppers

array $_searchedStoppers = 'array'

Stoppers that we are searching for

Details

$_searchedStoppers
array
visibility
protected
default
array
final
false
static
false

$_state

int $_state = 'self'

State

Details

$_state
int
visibility
protected
default
self
final
false
static
false

$_tags

array $_tags = 'array'

Tag information

Details

$_tags
array
visibility
protected
default
array
final
false
static
false

$_temp

array $_temp = ''

Temporary tag storage

Details

$_temp
array
visibility
protected
default
final
false
static
false

$_tokens

array $_tokens = 'array'

Token array

Details

$_tokens
array
visibility
protected
default
array
final
false
static
false

$_tree

Zend_Markup_TokenList $_tree = ''

Token tree

Details

$_tree
Zend_Markup_TokenList
visibility
protected
default
final
false
static
false

$_value

string $_value = ''

Source to tokenize

Details

$_value
string
visibility
protected
default
final
false
static
false

$_valueLen

int $_valueLen = '0'

Length of the value

Details

$_valueLen
int
visibility
protected
default
0
final
false
static
false

Methods

_addToSearchedStoppers

_addToSearchedStoppers( Zend_Markup_Token $token ) : void

Add to searched stoppers

Arguments
$token
Zend_Markup_Token
Details
visibility
protected
final
false
static
false

_checkTagDeclaration

_checkTagDeclaration( string $name ) : void

Check if there is a tag declaration, and if it isnt there, add it

Arguments
$name
string
Details
visibility
protected
final
false
static
false

_createTree

_createTree( ) : void

Parse the token array into a tree

Details
visibility
public
final
false
static
false

_getType

_getType( string $name ) : string

Check the tag's type

Arguments
$name
string
Output
string
Details
visibility
protected
final
false
static
false

_isStopper

_isStopper( string $tag ) : bool

Check if the tag is a stopper

Arguments
$tag
string
Output
bool
Details
visibility
protected
final
false
static
false

_removeFromSearchedStoppers

_removeFromSearchedStoppers( Zend_Markup_Token $token ) : void

Remove from searched stoppers

Arguments
$token
Zend_Markup_Token
Details
visibility
protected
final
false
static
false

_tokenize

_tokenize( ) : void

Tokenize

Details
visibility
protected
final
false
static
false

parse

parse( string $value ) : Zend_Markup_TokenList

Prepare the parsing of a bbcode string, the real parsing is done in {@link _parse()}

Arguments
$value
string
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.