Form/Decorator/Form.php

Show: PublicProtectedPrivateinherited
Table of Contents
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_Form

Package: Zend_Form\Decorator
Zend_Form_Decorator_Form
Render a Zend_Form object. Accepts following options: - separator: Separator to use between elements - helper: which view helper to use when rendering form. Should accept three arguments, string content, a name, and an array of attributes. Any other options passed will be used as HTML attributes of the form 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

>VPropertyprotectedstring $_helper = 'form'
Default view helper
Default value'form'Details
Type
string

Methods

methodpublicgetHelper() : string

Get view helper for rendering form

Returns
TypeDescription
string
methodpublicgetOptions() : array

Retrieve decorator options

Assures that form action and method are set, and sets appropriate encoding type if current method is POST.
Returns
TypeDescription
array
methodpublicrender(string $content) : string

Render a form

Replaces $content entirely from currently set element.
Parameters
NameTypeDescription
$contentstring
Returns
TypeDescription
string
methodpublicsetHelper(string $helper) : \Zend_Form_Decorator_Form

Set view helper for rendering form

Parameters
NameTypeDescription
$helperstring
Returns
TypeDescription
\Zend_Form_Decorator_Form
Documentation was generated by phpDocumentor 2.2.0 .