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

Class: MinValueValidator

Source Location: /validator/MinValueValidator.php

Class Overview


A validator for minimum values.


Author(s):

Version:

  • $Revision: 521 $

Implements interfaces:

Methods



Class Details

[line 40]
A validator for minimum values.

Below is an example usage for your Propel xml schema file.

  1.    <column name="articles" type="INTEGER" required="true" />
  2.  
  3.    <validator column="articles">
  4.      <rule name="minValue" value="1"  message="Minimum value for selected articles is ${value} !/>
  5.      <rule name="maxValue" value="10"  message="Maximum value for selected articles is ${value} !/>
  6.    </validator>




Tags:

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


[ Top ]


Class Methods


method isValid [line 46]

void isValid( $map, $value)



Tags:

see:  BasicValidator::isValid()
access:  public



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

Parameters:

ValidatorMap   $map  
   $value  

[ Top ]


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