Class NSubmitButton
Submittable button control.
- NObject
-
NComponent implements IComponent
-
NFormControl implements IFormControl
-
NButton
-
NSubmitButton implements ISubmitterControl
Direct Known Subclasses
NImageButton
public
|
#
__construct(
string
$caption = NULL
)
Parameters$caption string caption |
public
NSubmitButton
|
#
setValue(
bool
$value
)
Sets ‚pressed‘ indicator. Sets ‚pressed‘ indicator. Parameters$value boolReturnsNSubmitButton provides a fluent interface
Implementation of |
public
bool
|
#
isSubmittedBy(
)
Tells if the form was submitted by this button. |
public
NSubmitButton
|
#
setValidationScope(
mixed
$scope
)
Sets the validation scope. Clicking the button validates only the controls within the specified scope. Sets the validation scope. Clicking the button validates only the controls within the specified scope. Parameters$scope mixedReturnsNSubmitButton provides a fluent interface
|
final public
mixed
|
#
getValidationScope(
)
Gets the validation scope. |
public
void
|
#
click(
)
Fires click event. Fires click event. |
public static
bool
|
#
validateSubmitted(
ISubmitterControl
$control
)
Submitted validator: has been button pressed? Submitted validator: has been button pressed? Parameters$control ISubmitterControl |
Methods Inherited From NButton
Methods Inherited From NFormControl
__construct(), attached(), getForm(), getHtmlName(), setHtmlId(), getHtmlId(), setAttribute(), setOption(), getOption(), getOptions(), setTranslator(), getTranslator(), translate(), setValue(), getValue(), isFilled(), setDefaultValue(), loadHttpData(), setDisabled(), isDisabled(), getControl(), getLabel(), getControlPrototype(), getLabelPrototype(), addRule(), addCondition(), addConditionOn(), getRules(), setRequired(), isRequired(), validateEqual(), validateFilled(), validateValid(), addError(), getErrors(), hasErrors(), cleanErrors()
Methods Inherited From NComponent
__construct(), lookup(), lookupPath(), monitor(), unmonitor(), attached(), detached(), getName(), getParent(), validateParent(), __clone(), __wakeup()
Methods Inherited From NObject
getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()
Constants Inherited From NComponent
NAME_SEPARATOR
array
|
$onClick | NULL |
of function(SubmitButton $sender); Occurs when the button is clicked and form is successfully validated # |
array
|
$onInvalidClick | NULL |
of function(SubmitButton $sender); Occurs when the button is clicked and form is not validated # |
Properties Inherited From NFormControl
$idMask, $caption, $value, $control, $label