Class SubmitButton (namespace Nette\Forms)
Submittable button control.
Object | --Component | --FormControl | --Button | --SubmitButton
Implements interfaces:
Direct Known Sub-classes:
| Public Method Summary | |
|---|---|
| SubmitButton |
__construct
(string $caption)
|
| void |
click
()
Fires click event.
|
| mixed |
Gets the validation scope.
|
| bool |
Tells if the form was submitted by this button.
|
| SubmitButton |
setValidationScope
(mixed $scope)
Sets the validation scope. Clicking the button validates only the controls within the specified scope.
|
| static bool |
validateSubmitted
(ISubmitterControl $control)
Submitted validator: has been button pressed?
|
| Methods Inherited From Button |
|---|
| __construct(), getControl(), getLabel(), setValue() |
| Methods Inherited From Component |
|---|
| __construct(), attached(), detached(), getName(), getParent(), getService(), getServiceLocator(), lookup(), lookupPath(), monitor(), setParent(), setServiceLocator(), validateParent(), __clone(), __wakeup() |
| Methods Inherited From Object |
|---|
| extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
| Variable Summary | ||||
|---|---|---|---|---|
| array | $onClick | |
line 39 of event handlers; Occurs when the button is clicked and form is successfully validated; function(SubmitButton $sender) |
|
| array | $onInvalidClick | |
line 42 of event handlers; Occurs when the button is clicked and form is not validated; function(SubmitButton $sender) |
|
| Method Details | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
line 52 __constructpublic SubmitButton __construct (string $caption) Overridden in child classes as:
|
||||||||||||
|
line 100 clickpublic void click () Fires click event.
|
||||||||||||
|
line 89 getValidationScopepublic mixed getValidationScope () Gets the validation scope. Implementation of:
|
||||||||||||
|
line 64 isSubmittedBypublic bool isSubmittedBy () Tells if the form was submitted by this button. Implementation of:
|
||||||||||||
|
line 76 setValidationScopepublic SubmitButton setValidationScope (mixed $scope) Sets the validation scope. Clicking the button validates only the controls within the specified scope.
|
||||||||||||
|
line 112 validateSubmittedpublic static bool validateSubmitted (ISubmitterControl $control) Submitted validator: has been button pressed?
|
||||||||||||
