Form/Decorator/Image.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
- Subpackage
- Decorator
\Zend_Form_Decorator_Image
Package: Zend_Form\Decorator
Zend_Form_Decorator_Image
Accepts the options:
- separator: separator to use between image and content (defaults to PHP_EOL)
- placement: whether to append or prepend label to content (defaults to append)
- tag: if set, used to wrap the label in an additional HTML tag
Any other options passed will be used as HTML attributes of the image tag.
- Parent(s)
- \Zend_Form_Decorator_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Version
- $Id$
Properties
array $_attribBlacklist = array('helper', 'placement', 'separator', 'tag')
Attributes that should not be passed to helper
Default value
array('helper', 'placement', 'separator', 'tag')
Details- Type
- array
Methods
render(string $content) : string
Render a form image
Parameters
Returns
Name | Type | Description |
---|---|---|
$content | string |
Type | Description |
---|---|
string |
setTag(string $tag) : \Zend_Form_Decorator_Image
Set HTML tag with which to surround label
Parameters
Returns
Name | Type | Description |
---|---|---|
$tag | string |
Type | Description |
---|---|
\Zend_Form_Decorator_Image |