Class BaseControl
Base class that implements the basic functionality common to form controls.
- Nette\ComponentModel\Component implements Nette\ComponentModel\IComponent uses Nette\SmartObject
- Nette\Forms\Controls\BaseControl implements Nette\Forms\IControl
Direct known subclasses
Nette\Forms\Controls\Button, Nette\Forms\Controls\Checkbox, Nette\Forms\Controls\ChoiceControl, Nette\Forms\Controls\HiddenField, Nette\Forms\Controls\MultiChoiceControl, Nette\Forms\Controls\TextBase, Nette\Forms\Controls\UploadControlIndirect known subclasses
Nette\Forms\Controls\CheckboxList, Nette\Forms\Controls\CsrfProtection, Nette\Forms\Controls\ImageButton, Nette\Forms\Controls\MultiSelectBox, Nette\Forms\Controls\RadioList, Nette\Forms\Controls\SelectBox, Nette\Forms\Controls\SubmitButton, Nette\Forms\Controls\TextArea, Nette\Forms\Controls\TextInput
public
|
|
protected
|
#
attached(
This method will be called when the component becomes attached to Form. |
public
|
|
public
|
|
protected
mixed
|
|
public
string
|
|
public
|
|
public
mixed
|
|
public
boolean
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
#
setOmitted( boolean $value = true )
Sets whether control value is excluded from $form->getValues() result. |
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
mixed
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
mixed
|
|
public
|
|
public
|
#
addCondition( mixed $validator, mixed $value = null )
Adds a validation condition a returns new branch. |
public
|
#
addConditionOn(
Adds a validation condition based on another control a returns new branch. |
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
string|null
|
|
public
array
|
|
public
boolean
|
|
public
|
|
public static
|
#
enableAutoOptionalMode( )
Globally enables new required/optional behavior. This method will be deprecated in next version. |
public
|
|
public
mixed
|
|
public
array
|
|
public
mixed
|
|
public static
mixed
|
__clone(),
__sleep(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
setParent(),
unmonitor(),
validateParent()
|
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
getReflection()
|
NAME_SEPARATOR
|
public static
string
|
$idMask
|
# 'frm-%s' |
public
string|object
|
$caption
textual caption or label |
|
protected
mixed
|
$value
current control value |
|
protected
|
$control
control element template |
|
protected
|
$label
label element template |
|
protected
boolean
|
$disabled
|
# false |
public
mixed
|
$htmlId
|
public
mixed
|
$value
|
public
boolean
|
$disabled
|
public
boolean
|
$omitted
|
public
boolean
|
$required
|
public read-only
|
$form
|
public read-only
string
|
$htmlName
|
public read-only
|
$control
|
public read-only
|
$label
|
public read-only
|
$controlPrototype
|
public read-only
|
$labelPrototype
|
public read-only
boolean
|
$filled
|
public read-only
array
|
$errors
|
public read-only
array
|
$options
|
public read-only
string
|
$error
|
$name,
$parent
|