Markup/Renderer/Html.php
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
- Renderer
- Version
- $Id: Html.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Markup_Renderer_Html
- Parent(s)
- \Zend_Markup_Renderer_RendererAbstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
TYPE_CALLBACK
= 4- Inherited_from
- \Zend_Markup_Renderer_RendererAbstract::TYPE_CALLBACK
TYPE_REPLACE
= 8- Inherited_from
- \Zend_Markup_Renderer_RendererAbstract::TYPE_REPLACE
TYPE_ALIAS
= 16- Inherited_from
- \Zend_Markup_Renderer_RendererAbstract::TYPE_ALIAS
Properties

array $_defaultAttributes = array('id' => '', 'class' => '', 'style' => '', 'lang' => '', 'title' => '')array('id' => '', 'class' => '', 'style' => '', 'lang' => '', 'title' => '')Details- Type
- array

\Zend_Filter $_defaultFilter- Type
- \Zend_Filter
- Inherited_from
- \Zend_Markup_Renderer_RendererAbstract::$$_defaultFilter

string $_encoding = 'UTF-8''UTF-8'Details- Type
- string
- Inherited_from
- \Zend_Markup_Renderer_RendererAbstract::$$_encoding

array $_groups = array('block' => array('block', 'inline', 'block-empty', 'inline-empty', 'list'), 'inline' => array('inline', 'inline-empty'), 'list' => array('list-item'), 'list-item' => array('inline', 'inline-empty', 'list'), 'block-empty' => array(), 'inline-empty' => array())array('block' => array('block', 'inline', 'block-empty', 'inline-empty', 'list'), 'inline' => array('inline', 'inline-empty'), 'list' => array('list-item'), 'list-item' => array('inline', 'inline-empty', 'list'), 'block-empty' => array(), 'inline-empty' => array())Details- Type
- array

array $_markups = array()array()Details- Type
- array
- Inherited_from
- \Zend_Markup_Renderer_RendererAbstract::$$_markups

\Zend_Loader_PluginLoader $_pluginLoader
\Zend_Markup_Token $_token- Type
- \Zend_Markup_Token
- Inherited_from
- \Zend_Markup_Renderer_RendererAbstract::$$_token
Methods

__construct(array | \Zend_Config $options = array()) : voidConstructor
| Name | Type | Description |
|---|---|---|
| $options | array | \Zend_Config |

_execute(\Zend_Markup_Token $token) : string| Name | Type | Description |
|---|---|---|
| $token | \Zend_Markup_Token |
| Type | Description |
|---|---|
| string |

_executeReplace(\Zend_Markup_Token $token, array $markup) : stringExecute a replace token
| Name | Type | Description |
|---|---|---|
| $token | \Zend_Markup_Token | |
| $markup | array |
| Type | Description |
|---|---|
| string |

_executeSingleReplace(\Zend_Markup_Token $token, array $markup) : stringExecute a single replace token
| Name | Type | Description |
|---|---|---|
| $token | \Zend_Markup_Token | |
| $markup | array |
| Type | Description |
|---|---|
| string |

_filter(string $value) : string| Name | Type | Description |
|---|---|---|
| $value | string |
| Type | Description |
|---|---|
| string |

_getGroup(\Zend_Markup_Token $token) : string | boolGet the group of a token
Inherited from: \Zend_Markup_Renderer_RendererAbstract::_getGroup()| Name | Type | Description |
|---|---|---|
| $token | \Zend_Markup_Token |
| Type | Description |
|---|---|
| string | bool |

_getMarkupName(\Zend_Markup_Token $token) : stringGet the markup name
Inherited from: \Zend_Markup_Renderer_RendererAbstract::_getMarkupName()| Name | Type | Description |
|---|---|---|
| $token | \Zend_Markup_Token |
| Type | Description |
|---|---|
| string |

_getMarkupType(string $name) : false | intRetrieve markup type
Inherited from: \Zend_Markup_Renderer_RendererAbstract::_getMarkupType()| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| false | int |

_render(\Zend_Markup_Token $token) : string| Name | Type | Description |
|---|---|---|
| $token | \Zend_Markup_Token |
| Type | Description |
|---|---|
| string |

_resolveMarkupName(string $name) : stringResolve aliases for a markup name
Inherited from: \Zend_Markup_Renderer_RendererAbstract::_resolveMarkupName()| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| string |

