API Documentation

Markup/Renderer/RendererAbstract.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
Renderer
version
$Id: RendererAbstract.php 22198 2010-05-19 13:33:52Z kokx $
Classes
Zend_Markup_Renderer_RendererAbstract

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_Renderer_RendererAbstract

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
Renderer
Constants
TYPE_CALLBACK
TYPE_REPLACE
TYPE_ALIAS
Properties
$_markups
$_parser
$_filter
$_defaultFilter
$_group
$_groups
$_pluginLoader
$_token
$_encoding
Methods
__construct
setParser
getParser
getPluginLoader
setEncoding
getEncoding
addMarkup
removeMarkup
clearMarkups
render
_render
_getGroup
_execute
_filter
_getMarkupName
_resolveMarkupName
_getMarkupType
_executeReplace
_executeSingleReplace
getDefaultFilter
addDefaultFilter
setDefaultFilter
getFilter
addFilter
setFilter
addGroup
getGroups
addDefaultFilters

Description

Defines the basic rendering functionality

Constants

TYPE_CALLBACK

 TYPE_CALLBACK = '4'

Details

value
4

TYPE_REPLACE

 TYPE_REPLACE = '8'

Details

value
8

TYPE_ALIAS

 TYPE_ALIAS = '16'

Details

value
16

Properties

$_defaultFilter

Zend_Filter $_defaultFilter = ''

Filter chain

Details

$_defaultFilter
Zend_Filter
visibility
protected
default
final
false
static
false

$_encoding

string $_encoding = 'UTF-8'

Encoding

Details

$_encoding
string
visibility
protected
default
UTF-8
final
false
static
true

$_filter

bool $_filter = ''

What filter to use

Details

$_filter
bool
visibility
protected
default
final
false
static
false

$_group

string $_group = ''

The current group

Details

$_group
string
visibility
protected
default
final
false
static
false

$_groups

array $_groups = 'array'

Groups definition

Details

$_groups
array
visibility
protected
default
array
final
false
static
false

$_markups

array $_markups = 'array'

Tag info

Details

$_markups
array
visibility
protected
default
array
final
false
static
false

$_parser

Zend_Markup_Parser_ParserInterface $_parser = ''

Parser

Details

$_parser
Zend_Markup_Parser_ParserInterface
visibility
protected
default
final
false
static
false

$_pluginLoader

Zend_Loader_PluginLoader $_pluginLoader = ''

Plugin loader for tags

Details

$_pluginLoader
Zend_Loader_PluginLoader
visibility
protected
default
final
false
static
false

$_token

Zend_Markup_Token $_token = ''

The current token

Details

$_token
Zend_Markup_Token
visibility
protected
default
final
false
static
false

Methods

__construct

__construct( array|Zend_Config $options = array ) : void

Constructor

Arguments
$options
arrayZend_Config
Details
visibility
public
final
false
static
false

_execute

_execute( Zend_Markup_Token $token ) : string

Execute the token

Arguments
$token
Zend_Markup_Token
Output
string
Details
visibility
protected
final
false
static
false

_executeReplace

_executeReplace( Zend_Markup_Token $token, array $tag ) : string

Execute a replace token

Arguments
$token
Zend_Markup_Token
$tag
array
Output
string
Details
visibility
protected
final
false
static
false

_executeSingleReplace

_executeSingleReplace( Zend_Markup_Token $token, array $tag ) : string

Execute a single replace token

Arguments
$token
Zend_Markup_Token
$tag
array
Output
string
Details
visibility
protected
final
false
static
false

_filter

_filter( string $value ) : string

Filter method

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

_getGroup

_getGroup( Zend_Markup_Token $token ) : string|bool

Get the group of a token

Arguments
$token
Zend_Markup_Token
Output
string|bool
Details
visibility
protected
final
false
static
false

_getMarkupName

_getMarkupName(  $token ) : string

Get the markup name

Arguments
$token
Zend_Markup_Token
Output
string
Details
visibility
protected
final
false
static
false

_getMarkupType

_getMarkupType( string $name ) : false|int

Retrieve markup type

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

_render

_render( Zend_Markup_Token $token ) : string

Render a single token

Arguments
$token
Zend_Markup_Token
Output
string
Details
visibility
protected
final
false
static
false

_resolveMarkupName

_resolveMarkupName( string $name ) : string

Resolve aliases for a markup name

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

addDefaultFilter

addDefaultFilter( string $filter,  $placement = Zend_Filter ) : void

Add a default filter

Arguments
$filter
string
$placement
Details
visibility
public
final
false
static
false

addDefaultFilters

addDefaultFilters( ) : void

Set the default filters

Details
visibility
public
final
false
static
false

addFilter

addFilter( Zend_Filter_Interface $filter, string $markup, string $placement = Zend_Filter ) : Zend_Markup_Renderer_RendererAbstract

Add a filter for an existing markup

Arguments
$filter
Zend_Filter_Interface
$markup
string
$placement
string
Details
visibility
public
final
false
static
false

addGroup

addGroup( string $name, array $allowedInside = array, array $allowsInside = array ) : void

Add a render group

Arguments
$name
string
$allowedInside
array
$allowsInside
array
Details
visibility
public
final
false
static
false

addMarkup

addMarkup( string $name, string $type, array $options ) : Zend_Markup_Renderer_RendererAbstract

Add a new markup

Arguments
$name
string
$type
string
$options
array
Details
visibility
public
final
false
static
false

clearMarkups

clearMarkups( ) : void

Remove the default tags

Details
visibility
public
final
false
static
false

getDefaultFilter

getDefaultFilter( ) : void

Get the default filter

Details
visibility
public
final
false
static
false

getEncoding

getEncoding( ) : string

Get the renderer's encoding

Output
string
Details
visibility
public
final
false
static
true

getFilter

getFilter( string $markup ) : Zend_Filter_Interface

Get the filter for an existing markup

Arguments
$markup
string
Details
visibility
public
final
false
static
false

getGroups

getGroups( ) : array

Get group definitions

Output
array
Details
visibility
public
final
false
static
false

getParser

getParser( ) : Zend_Markup_Parser_ParserInterface

Get the parser

Details
visibility
public
final
false
static
false

getPluginLoader

getPluginLoader( ) : Zend_Loader_PluginLoader

Get the plugin loader

Details
visibility
public
final
false
static
false

removeMarkup

removeMarkup( string $name ) : void

Remove a markup

Arguments
$name
string
Details
visibility
public
final
false
static
false

render

render(  $value ) : string

Render function

Arguments
$value
Output
string
Details
visibility
public
final
false
static
false

setDefaultFilter

setDefaultFilter( Zend_Filter_Interface $filter ) : void

Set the default filter

Arguments
$filter
Zend_Filter_Interface
Details
visibility
public
final
false
static
false

setEncoding

setEncoding( string $encoding ) : void

Set the renderer's encoding

Arguments
$encoding
string
Details
visibility
public
final
false
static
true

setFilter

setFilter( Zend_Filter_Interface $filter, string $markup ) : Zend_Markup_Renderer_RendererAbstract

Set the filter for an existing

Arguments
$filter
Zend_Filter_Interface
$markup
string
Details
visibility
public
final
false
static
false

setParser

setParser( Zend_Markup_Parser_ParserInterface $parser ) : Zend_Markup_Renderer_RendererAbstract

Set the parser

Arguments
$parser
Zend_Markup_Parser_ParserInterface
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.