Interface IValidator

Description

IValidator interface

If a control wants to validate user input, it must implement this interface.

  • author: Qiang Xue <qiang.xue@gmail.com>
  • version: $Id: TControl.php 3078 2011-12-03 15:25:12Z ctrlaltca@gmail.com $
  • since: 3.0

Located in /Web/UI/TControl.php (line 1965)


	
			
Method Summary
string getErrorMessage ()
boolean getIsValid ()
void setErrorMessage (string $value)
void setIsValid (boolean $value)
boolean validate ()
Methods
getErrorMessage (line 1985)
  • return: error message during last validate
  • access: public
string getErrorMessage ()
getIsValid (line 1977)
  • return: whether the previous validate() is successful.
  • access: public
boolean getIsValid ()
setErrorMessage (line 1989)
  • access: public
void setErrorMessage (string $value)
  • string $value: error message for the validation
setIsValid (line 1981)
  • access: public
void setIsValid (boolean $value)
  • boolean $value: whether the validator validates successfully
validate (line 1973)

Validates certain data.

The implementation of this function should validate certain data (e.g. data entered into TTextBox control).

  • return: whether the data passes the validation
  • access: public
boolean validate ()

Documentation generated on Mon, 25 Jun 2012 14:37:39 +0200 by phpDocumentor 1.4.3