PHP Класс Habari\FormControlAggregate

Наследование: extends FormControl
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$outpre

Открытые методы

Метод Описание
_extend ( ) Called upon construct. Sets control properties
get ( Theme $theme ) : string Render this control Ensures that this control has an id property
get_label_id ( ) : null | string Returns the ID of any wrapping label
get_visualizer ( ) Provide the HTML id of the visualizer element, which is different from the input element that provides a value
label ( string $label ) : FormControlLabel Shortcut to wrap this control in a label This version for this control defaults to use the control.label.outsideright template
pre_out ( ) : string Return the HTML/script required for this control. Do it only once.
process ( ) Obtain the value of this control as supplied by the incoming $_POST values
set_label_id ( string $id ) : FormControlAggregate Set the HTML id of the label to change when the aggregation value changes
set_selector ( string $class ) : FormControlAggregate Set the selector used to find checkboxes whose values should be aggregated

Описание методов

_extend() публичный Метод

Called upon construct. Sets control properties
public _extend ( )

get() публичный Метод

Render this control Ensures that this control has an id property
public get ( Theme $theme ) : string
$theme Theme The theme used to render the control
Результат string The HTML output of the control

get_label_id() публичный Метод

Returns the ID of any wrapping label
public get_label_id ( ) : null | string
Результат null | string

get_visualizer() публичный Метод

Provide the HTML id of the visualizer element, which is different from the input element that provides a value
public get_visualizer ( )

label() публичный Метод

Shortcut to wrap this control in a label This version for this control defaults to use the control.label.outsideright template
public label ( string $label ) : FormControlLabel
$label string The caption of the label
Результат FormControlLabel The label control is returned. FYI, THIS BREAKS THE FLUENT INTERFACE.

pre_out() публичный Метод

Return the HTML/script required for this control. Do it only once.
public pre_out ( ) : string
Результат string The HTML/javascript required for this control.

process() публичный Метод

Obtain the value of this control as supplied by the incoming $_POST values
public process ( )

set_label_id() публичный Метод

Set the HTML id of the label to change when the aggregation value changes
public set_label_id ( string $id ) : FormControlAggregate
$id string The HTML id of the label to update
Результат FormControlAggregate $this

set_selector() публичный Метод

Set the selector used to find checkboxes whose values should be aggregated
public set_selector ( string $class ) : FormControlAggregate
$class string The CSS selector to use for aggregation
Результат FormControlAggregate $this

Описание свойств

$outpre статическое публичное свойство

static public $outpre