[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/data/validator/ -> arrayvalidator.class.php (source)

   1  <?php
   2  
   3      lt_include( PLOG_CLASS_PATH."class/data/validator/validator.class.php" );
   4      lt_include( PLOG_CLASS_PATH."class/data/validator/rules/arrayrule.class.php" );
   5  
   6      /**
   7       * \ingroup Validator
   8       *
   9       * validates if a value is a php array. Useful when we are expecting
  10       * parameters as array in a request and we'd like to know whether we're really
  11       * receiving an array.
  12       *
  13       * @see ArrayRule
  14       */
  15      class ArrayValidator extends Validator
  16      {
  17          function ArrayValidator()
  18          {
  19              $this->Validator();
  20  
  21              $this->addRule(new ArrayRule());
  22          }
  23      }
  24  ?>


Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics