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

Class: MaxLengthValidator

Source Location: /validator/MaxLengthValidator.php

Class Overview


A validator for maximum string length.


Author(s):

Version:

  • $Revision: 521 $

Implements interfaces:

Methods



Class Details

[line 43]
A validator for maximum string length.

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

Note that if you have specified the size attribute in the column tag you do not have to specify it as value in the validator rule again as this is done automatically.

  1.    <column name="username" type="VARCHAR" size="25" required="true" />
  2.  
  3.    <validator column="username">
  4.      <rule name="maxLength" message="Passwort must be at least ${value} characters !/>
  5.    </validator>




Tags:

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


[ Top ]


Class Methods


method isValid [line 46]

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