Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: patTemplate

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5

 Class patTemplate_Reader_DB

Description

patTemplate Reader that reads from a database using PEAR::DB

$Id: DB.php 47 2005-09-15 02:55:27Z rhuk $

Located in /pattemplate/patTemplate/Reader/DB.php (line 44)

Abstract class patTemplate_Module

Abstract class patTemplate_Reader
   
   Class patTemplate_Reader_DB   (Subpackage Readers)
Method Summary
Method void getDataFromDb (string $input)
Abstract method string loadTemplate (mixed $input)
Method array readTemplates (string $input)
Methods
getDataFromDb (line 83)

fetch the template data from the database

  • access: protected
void getDataFromDb (string $input)
  • string $input: input to read from
loadTemplate (line 158)

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.

  • return: template content
  • abstract: must be implemented in the template readers
string loadTemplate (mixed $input)
  • mixed $input: input to load from. This can be a string, a filename, a resource or whatever the derived class needs to read from

Redefinition of:
patTemplate_Reader::loadTemplate()
load template from any input
readTemplates (line 67)

read templates from the database

Input may either be an SQL query or a string defining the location of the template using the format:

  1.  table[@key=value]/@templateField

  • return: templates
  • access: public
  • final:
array readTemplates (string $input)
  • string $input: file to parse

Redefinition of:
patTemplate_Reader::readTemplates()
read templates from any input

Inherited Methods

Inherited From patTemplate_Reader

 patTemplate_Reader::addFunctionAlias()
 patTemplate_Reader::getCurrentInput()
 patTemplate_Reader::getTemplateRoot()
 patTemplate_Reader::isInUse()
 patTemplate_Reader::loadTemplate()
 patTemplate_Reader::readTemplates()
 patTemplate_Reader::setOptions()
 patTemplate_Reader::setRootAttributes()
 patTemplate_Reader::setTemplateReference()
 patTemplate_Reader::shouldMaintainBc()

Inherited From patTemplate_Module

 patTemplate_Module::getName()
 patTemplate_Module::getParam()
 patTemplate_Module::setParams()

Documentation generated on Mon, 05 Mar 2007 20:56:25 +0000 by phpDocumentor 1.3.1