[ 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/rules/ -> rule.class.php (sommaire)

\defgroup Validator_Rules The main classes that implement the Strategy pattern as described here http://www.phppatterns.com/index.php/article/articleview/13/1/1/ are the classes that extend the Validator interface.

Poids: 60 lignes (3 kb)
Inclus ou requis:0 fois
Référencé: 10 fois
Nécessite: 0 fichiers

Définit 1 class

Rule:: (2 méthodes):
  Rule()
  validate()


Classe: Rule  - X-Ref

\ingroup Validator_Rules

This is the main base class that all custom Rule classes should extend. Please implement the
Rule::validate() with your own logic and return 'true' if the validation was successful or
'false' otherwise. Please use Validation::_setError() to set additional error codes reporting
more information.
Rule()   X-Ref
The constructor does nothing.


validate($value)   X-Ref
Validates the data. Does nothing here and it must be reimplemented by
every child class.

param: value The value that we're going to validate
return: True if successful or false otheriwse



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