API Documentation

Markup/Parser/Textile.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: Textile.php 20277 2010-01-14 14:17:12Z kokx $
Classes
Zend_Markup_Parser_Textile

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_Textile

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
STATE_SCAN
STATE_NEW_PARAGRAPH
STATE_NEWLINE
MATCH_ATTR_CLASSID
MATCH_ATTR_STYLE
MATCH_ATTR_LANG
MATCH_ATTR_ALIGN
Properties
$_tree
$_current
$_value
$_valueLen
$_pointer
$_buffer
$_simpleTags
$_tokens
Methods
parse
_tokenize
_createTree
_isStopper
_extractAttributes

Description

Constants

STATE_SCAN

 STATE_SCAN = '0'

Details

value
0

STATE_NEW_PARAGRAPH

 STATE_NEW_PARAGRAPH = '1'

Details

value
1

STATE_NEWLINE

 STATE_NEWLINE = '2'

Details

value
2

MATCH_ATTR_CLASSID

 MATCH_ATTR_CLASSID = '\((?<attr_class>[a-zA-Z0-9_]+)?(?:\#(?<attr_id>[a-zA-Z0-9_]+))?\)'

Details

value
\((?<attr_class>[a-zA-Z0-9_]+)?(?:\#(?<attr_id>[a-zA-Z0-9_]+))?\)

MATCH_ATTR_STYLE

 MATCH_ATTR_STYLE = '\{(?<attr_style>[^\}\n]+)\}'

Details

value
\{(?<attr_style>[^\}\n]+)\}

MATCH_ATTR_LANG

 MATCH_ATTR_LANG = '\[(?<attr_lang>[a-zA-Z_]+)\]'

Details

value
\[(?<attr_lang>[a-zA-Z_]+)\]

MATCH_ATTR_ALIGN

 MATCH_ATTR_ALIGN = '(?<attr_align>\<\>?|\>|=)'

Details

value
(?<attr_align>\<\>?|\>|=)

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

$_simpleTags

array $_simpleTags = 'array'

Simple tag translation

Details

$_simpleTags
array
visibility
protected
default
array
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

_createTree

_createTree( ) : void

Create a tree from the tokenized text

Details
visibility
protected
final
false
static
false

_extractAttributes

_extractAttributes( array $matches ) : array

Extract the attributes

Arguments
$matches
array
Output
array
Details
visibility
protected
final
false
static
false

_isStopper

_isStopper( array $token, Zend_Markup_Token $current ) : bool

Check if a tag is a stopper

Arguments
$token
array
$current
Zend_Markup_Token
Output
bool
Details
visibility
protected
final
false
static
false

_tokenize

_tokenize( ) : array

Tokenize a textile string

Output
array
Details
visibility
protected
final
false
static
false

parse

parse( string $value ) : array

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

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