| [ Index ] |
|
Code source de LifeType 1.2.4 |
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/regexprule.class.php" ); 5 lt_include( PLOG_CLASS_PATH."class/data/validator/rules/nonemptyrule.class.php" ); 6 7 define( "VALID_REGEXP_CHARS", "^([a-z0-9._-]+)$"); 8 9 /** 10 * \ingroup Validator 11 * 12 * Checks whether the string is a valid template name 13 * 14 * @see NonEmptyRule 15 */ 16 class TemplateNameValidator extends Validator 17 { 18 function TemplateNameValidator() 19 { 20 $this->Validator(); 21 $this->addRule( new NonEmptyRule()); 22 $this->addRule( new RegExpRule(VALID_REGEXP_CHARS, false )); 23 } 24 } 25 ?>
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 |
|