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
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode 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 méthode

public getObserveChanges ( ) : boolean
Résultat boolean true to observe changes.

getOnValidate() public méthode

public getOnValidate ( ) : string
Résultat string javascript code for client-side OnValidate event.

getOnValidationError() public méthode

public getOnValidationError ( ) : string
Résultat string javascript code for client-side OnError event.

getOnValidationSuccess() public méthode

public getOnValidationSuccess ( ) : string
Résultat string javascript code for client-side OnSuccess event.

setObserveChanges() public méthode

public setObserveChanges ( $value )

setOnValidate() public méthode

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

setOnValidationError() public méthode

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

setOnValidationSuccess() public méthode

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