[ Index ] |
|
Code source de LifeType 1.2.4 |
1 <?php 2 3 lt_include( PLOG_CLASS_PATH."class/data/validator/validator.class.php" ); 4 5 /** 6 * \ingroup Validator 7 * 8 * Checks that it is really an integer value. 9 * 10 * @see UIntRule 11 */ 12 class IntegerValidator extends Validator 13 { 14 /** 15 * Constructor. 16 * 17 * @param signed Whether to allow signed integers or not. For compatibility reasons, 18 * signed integers are not allowed by default. 19 */ 20 function IntegerValidator( $signed = false ) 21 { 22 $this->Validator(); 23 24 if( $signed ) { 25 lt_include( PLOG_CLASS_PATH."class/data/validator/rules/intrule.class.php" ); 26 $this->addRule( new IntRule()); 27 } 28 else { 29 lt_include( PLOG_CLASS_PATH."class/data/validator/rules/uintrule.class.php" ); 30 $this->addRule( new UIntRule()); 31 } 32 } 33 } 34 ?>
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 |
![]() |