API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
patTemplate_Reader_DB::getDataFromDb | ( | $ | input | ) |
fetch the template data from the database
protected
string | input to read from |
Références $content, $db, patErrorManager::isError(), PEAR::isError(), et patErrorManager::raiseError().
patTemplate_Reader_DB::loadTemplate | ( | $ | input | ) |
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.
must be implemented in the template readers
mixed | input to load from. This can be a string, a filename, a resource or whatever the derived class needs to read from |
Références $content.
patTemplate_Reader_DB::parseInputStringToQuery | ( | $ | input, |
$ | db | ||
) |
Parse the template location syntax to a query
private
string | |
DB_common |
Références $db, $query, $where, et patErrorManager::raiseError().
patTemplate_Reader_DB::readTemplates | ( | $ | input | ) |
read templates from the database
Input may either be an SQL query or a string defining the location of the template using the format: table[=value]/
public
string | file to parse |
Références $content, et patErrorManager::isError().
patTemplate_Reader_DB::$_name = 'DB' |
Réimplémentée à partir de patTemplate_Module.