PEAR Manual
Prev |  | Next

# HTML_QuickForm_element::setLabel()

HTML_QuickForm_element::setLabel() -- Sets a label for the element

## Synopsis

    require_once 'HTML/QuickForm/element.php';

``void HTML_QuickForm_element::setLabel` (mixed $label)`

## Description

Label is a description text that will be displayed near the element. Some renderers can handle multiple labels for the element.

## Parameter

mixed `$label`

  Display text for the element

## Throws

throws no exceptions thrown

## See

see getLabel().

## Note

since 1.3

This function can not be called statically.

Prev | Home | Next
HTML_QuickForm_element::onQuickFormEvent() | Up | HTML_QuickForm_element::setName()