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.
validate()
X-Ref
|
Returns true if the template is a valid template set
|