Class sfCustomUniqueValidator

Description

sfCustomUniqueValidator checks if a record exist in the database

  • author: Joachim Martin

Located in /apps/frontend/lib/sfCustomUniqueValidator.php (line 10)

sfValidator
   |
   --sfCustomUniqueValidator
Method Summary
bool execute (mixed &$value, error &$error)
boolean initialize (unknown_type $context, [array $parameters = null])
Methods
execute (line 60)

Executes this validator.

  • return: true, if this validator executes successfully, otherwise false
  • access: public
bool execute (mixed &$value, error &$error)
  • mixed &$value: A file or parameter value/array
  • error &$error: An error message reference
initialize (line 29)

Function to start the validation class.

The parameters array is composed of:

  • class: the class on which the search is performed
  • nb_fields: the number of fields on which the comparison is done
  • field_1: First field of the comparison
  • field_2: Other country for the comparison

  • access: public
boolean initialize (unknown_type $context, [array $parameters = null])
  • unknown_type $context
  • array $parameters

Documentation generated on Sun, 22 Mar 2009 19:18:09 +0100 by phpDocumentor 1.4.2