PHP 인터페이스 Prado\Web\UI\IValidator

If a control wants to validate user input, it must implement this interface.
부터: 3.0
저자: Qiang Xue ([email protected])
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
getErrorMessage ( ) : string
getIsValid ( ) : boolean
setErrorMessage ( $value )
setIsValid ( $value )
validate ( ) : boolean Validates certain data.

메소드 상세

getErrorMessage() 공개 메소드

public getErrorMessage ( ) : string
리턴 string error message during last validate

getIsValid() 공개 메소드

public getIsValid ( ) : boolean
리턴 boolean whether the previous {@link validate()} is successful.

setErrorMessage() 공개 메소드

public setErrorMessage ( $value )

setIsValid() 공개 메소드

public setIsValid ( $value )

validate() 공개 메소드

The implementation of this function should validate certain data (e.g. data entered into TTextBox control).
public validate ( ) : boolean
리턴 boolean whether the data passes the validation