class SubmitButton extends Button implements ISubmitterControl

Submittable button control.

Properties

callable[] $onClick
callable[] $onInvalidClick
bool read-only $submittedBy

Methods

__construct($caption = NULL)

No description

void
loadHttpData()

Loads HTTP data.

bool
isSubmittedBy()

Tells if the form was submitted by this button.

setValidationScope($scope = NULL)

Sets the validation scope. Clicking the button validates only the controls within the specified scope.

mixed
getValidationScope()

Gets the validation scope.

void
click()

Fires click event.

Html|string
getControl($caption = NULL)

Generates control's HTML element.

static bool
validateSubmitted(SubmitButton $control)

Submitted validator: has been button pressed?

Details

at line 35
__construct($caption = NULL)

No description

Parameters

$caption

at line 47
void loadHttpData()

Loads HTTP data.

Return Value

void

at line 60
bool isSubmittedBy()

Tells if the form was submitted by this button.

Return Value

bool

at line 70
SubmitButton setValidationScope($scope = NULL)

Sets the validation scope. Clicking the button validates only the controls within the specified scope.

Parameters

$scope

Return Value

SubmitButton

at line 91
mixed getValidationScope()

Gets the validation scope.

Return Value

mixed

at line 101
void click()

Fires click event.

Return Value

void

at line 112
Html|string getControl($caption = NULL)

Generates control's HTML element.

Parameters

$caption

Return Value

Html|string

at line 130
static bool validateSubmitted(SubmitButton $control)

internal  
 

Submitted validator: has been button pressed?

Parameters

SubmitButton $control

Return Value

bool