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

Source for file BasicValidator.php

Documentation is available at BasicValidator.php

  1. <?php
  2. /*
  3.  *  $Id: BasicValidator.php 521 2007-01-05 13:29:36Z heltem $
  4.  *
  5.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  6.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  7.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  8.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  9.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  10.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  11.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  12.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  13.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  14.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  15.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  16.  *
  17.  * This software consists of voluntary contributions made by many individuals
  18.  * and is licensed under the LGPL. For more information please see
  19.  * <http://propel.phpdb.org>.
  20.  */
  21.  
  22. /**
  23.  * Basic Validator interface.
  24.  *
  25.  * BasicValidator objects perform validation without any knowledge of column/table
  26.  * context.  They are simply given an input and some value and asked whether the input
  27.  * is valid.
  28.  *
  29.  * @author     Michael Aichler <aichler@mediacluster.de>
  30.  * @version    $Revision: 521 $
  31.  * @package    propel.validator
  32.  */
  33. interface BasicValidator
  34. {
  35.  
  36.     /**
  37.      * Determine whether a value meets the criteria specified
  38.      *
  39.      * @param      ValidatorMap $map A column map object for the column to be validated.
  40.      * @param      string $str a <code>String</code> to be tested
  41.      *
  42.      * @return     mixed TRUE if valid, error message otherwise
  43.      */
  44.     public function isValid(ValidatorMap $map$str);
  45.  
  46. }

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