[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/template/ -> template.class.php (sommaire)

\defgroup Template

Poids: 222 lignes (8 kb)
Inclus ou requis:0 fois
Référencé: 2 fois
Nécessite: 0 fichiers

Définit 1 class

Template:: (7 méthodes):
  Template()
  _smarty_include()
  setTemplateDir()
  getTemplateFile()
  fetch()
  display()
  isCached()

Définit 7 fonctions

  smarty_block_dynamic()

Classe: Template  - X-Ref

\ingroup Template

Wrapper around the Smarty class, inspired by the article
http://zend.com/zend/tut/tutorial-stump.php

This class provides additional methods and initial values for the original Smarty
class, and reimplements the methods Smarty::fetch() and Smarty::display() so that they do
not need an extra parameter.

It is not recommended to create instances of this class directly but instead, use the factory
TemplateService which is able to generate different types of Template objects with some pre-set
values. The TemplateService class can also deal with cached and non-cached templates.

Template( $templateFile )   X-Ref
Constructor.

param: templateFile Complete path to the template file we are going to render

_smarty_include($params)   X-Ref
called for included templates
This has been reimplemented from Smarty::_smarty_include() so that we can define a set
of locations where template files can be located if the specified path and file do not exist.


setTemplateDir( $templateDir )   X-Ref
By default templates are searched in the folder specified by the
template_folder configuration setting, but we can force Smarty to
look for those templates somewhere else. This method is obviously to be
used *before* rendering the template ;)

param: templateFolder The new path where we'd like to search for templates
return: Returns always true.

getTemplateFile()   X-Ref
Returns the name of the template file

return: The name of the template file

fetch()   X-Ref
Renders the template and returns the contents as an string

return: The result as an string

display()   X-Ref
Displays the result of rendering the template

return: I don't know :)

isCached( $viewId )   X-Ref
the Template object is by default not cached

param: viewId Not used
return: always false

Fonctions
Fonctions qui ne font pas partie d'une Classe:

smarty_block_dynamic($param, $content, &$smarty)   X-Ref
Pas de description



Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics