메소드 |
설명 |
|
__construct ( Nette\Forms\IControl $control ) |
|
|
addCondition ( $validator, $arg = NULL ) : self |
Adds a validation condition and returns new branch. |
|
addConditionOn ( Nette\Forms\IControl $control, $validator, $arg = NULL ) : self |
Adds a validation condition on specified control a returns new branch. |
|
addFilter ( $filter ) : self |
Adds a filter callback. |
|
addRule ( $validator, $message = NULL, $arg = NULL ) : self |
Adds a validation rule for the current control. |
|
check ( ) |
|
|
elseCondition ( ) : self |
Adds a else statement. |
|
endCondition ( ) : Rules |
Ends current validation condition. |
|
getIterator ( ) : ArrayIterator |
Iterates over complete ruleset. |
|
getToggleStates ( $toggles = [], $success = TRUE ) : array |
|
|
getToggles ( $actual = FALSE ) : array |
|
|
isOptional ( ) |
|
|
isRequired ( ) : boolean |
Is control mandatory? |
|
setRequired ( $value = TRUE ) : self |
Makes control mandatory. |
|
toggle ( $id, $hide = TRUE ) : self |
Toggles HTML element visibility. |
|
validate ( $emptyOptional = FALSE ) : boolean |
Validates against ruleset. |
|
validateRule ( Rule $rule ) : boolean |
Validates single rule. |
|