PHP Class Habari\FormControlLabel

Inheritance: extends FormContainer
Show file Open project: habari/system

Public Properties

Property Type Description
$label

Public Methods

Method Description
_extend ( ) Be sure that the name of the label isn't added as an attribute of the label tag
get ( Theme $theme ) : string Produce HTML output for all this fieldset and all contained controls
set_for ( FormControl $for ) : FormControlLabel Apply this label to a control
set_label ( string $label ) : FormControlLabel Set the label text
wrap ( string $label, FormControl $control ) : FormControl Create a label for a control

Method Details

_extend() public method

Be sure that the name of the label isn't added as an attribute of the label tag
public _extend ( )

get() public method

Produce HTML output for all this fieldset and all contained controls
public get ( Theme $theme ) : string
$theme Theme
return string HTML that will render this control in the form

set_for() public method

Apply this label to a control
public set_for ( FormControl $for ) : FormControlLabel
$for FormControl The control that this label is for
return FormControlLabel $this

set_label() public method

Set the label text
public set_label ( string $label ) : FormControlLabel
$label string The text of the label
return FormControlLabel $this

wrap() public static method

Create a label for a control
public static wrap ( string $label, FormControl $control ) : FormControl
$label string The label of the control
$control FormControl The control to label
return FormControl The passed $control value

Property Details

$label public property

public $label