PHP 클래스 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.
부터: 3.0
상속: extends Prado\Web\UI\TClientSideOptions
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
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.

메소드 상세

getObserveChanges() 공개 메소드

public getObserveChanges ( ) : boolean
리턴 boolean true to observe changes.

getOnValidate() 공개 메소드

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

getOnValidationError() 공개 메소드

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

getOnValidationSuccess() 공개 메소드

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

setObserveChanges() 공개 메소드

public setObserveChanges ( $value )

setOnValidate() 공개 메소드

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

setOnValidationError() 공개 메소드

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

setOnValidationSuccess() 공개 메소드

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