Class SGL_Smarty

Description

Located in /SGL/HtmlRenderer/SmartyStrategy.php (line 43)

Smarty
   |
   --SGL_Smarty
Method Summary
 static mixed &singleton ()
 void SGL_Smarty ()
 true locateTemplate (string $resourceType, string $resourceName,  &$templateSource,  &$templateTimestamp,  &$oSmarty, string $templateSource, string $templateTimestamp, object $oSmarty)
Methods
static singleton (line 121)

Returns a singleton Smarty instance.

example usage: $smarty = & SGL_Smarty::singleton(); warning: in order to work correctly, the cache singleton must be instantiated statically and by reference

  • return: reference to SGL_Smarty object
  • access: public
mixed &singleton ()
Constructor SGL_Smarty (line 50)

Constructor.

  • access: public
void SGL_Smarty ()
locateTemplate (line 90)

Default template handler for Smarty

Provides an alternative mechanism to Smarty for finding templates when one is not found at original file location. Only called by Smarty

  • return: if template found, false if not
  • access: public
true locateTemplate (string $resourceType, string $resourceName,  &$templateSource,  &$templateTimestamp,  &$oSmarty, string $templateSource, string $templateTimestamp, object $oSmarty)
  • string $resourceType: (i.e. file, db, ldap)
  • string $resourceName: template file name
  • string $templateSource: source of template file
  • string $templateTimestamp: mtime of template file
  • object $oSmarty: Smarty object
  • &$templateSource
  • &$templateTimestamp
  • &$oSmarty

Documentation generated on Tue, 23 Feb 2010 18:14:33 +0000 by phpDocumentor 1.4.3