Form/Decorator/Abstract.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_Form
\Zend_Form_Decorator_Abstract
Package: Zend_Form\Decorator










Zend_Form_Decorator_Abstract
- Implements
- Children
- \Zend_Dojo_Form_Decorator_DijitContainer
- \Zend_Form_Decorator_Errors
- \Zend_Form_Decorator_Fieldset
- \Zend_Form_Decorator_ViewHelper
- \Zend_Form_Decorator_FormErrors
- \Zend_Form_Decorator_Callback
- \Zend_Form_Decorator_Form
- \Zend_Form_Decorator_Tooltip
- \Zend_Form_Decorator_Label
- \Zend_Form_Decorator_File
- \Zend_Form_Decorator_Captcha_ReCaptcha
- \Zend_Form_Decorator_Captcha_Word
- \Zend_Form_Decorator_Image
- \Zend_Form_Decorator_Captcha
- \Zend_Form_Decorator_Description
- \Zend_Form_Decorator_FormElements
- \Zend_Form_Decorator_ViewScript
- \Zend_Form_Decorator_DtDdWrapper
- \Zend_Form_Decorator_HtmlTag
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Version
- $Id$
Constants
Properties
Methods

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

clearOptions() : \Zend_Form_Decorator_AbstractClear all options
Returns
| Type | Description |
|---|---|
| \Zend_Form_Decorator_Abstract |

getElement() : \Zend_Form_Element | \Zend_FormRetrieve current element
Returns
| Type | Description |
|---|---|
| \Zend_Form_Element | \Zend_Form |

getOption(string $key) : mixedGet option
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $key | string |
| Type | Description |
|---|---|
| mixed |

getPlacement() : stringDetermine if decorator should append or prepend content
Returns
| Type | Description |
|---|---|
| string |

getSeparator() : stringRetrieve separator to use between old and new content
Returns
| Type | Description |
|---|---|
| string |

render(string $content) : stringDecorate content and/or element
Parameters
Returns
Throws
| Name | Type | Description |
|---|---|---|
| $content | string |
| Type | Description |
|---|---|
| string |
| Exception | Description |
|---|---|
| \Zend_Form_Decorator_Exception | when unimplemented |

setConfig(\Zend_Config $config) : \Zend_Form_Decorator_AbstractSet options from config object
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $config | \Zend_Config |
| Type | Description |
|---|---|
| \Zend_Form_Decorator_Abstract |

setElement(\Zend_Form_Element | \Zend_Form $element) : \Zend_Form_Decorator_AbstractSet current form element
Parameters
Returns
Throws
| Name | Type | Description |
|---|---|---|
| $element | \Zend_Form_Element | \Zend_Form |
| Type | Description |
|---|---|
| \Zend_Form_Decorator_Abstract |
| Exception | Description |
|---|---|
| \Zend_Form_Decorator_Exception | on invalid element type |

setOption(string $key, mixed $value) : \Zend_Form_Decorator_AbstractSet option
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $key | string | |
| $value | mixed |
| Type | Description |
|---|---|
| \Zend_Form_Decorator_Abstract |

setOptions(array $options) : \Zend_Form_Decorator_AbstractSet options
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $options | array |
| Type | Description |
|---|---|
| \Zend_Form_Decorator_Abstract |