[ Index ] |
|
Code source de LifeType 1.2.4 |
1 <?php 2 3 lt_include(PLOG_CLASS_PATH."class/data/validator/rules/rule.class.php"); 4 5 /** 6 * \ingroup Validator_Rules 7 * 8 * Implements a rule that checks if the input is a valid php array (used 9 * in cases when we'd like to validate if something coming from $_GET or $_POST 10 * is an array) 11 */ 12 class ArrayRule extends Rule 13 { 14 /** 15 * Initializes the rule 16 */ 17 function ArrayRule() 18 { 19 $this->Rule(); 20 } 21 22 /** 23 * Validates the data. 24 * 25 * @param value The array that we'd like to validate 26 */ 27 function validate($value) 28 { 29 return( is_array($value)); 30 } 31 } 32 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |