CheckboxInput
extends BaseInput
in package
Basic checkbox input.
Table of Contents
Properties
- $conditionFunction : callable|null
- $disabled : bool
- $help : string|null
- $id : string|null
- $label : string|null
- $loadFunction : callable|null
- $name : string
- $saveFunction : callable|null
- $tooltip : string|null
Methods
- __construct() : mixed
- getHelp() : string|null
- getId() : string|null
- getLabel() : string|null
- getName() : string
- getTooltip() : string|null
- getValue() : mixed
- isDisabled() : bool
- load() : mixed
- save() : bool
Properties
$conditionFunction
private
callable|null
$conditionFunction
$disabled
private
bool
$disabled
= false
$help
private
string|null
$help
$id
private
string|null
$id
$label
private
string|null
$label
$loadFunction
private
callable|null
$loadFunction
$name
private
string
$name
$saveFunction
private
callable|null
$saveFunction
$tooltip
private
string|null
$tooltip
Methods
__construct()
public
__construct(array<string|int, mixed> $options) : mixed
Parameters
- $options : array<string|int, mixed>
getHelp()
public
getHelp() : string|null
Return values
string|nullgetId()
public
getId() : string|null
Return values
string|nullgetLabel()
public
getLabel() : string|null
Return values
string|nullgetName()
public
getName() : string
Return values
stringgetTooltip()
public
getTooltip() : string|null
Return values
string|nullgetValue()
public
getValue() : mixed
isDisabled()
public
isDisabled() : bool
Return values
boolload()
public
load() : mixed
save()
public
save(CHttpRequest $request, CDbConnection $connection) : bool
Parameters
- $request : CHttpRequest
- $connection : CDbConnection