PHP Class Prado\Web\UI\WebControls\TValidatorClientSide

Client-side validator events can be modified through the {@link TBaseValidator::getClientSide ClientSide} property of a validator. The subproperties of ClientSide are those of the TValidatorClientSide properties. The client-side validator supports the following events. The OnValidate event is raise before the validator validation functions are called. The OnValidationSuccess event is raised after the validator has successfully validate the control. The OnValidationError event is raised after the validator fails validation. See the quickstart documentation for further details.
Since: 3.0
Inheritance: extends Prado\Web\UI\TClientSideOptions
Mostra file Open project: pradosoft/prado

Public Methods

Method Description
getObserveChanges ( ) : boolean
getOnValidate ( ) : string
getOnValidationError ( ) : string
getOnValidationSuccess ( ) : string
setObserveChanges ( $value )
setOnValidate ( $javascript ) Client-side OnValidate validator event is raise before the validators validation functions are called.
setOnValidationError ( $javascript ) Client-side OnError event is raised after validation failure.
setOnValidationSuccess ( $javascript ) Client-side OnSuccess event is raise after validation is successfull.

Method Details

getObserveChanges() public method

public getObserveChanges ( ) : boolean
return boolean true to observe changes.

getOnValidate() public method

public getOnValidate ( ) : string
return string javascript code for client-side OnValidate event.

getOnValidationError() public method

public getOnValidationError ( ) : string
return string javascript code for client-side OnError event.

getOnValidationSuccess() public method

public getOnValidationSuccess ( ) : string
return string javascript code for client-side OnSuccess event.

setObserveChanges() public method

public setObserveChanges ( $value )

setOnValidate() public method

Client-side OnValidate validator event is raise before the validators validation functions are called.
public setOnValidate ( $javascript )

setOnValidationError() public method

This will override the default client-side validator behaviour.
public setOnValidationError ( $javascript )

setOnValidationSuccess() public method

This will override the default client-side validator behaviour.
public setOnValidationSuccess ( $javascript )