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

Class: ValidValuesValidator

Source Location: /validator/ValidValuesValidator.php

Class Overview


A validator for valid values (e.g. for enum fields)


Author(s):

Version:

  • $Revision: 521 $

Implements interfaces:

Methods



Class Details

[line 37]
A validator for valid values (e.g. for enum fields)

  1.    <column name="address_type" type="VARCHAR" required="true" default="delivery" />
  2.  
  3.    <validator column="address_type">
  4.      <rule name="validValues" value="account|delivery" message="Please select a valid address type." />
  5.    </validator>




Tags:

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


[ Top ]


Class Methods


method isValid [line 40]

void isValid( $map, $str)



Tags:

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:57 +0000 by phpDocumentor 1.4.0