API Documentation

Zend/Markup/Parser/Textile.php

Show: inherited
Table of Contents

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.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Markup  
Subpackage
Parser  
Version
$Id: Textile.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Markup_Parser_Textile

Package: Zend\Markup\Parser

Implements
\Zend_Markup_Parser_ParserInterface
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

Constant  STATE_SCAN = 0
Constant  STATE_NEW_PARAGRAPH = 1
Constant  STATE_NEWLINE = 2
Constant  MATCH_ATTR_CLASSID = '\((?<attr_class>[a-zA-Z0-9_]+)?(?:\#(?<attr_id>[a-zA-Z0-9_]+))?\)'
Constant  MATCH_ATTR_STYLE = "\{(?<attr_style>[^\}\n]+)\}"
Constant  MATCH_ATTR_LANG = '\[(?<attr_lang>[a-zA-Z_]+)\]'
Constant  MATCH_ATTR_ALIGN = '(?<attr_align>\<\>?|\>|=)'

Properties

Propertyprotectedstring  $_buffer= ''''

The buffer

Default value''Details
Type
string
Propertyprotected\Zend_Markup_Token  $_current= ''

Current token

Details
Type
\Zend_Markup_Token
Propertyprotectedint  $_pointer= '0'

Current pointer

Default value0Details
Type
int
Propertyprotectedarray  $_simpleTags= 'array( '*' => 'strong''

Simple tag translation

Default valuearray( '*' => 'strong'Details
Type
array
Propertyprotectedarray  $_tokens= 'array()'

Token array

Default valuearray()Details
Type
array
Propertyprotected\Zend_Markup_TokenList  $_tree= ''

Token tree

Details
Type
\Zend_Markup_TokenList
Propertyprotectedstring  $_value= ''''

Source to tokenize

Default value''Details
Type
string
Propertyprotectedint  $_valueLen= '0'

Length of the value

Default value0Details
Type
int

Methods

methodprotected_createTree( ) : void

Create a tree from the tokenized text

methodprotected_extractAttributes( array $matches ) : array

Extract the attributes

Parameters
Name Type Description
$matches array
Returns
Type Description
array
methodprotected_isStopper( array $token, \Zend_Markup_Token $current ) : bool

Check if a tag is a stopper

Parameters
Name Type Description
$token array
$current \Zend_Markup_Token
Returns
Type Description
bool
methodprotected_tokenize( ) : array

Tokenize a textile string

Returns
Type Description
array
methodpublicparse( string $value ) : array

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

Parameters
Name Type Description
$value string
Returns
Type Description
array
Documentation was generated by DocBlox 0.15.1.