Class miValidator

Description

The base validator class

  • copyright: Copyright (c) 2006 Mirchev Ideas Ltd. All rights reserved.

Located in /view/Validators.php (line 15)


	
			
Direct descendents
Class Description
miValidatorEmail Validates email set by user
miValidatorDate Validates date set by user
miValidatorInt Validates integer set by user
miValidatorDecimal Validates decimal set by user
miValidatorIcq Validates ICQ set by user
miValidatorHttp Validates http url set by user
miValidatorGsm Validates GSM set by user
miValidatorIp Validates IP address set by user
miValidatorUnique Unique validator Makes sure that the field value is unqiue.
Variable Summary
Method Summary
miValidator __construct (miWebForm &$webForm, string $fieldName, miWebForm $webForm)
string getFieldName ()
void setFieldName (string $fieldName)
void validate (miWebFormErrorsHandler &$errors)
Variables
string $_fieldName (line 25)
  • access: protected
miWebForm $_webForm (line 19)
  • access: protected
Methods
Constructor __construct (line 34)

Constructs the validator class

  • access: public
miValidator __construct (miWebForm &$webForm, string $fieldName, miWebForm $webForm)

Redefined in descendants as:
getFieldName (line 45)

Retrieve the field name

  • return: the field name
  • access: public
string getFieldName ()
setFieldName (line 55)

Set the field name

  • access: public
void setFieldName (string $fieldName)
  • string $fieldName: the field name

Documentation generated on Thu, 08 May 2008 16:57:53 +0300 by phpDocumentor 1.4.1