Horde_View_Helper_Form
extends Horde_View_Helper_Base
in package
Abstract class for Horde_View_Helper objects.
Tags
Table of Contents
- $_view : Horde_View
- The parent view invoking the helper.
- $_instanceTag : mixed
- __call() : mixed
- Call chaining so members of the view can be called (including other helpers).
- __construct() : mixed
- Creates a helper for $view.
- __get() : mixed
- Proxy on undefined property access (get).
- __set() : mixed
- Proxy on undefined property access (set).
- checkBox() : mixed
- fieldsFor() : mixed
- fileField() : mixed
- formFor() : mixed
- hiddenField() : mixed
- label() : mixed
- Returns a label tag tailored for labelling an input field for a specified attribute (identified by $method) on an object assigned to the template (identified by $objectName).
- passwordField() : mixed
- radioButton() : mixed
- textArea() : mixed
- textField() : mixed
Properties
$_view
The parent view invoking the helper.
protected
Horde_View
$_view
$_instanceTag
private
mixed
$_instanceTag
= 'Horde_View_Helper_Form_InstanceTag_Form'
Methods
__call()
Call chaining so members of the view can be called (including other helpers).
public
__call(string $method, array<string|int, mixed> $args) : mixed
Parameters
- $method : string
-
The method.
- $args : array<string|int, mixed>
-
The parameters for the method.
Return values
mixed —The result of the method.
__construct()
Creates a helper for $view.
public
__construct(Horde_View $view) : mixed
Parameters
- $view : Horde_View
-
The view to help.
Return values
mixed —__get()
Proxy on undefined property access (get).
public
__get(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —__set()
Proxy on undefined property access (set).
public
__set(mixed $name, mixed $value) : mixed
Parameters
- $name : mixed
- $value : mixed
Return values
mixed —checkBox()
public
checkBox(mixed $objectName, mixed $method[, mixed $options = array() ][, mixed $checkedValue = '1' ][, mixed $uncheckedValue = '0' ]) : mixed
Parameters
- $objectName : mixed
- $method : mixed
- $options : mixed = array()
- $checkedValue : mixed = '1'
- $uncheckedValue : mixed = '0'
Return values
mixed —fieldsFor()
public
fieldsFor(mixed $objectName) : mixed
Parameters
- $objectName : mixed
Return values
mixed —fileField()
public
fileField(mixed $objectName, mixed $method[, mixed $options = array() ]) : mixed
Parameters
- $objectName : mixed
- $method : mixed
- $options : mixed = array()
Return values
mixed —formFor()
public
formFor(mixed $objectName) : mixed
Parameters
- $objectName : mixed
Return values
mixed —hiddenField()
public
hiddenField(mixed $objectName, mixed $method[, mixed $options = array() ]) : mixed
Parameters
- $objectName : mixed
- $method : mixed
- $options : mixed = array()
Return values
mixed —label()
Returns a label tag tailored for labelling an input field for a specified attribute (identified by $method) on an object assigned to the template (identified by $objectName).
public
label(mixed $objectName, mixed $method, mixed $text[, mixed $options = array() ]) : mixed
The text of label will default to the attribute name unless you specify it explicitly. Additional options on the label tag can be passed as a hash with $options. These options will be tagged onto the HTML as an HTML element attribute as in the example shown.
Examples:
$this->label('post', 'title');
// =>
$this->label('post', 'title', 'A short title')
// =>
$this->label('post', 'title', 'A short title',
array('class' => 'title_label'));
// =>
Parameters
- $objectName : mixed
- $method : mixed
- $text : mixed
- $options : mixed = array()
Return values
mixed —passwordField()
public
passwordField(mixed $objectName, mixed $method[, mixed $options = array() ]) : mixed
Parameters
- $objectName : mixed
- $method : mixed
- $options : mixed = array()
Return values
mixed —radioButton()
public
radioButton(mixed $objectName, mixed $method, mixed $tagValue[, mixed $options = array() ]) : mixed
Parameters
- $objectName : mixed
- $method : mixed
- $tagValue : mixed
- $options : mixed = array()
Return values
mixed —textArea()
public
textArea(mixed $objectName, mixed $method[, mixed $options = array() ]) : mixed
Parameters
- $objectName : mixed
- $method : mixed
- $options : mixed = array()
Return values
mixed —textField()
public
textField(mixed $objectName, mixed $method[, mixed $options = array() ]) : mixed
Parameters
- $objectName : mixed
- $method : mixed
- $options : mixed = array()