Method |
Description |
|
__call ( $name, $args ) |
******************* extension methods ****************d*g* |
|
__construct ( $caption = NULL ) |
|
|
addCondition ( $validator, $value = NULL ) : Rules |
Adds a validation condition a returns new branch. |
|
addConditionOn ( Nette\Forms\IControl $control, $validator, $value = NULL ) : Rules |
Adds a validation condition based on another control a returns new branch. |
|
addError ( $message ) : void |
Adds error message to the list. |
|
addRule ( $validator, $message = NULL, $arg = NULL ) : self |
Adds a validation rule. |
|
cleanErrors ( ) : void |
|
|
enableAutoOptionalMode ( ) |
Globally enables new required/optional behavior. |
|
extensionMethod ( $name, $callback = NULL ) |
|
|
getControl ( ) : Nette\Utils\Html | string |
Generates control's HTML element. |
|
getControlPart ( ) : Nette\Utils\Html | null |
|
|
getControlPrototype ( ) : Nette\Utils\Html |
Returns control's HTML element template. |
|
getError ( ) : string |
Returns errors corresponding to control. |
|
getErrors ( ) : array |
Returns errors corresponding to control. |
|
getForm ( $need = TRUE ) : Form |
Returns form. |
|
getHtmlId ( ) : string |
Returns control's HTML id. |
|
getHtmlName ( ) : string |
Returns HTML name of control. |
|
getLabel ( $caption = NULL ) : Nette\Utils\Html | string |
Generates label's HTML element. |
|
getLabelPart ( ) : Nette\Utils\Html | null |
|
|
getLabelPrototype ( ) : Nette\Utils\Html |
Returns label's HTML element template. |
|
getOption ( $key, $default = NULL ) : mixed |
Returns user-specific option. |
|
getOptions ( ) : array |
Returns user-specific options. |
|
getRules ( ) : Rules |
|
|
getTranslator ( ) : Nette\Localization\ITranslator | null |
Returns translate adapter. |
|
getValue ( ) : mixed |
Returns control's value. |
|
hasErrors ( ) : boolean |
|
|
isDisabled ( ) : boolean |
Is control disabled? |
|
isFilled ( ) : boolean |
Is control filled? |
|
isOmitted ( ) : boolean |
Is control value excluded from $form->getValues() result? |
|
isRequired ( ) : boolean |
Is control mandatory? |
|
loadHttpData ( ) : void |
Loads HTTP data. |
|
setAttribute ( $name, $value = TRUE ) : self |
Changes control's HTML attribute. |
|
setDefaultValue ( $value ) : self |
Sets control's default value. |
|
setDisabled ( $value = TRUE ) : self |
Disables or enables control. |
|
setHtmlId ( $id ) : self |
Changes control's HTML id. |
|
setOmitted ( $value = TRUE ) : self |
Sets whether control value is excluded from $form->getValues() result. |
|
setOption ( $key, $value ) : self |
Sets user-specific option. |
|
setRequired ( $value = TRUE ) : self |
Makes control mandatory. |
|
setTranslator ( Nette\Localization\ITranslator $translator = NULL ) : self |
Sets translate adapter. |
|
setValue ( $value ) : self |
Sets control's value. |
|
translate ( $value, $count = NULL ) : string |
Returns translated string. |
|
validate ( ) : void |
Performs the server side validation. |
|