addDefaultFilter(string $filter, $placement = \Zend_Filter::CHAIN_APPEND) : voidAdd a default filter
Inherited from: \Zend_Markup_Renderer_RendererAbstract::addDefaultFilter()| Name | Type | Description |
|---|---|---|
| $filter | string | |
| $placement |

addFilter(\Zend_Filter_Interface $filter, string $markup, string $placement = \Zend_Filter::CHAIN_APPEND) : \Zend_Markup_Renderer_RendererAbstractAdd a filter for an existing markup
Inherited from: \Zend_Markup_Renderer_RendererAbstract::addFilter()| Name | Type | Description |
|---|---|---|
| $filter | \Zend_Filter_Interface | |
| $markup | string | |
| $placement | string |
| Type | Description |
|---|---|
| \Zend_Markup_Renderer_RendererAbstract |

addGroup(string $name, array $allowedInside = array(), array $allowsInside = array()) : void| Name | Type | Description |
|---|---|---|
| $name | string | |
| $allowedInside | array | |
| $allowsInside | array |

addMarkup(string $name, string $type, array $options) : \Zend_Markup_Renderer_RendererAbstract| Name | Type | Description |
|---|---|---|
| $name | string | |
| $type | string | |
| $options | array |
| Type | Description |
|---|---|
| \Zend_Markup_Renderer_RendererAbstract |

checkColor(string $color) : boolCheck if a color is a valid HTML color
| Name | Type | Description |
|---|---|---|
| $color | string |
| Type | Description |
|---|---|
| bool |

clearMarkups() : voidRemove the default tags
Inherited from: \Zend_Markup_Renderer_RendererAbstract::clearMarkups()
getDefaultFilter() : voidGet the default filter
Inherited from: \Zend_Markup_Renderer_RendererAbstract::getDefaultFilter()
getEncoding() : stringGet the renderer's encoding
Inherited from: \Zend_Markup_Renderer_RendererAbstract::getEncoding()| Type | Description |
|---|---|
| string |

getFilter(string $markup) : \Zend_Filter_InterfaceGet the filter for an existing markup
Inherited from: \Zend_Markup_Renderer_RendererAbstract::getFilter()| Name | Type | Description |
|---|---|---|
| $markup | string |
| Type | Description |
|---|---|
| \Zend_Filter_Interface |

getParser() : \Zend_Markup_Parser_ParserInterface| Type | Description |
|---|---|
| \Zend_Markup_Parser_ParserInterface |

getPluginLoader() : \Zend_Loader_PluginLoaderGet the plugin loader
Inherited from: \Zend_Markup_Renderer_RendererAbstract::getPluginLoader()| Type | Description |
|---|---|
| \Zend_Loader_PluginLoader |

isValidUri(string $uri) : boolCheck if the URI is valid
| Name | Type | Description |
|---|---|---|
| $uri | string |
| Type | Description |
|---|---|
| bool |

renderAttributes(\Zend_Markup_Token $token, array $attributes = array()) : stringRender some attributes
| Name | Type | Description |
|---|---|---|
| $token | \Zend_Markup_Token | |
| $attributes | array |
| Type | Description |
|---|---|
| string |

setDefaultFilter(\Zend_Filter_Interface $filter) : voidSet the default filter
Inherited from: \Zend_Markup_Renderer_RendererAbstract::setDefaultFilter()| Name | Type | Description |
|---|---|---|
| $filter | \Zend_Filter_Interface |

setEncoding(string $encoding) : voidSet the renderer's encoding
Inherited from: \Zend_Markup_Renderer_RendererAbstract::setEncoding()| Name | Type | Description |
|---|---|---|
| $encoding | string |

setFilter(\Zend_Filter_Interface $filter, string $markup) : \Zend_Markup_Renderer_RendererAbstractSet the filter for an existing
Inherited from: \Zend_Markup_Renderer_RendererAbstract::setFilter()| Name | Type | Description |
|---|---|---|
| $filter | \Zend_Filter_Interface | |
| $markup | string |
| Type | Description |
|---|---|
| \Zend_Markup_Renderer_RendererAbstract |

setParser(\Zend_Markup_Parser_ParserInterface $parser) : \Zend_Markup_Renderer_RendererAbstract| Name | Type | Description |
|---|---|---|
| $parser | \Zend_Markup_Parser_ParserInterface |
| Type | Description |
|---|---|
| \Zend_Markup_Renderer_RendererAbstract |