$_view
$_view : \Horde_View
The parent view invoking the helper.
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.
$_view : \Horde_View
The parent view invoking the helper.
__construct(\Horde_View $view)
Creates a helper for $view.
\Horde_View | $view | The view to help. |
label( $objectName, $method, $text, $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).
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')); // =>
$objectName | ||
$method | ||
$text | ||
$options |