Class miValidatorUnique

Description

Unique validator Makes sure that the field value is unqiue.

There is a special allowence that if the value is already in the database it is allowed even if duplicate

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

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

miValidator
   |
   --miValidatorUnique
Variable Summary
mixed $_record
Method Summary
miValidatorUnique __construct (miWebForm &$webForm, string $fieldName, miSqlRecord $record, miWebForm $webForm)
void validate (miWebFormErrorsHandler &$errors)
Variables
mixed $_record (line 216)

The actual record used to read the data

  • access: protected

Inherited Variables

Inherited from miValidator

miValidator::$_fieldName
miValidator::$_webForm
Methods
Constructor __construct (line 226)

Constructs the unique validator class

  • access: public
miValidatorUnique __construct (miWebForm &$webForm, string $fieldName, miSqlRecord $record, miWebForm $webForm)

Redefinition of:
miValidator::__construct()
Constructs the validator class
validate (line 235)

Validate

  • access: public
void validate (miWebFormErrorsHandler &$errors)

Redefinition of:
miValidator::validate()
Performs validation

Inherited Methods

Inherited From miValidator

miValidator::__construct()
miValidator::getFieldName()
miValidator::setFieldName()
miValidator::validate()

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