Markup/Renderer/Html.php
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-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Markup
- Subpackage
- Renderer
- Version
- $Id$
\Zend_Markup_Renderer_Html
Package: Zend_Markup\Renderer







HTML renderer
- Parent(s)
- \Zend_Markup_Renderer_RendererAbstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

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

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())Element groups
Default value
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
Methods

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

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

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

checkColor(string $color) : boolstatic
Check if a color is a valid HTML color
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $color | string |
| Type | Description |
|---|---|
| bool |

isValidUri(string $uri) : boolstatic
Check if the URI is valid
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $uri | string |
| Type | Description |
|---|---|
| bool |

renderAttributes(\Zend_Markup_Token $token, array $attributes = array()) : stringstatic
Render some attributes
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $token | \Zend_Markup_Token | |
| $attributes | array |
| Type | Description |
|---|---|
| string |