\Horde_View_Helper_FormTag

Abstract class for Horde_View_Helper objects.

All helpers hold a link back to the instance of the view. The undefined property handlers (get()/call() methods) are used to mix helpers together, effectively placing them on the same pane of glass (the view) and allowing any helper to call any other.

Summary

Methods
Properties
Constants
__construct()
__get()
__set()
__call()
formTag()
endFormTag()
selectTag()
optionTag()
textFieldTag()
hiddenFieldTag()
fileFieldTag()
passwordFieldTag()
textAreaTag()
checkBoxTag()
radioButtonTag()
submitTag()
imageSubmitTag()
No public properties found
No constants found
No protected methods found
$_view
N/A
extraTagsForForm()
formTagHtml()
htmlOptionsForForm()
No private properties found
N/A

Properties

$_view

$_view : \Horde_View

The parent view invoking the helper.

Type

\Horde_View

Methods

__construct()

__construct(\Horde_View  $view) 

Creates a helper for $view.

Parameters

\Horde_View $view

The view to help.

__get()

__get(  $name) 

Proxy on undefined property access (get).

Parameters

$name

__set()

__set(  $name,   $value) 

Proxy on undefined property access (set).

Parameters

$name
$value

__call()

__call(string  $method, array  $args) : mixed

Call chaining so members of the view can be called (including other helpers).

Parameters

string $method

The method.

array $args

The parameters for the method.

Returns

mixed —

The result of the method.

formTag()

formTag(  $urlForOptions = array(),   $options = array()) 

Parameters

$urlForOptions
$options

endFormTag()

endFormTag() 

selectTag()

selectTag(  $name,   $optionTags = null,   $options = array()) 

Parameters

$name
$optionTags
$options

optionTag()

optionTag(  $value = null,   $label = null,   $selected = false,   $options = array()) 

Parameters

$value
$label
$selected
$options

textFieldTag()

textFieldTag(  $name,   $value = null,   $options = array()) 

Parameters

$name
$value
$options

hiddenFieldTag()

hiddenFieldTag(  $name,   $value = null,   $options = array()) 

Parameters

$name
$value
$options

fileFieldTag()

fileFieldTag(  $name,   $options = array()) 

Parameters

$name
$options

passwordFieldTag()

passwordFieldTag(  $name = 'password',   $value = null,   $options = array()) 

Parameters

$name
$value
$options

textAreaTag()

textAreaTag(  $name,   $content = null,   $options = array()) 

Parameters

$name
$content
$options

checkBoxTag()

checkBoxTag(  $name,   $value = '1',   $checked = false,   $options = array()) 

Parameters

$name
$value
$checked
$options

radioButtonTag()

radioButtonTag(  $name,   $value,   $checked = false,   $options = array()) 

Parameters

$name
$value
$checked
$options

submitTag()

submitTag(  $value = 'Save changes',   $options = array()) 

Parameters

$value
$options

imageSubmitTag()

imageSubmitTag(  $source,   $options = array()) 

Parameters

$source
$options

extraTagsForForm()

extraTagsForForm(  $htmlOptions) 

Parameters

$htmlOptions

formTagHtml()

formTagHtml(  $htmlOptions) 

Parameters

$htmlOptions

htmlOptionsForForm()

htmlOptionsForForm(  $urlForOptions,   $options) 

Parameters

$urlForOptions
$options