API Documentation

Form/Decorator/Form.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Form
subpackage
Decorator
Classes
Zend_Form_Decorator_Form

Description

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.

Zend_Form_Decorator_Form

Extends from
Zend_Form_Decorator_Abstract
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Form
subpackage
Decorator
version
$Id: Form.php 20096 2010-01-06 02:05:09Z bkarwin $
Properties
$_helper
Methods
setHelper
getHelper
getOptions
render

Description

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.

Properties

$_helper

string $_helper = 'form'

Default view helper

Details

$_helper
string
visibility
protected
default
form
final
false
static
false

Methods

getHelper

getHelper( ) : string

Get view helper for rendering form

Output
string
Details
visibility
public
final
false
static
false

getOptions

getOptions( ) : array

Retrieve decorator options

Assures that form action and method are set, and sets appropriate encoding type if current method is POST.

Output
array
Details
visibility
public
final
false
static
false

render

render( string $content ) : string

Render a form

Replaces $content entirely from currently set element.

Arguments
$content
string
Output
string
Details
visibility
public
final
false
static
false

setHelper

setHelper( string $helper ) : Zend_Form_Decorator_Form

Set view helper for rendering form

Arguments
$helper
string
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.