patTemplate_Reader
Base class for patTemplate readers
This class is able to parse patTemplate tags from any string you hand it over It will emulate some kind of SAX parsing by calling start-, end- and CData-handlers.
Located in /pattemplate/patTemplate/Reader.php (line 74)
patTemplate_Module patTemplate_Reader (Subpackage Readers)
Class | Description |
---|---|
patTemplate_Reader_String | patTemplate Reader that reads from a string |
patTemplate_Reader_File | patTemplate Reader that reads from a file |
patTemplate_Reader_DB | patTemplate Reader that reads from a database using PEAR::DB |
patTemplate_Reader_IT | patTemplate reader that reads HTML_Template_IT files |
path to the template
templates that have been found
reference to the patTemplate object that instantiated the module
Inherited Variables
Inherited from patTemplate_Module
patTemplate_Module::$_name
patTemplate_Module::$_params
add an alias for a function
- string $alias: alias
- string $function: function name
load template from any input
If the a template is loaded, the content will not get analyzed but the whole content is returned as a string.
- mixed $input: input to load from. This can be a string, a filename, a resource or whatever the derived class needs to read from
- array $options: options, not implemented in current versions, but future versions will allow passing of options
- patTemplate_Reader_File::loadTemplate() : load template from any input
- patTemplate_Reader_DB::loadTemplate() : load template from any input
- patTemplate_Reader_IT::loadTemplate() : load template from any input
read templates from any input
- mixed $input: input to read from. This can be a string, a filename, a resource or whatever the derived class needs to read from
- array $options: options, not implemented in current versions, but future versions will allow passing of options
- patTemplate_Reader_String::readTemplates() : Read templates from a string
- patTemplate_Reader_File::readTemplates() : read templates from any input
- patTemplate_Reader_DB::readTemplates() : read templates from the database
- patTemplate_Reader_IT::readTemplates() : read templates from any input
set options
- array $options: array containing options
set the root attributes
- array $attributes: array containing options
set a reference to the patTemplate object that instantiated the reader
- object patTemplate &$tmpl: object
tests whether the reader should maintain backwards compatibility
If enabled, you can still use 'default', 'empty', 'odd' and 'even' instead of '__default', '__empty', etc.
This will be disabled by default in future versions.
Inherited Methods
Inherited From patTemplate_Module
patTemplate_Module::getName()
patTemplate_Module::getParam()
patTemplate_Module::setParams()
Documentation generated on Mon, 05 Mar 2007 21:19:57 +0000 by phpDocumentor 1.3.1