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

(pas de description)

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

Définit 1 class

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


Classe: TemplateSetValidator  - X-Ref

\ingroup Validator

This is a more complex Validator (and a very specific one) that will validate whether
the contents of a given folder are the same of a valid template set. In order to be valid
a template folder must contain the following template files:

- main.template
- postandcomments.template
- commentarticle.template
- posttrackbacks.template
- error.template
- album.template
- albums.template
- resource.template

The template files should be inside a folder with the same name as template set.

If the template set is not valid, this class will set one of the following errors:

- ERROR_TEMPLATE_NOT_INSIDE_FOLDER
- ERROR_MISSING_BASE_FILES

This Validator class is also a good example of the more complex things that can be achieved
with Validator classes, not just simple data validation.
TemplateSetValidator( $templateName, $folder )   X-Ref
Pas de description

validate()   X-Ref
Returns true if the template is a valid template set




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