PHP Class AdamWathan\Form\Elements\Checkbox

Inheritance: extends Input
Datei anzeigen Open project: adamwathan/form Class Usage Examples

Protected Properties

Property Type Description
$attributes
$checked
$oldValue

Public Methods

Method Description
__construct ( $name, $value = 1 )
check ( )
defaultCheckedState ( $state )
defaultToChecked ( )
defaultToUnchecked ( )
render ( )
setOldValue ( $oldValue )
uncheck ( )
unsetOldValue ( )

Protected Methods

Method Description
checkBinding ( )
setChecked ( $checked = true )

Method Details

__construct() public method

public __construct ( $name, $value = 1 )

check() public method

public check ( )

checkBinding() protected method

protected checkBinding ( )

defaultCheckedState() public method

public defaultCheckedState ( $state )

defaultToChecked() public method

public defaultToChecked ( )

defaultToUnchecked() public method

public defaultToUnchecked ( )

render() public method

public render ( )

setChecked() protected method

protected setChecked ( $checked = true )

setOldValue() public method

public setOldValue ( $oldValue )

uncheck() public method

public uncheck ( )

unsetOldValue() public method

public unsetOldValue ( )

Property Details

$attributes protected_oe property

protected $attributes

$checked protected_oe property

protected $checked

$oldValue protected_oe property

protected $oldValue