PHP Class Habari\FormControlCheckbox

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

Public Properties

Property Type Description
$returned_value

Public Methods

Method Description
_extend ( ) Called upon construct. Sets control properties
get ( Theme $theme ) : string Produce the control for display
process ( ) Obtain the value of this control as supplied by the incoming $_POST values
set_returned_value ( mixed $returned_value ) : FormControlCheckbox Set the value returned when this control is checked
set_value ( $value, $manually = true )

Method Details

_extend() public method

Called upon construct. Sets control properties
public _extend ( )

get() public method

Produce the control for display
public get ( Theme $theme ) : string
$theme Theme The theme that will be used to render the template
return string The output of the template

process() public method

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

set_returned_value() public method

Set the value returned when this control is checked
public set_returned_value ( mixed $returned_value ) : FormControlCheckbox
$returned_value mixed The value returned when the value of this control is true;
return FormControlCheckbox $this

set_value() public method

public set_value ( $value, $manually = true )

Property Details

$returned_value public property

public $returned_value