propel-validator
[ class tree: propel-validator ] [ index: propel-validator ] [ all elements ]

Class: UniqueValidator

Source Location: /validator/UniqueValidator.php

Class Overview


A validator for unique column names.


Author(s):

Version:

  • $Revision: 521 $

Implements interfaces:

Methods



Class Details

[line 37]
A validator for unique column names.

  1.    <column name="username" type="VARCHAR" size="25" required="true" />
  2.  
  3.    <validator column="username">
  4.      <rule name="unique" message="Username already exists !" />
  5.    </validator>




Tags:

author:  Michael Aichler <aichler@mediacluster.de>
version:  $Revision: 521 $


[ Top ]


Class Methods


method isValid [line 43]

void isValid( $map, $str)



Tags:

see:  BasicValidator::isValid()
access:  public



Implementation of:
BasicValidator::isValid()
Determine whether a value meets the criteria specified

Parameters:

ValidatorMap   $map  
   $str  

[ Top ]


Documentation generated on Thu, 22 Nov 2007 03:33:56 +0000 by phpDocumentor 1.4.0