Overview

Packages

  • View
    • Helper

Classes

  • Horde_View_Helper_Base
  • Horde_View_Helper_Benchmark
  • Horde_View_Helper_Benchmark_Timer
  • Horde_View_Helper_Block
  • Horde_View_Helper_Capture
  • Horde_View_Helper_Capture_Base
  • Horde_View_Helper_Capture_ContentFor
  • Horde_View_Helper_Date
  • Horde_View_Helper_Debug
  • Horde_View_Helper_Form
  • Horde_View_Helper_Form_Builder
  • Horde_View_Helper_Form_InstanceTag_Base
  • Horde_View_Helper_Form_InstanceTag_Form
  • Horde_View_Helper_FormTag
  • Horde_View_Helper_Javascript
  • Horde_View_Helper_Number
  • Horde_View_Helper_Tag
  • Horde_View_Helper_Text
  • Horde_View_Helper_Text_Cycle
  • Horde_View_Helper_Url
  • Overview
  • Package
  • Class
  • Tree

Class Horde_View_Helper_Form

Horde_View_Helper_Base
Extended by Horde_View_Helper_Form
Package: View\Helper
Category: Horde
License: http://www.horde.org/licenses/bsd
Author: Mike Naberezny mike@maintainable.com
Author: Derek DeVries derek@maintainable.com
Author: Chuck Hagenbuch chuck@horde.org
Located at Horde/View/Helper/Form.php
Methods summary
public
# formFor( mixed $objectName )
public
# fieldsFor( mixed $objectName )
public
# label( mixed $objectName, mixed $method, mixed $text, mixed $options = array() )

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).

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).

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');
// => <label for="post_title">Title</label>

$this->label('post', 'title', 'A short title')
// => <label for="post_title">A short title</label>

$this->label('post', 'title', 'A short title',
             array('class' => 'title_label'));
// => <label for="post_title" class="title_label">A short title</label>
public
# textField( mixed $objectName, mixed $method, mixed $options = array() )
public
# passwordField( mixed $objectName, mixed $method, mixed $options = array() )
public
# hiddenField( mixed $objectName, mixed $method, mixed $options = array() )
public
# fileField( mixed $objectName, mixed $method, mixed $options = array() )
public
# checkBox( mixed $objectName, mixed $method, mixed $options = array(), mixed $checkedValue = '1', mixed $uncheckedValue = '0' )
public
# radioButton( mixed $objectName, mixed $method, mixed $tagValue, mixed $options = array() )
public
# textArea( mixed $objectName, mixed $method, mixed $options = array() )
Methods inherited from Horde_View_Helper_Base
__call(), __construct(), __get(), __set()
API documentation generated by ApiGen