| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Source view] [Print] [Project Stats]
patTemplate Reader that reads from a database using PEAR::DB $Id: DB.php 10381 2008-06-01 03:35:53Z pasamio $
| Author: | Stephan Schmidt <schst@php.net> |
| File Size: | 164 lines (4 kb) |
| Included or required: | 1 time |
| Referenced: | 0 times |
| Includes or requires: | 1 file libraries/pattemplate/patTemplate/Reader/DB.php |
patTemplate_Reader_DB:: (4 methods):
readTemplates()
getDataFromDb()
parseInputStringToQuery()
loadTemplate()
Class: patTemplate_Reader_DB - X-Ref
patTemplate Reader that reads from a database using PEAR::DB| readTemplates($input) X-Ref |
| read templates from the database Input may either be an SQL query or a string defining the location of the template using the format: <code> table[@key=value]/@templateField </code> param: string file to parse return: array templates |
| getDataFromDb($input) X-Ref |
| fetch the template data from the database param: string input to read from |
| parseInputStringToQuery($input, $db) X-Ref |
| Parse the template location syntax to a query param: string param: DB_common |
| loadTemplate($input) X-Ref |
| 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. param: mixed input to load from. return: string template content |
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |