Class Smarty_Internal_Resource_PHP

Description

Smarty Internal Plugin Resource PHP

Implements the file system as resource for PHP templates

  • author: Uwe Tews
  • author: Rodney Rehm

Located in /libs/sysplugins/smarty_internal_resource_php.php (line 13)

Smarty_Resource
   |
   --Smarty_Resource_Uncompiled
      |
      --Smarty_Internal_Resource_PHP
Variable Summary
Method Summary
Smarty_Internal_Resource_PHP __construct ()
void populate (Smarty_Template_Source $source, [Smarty_Internal_Template $_template = null])
Variables
string $short_open_tag (line 18)

container for short_open_tag directive's value before executing PHP templates

  • access: protected

Inherited Variables

Inherited from Smarty_Resource

Smarty_Resource::$compileds
Smarty_Resource::$compiler_class
Smarty_Resource::$resources
Smarty_Resource::$sources
Smarty_Resource::$sysplugins
Smarty_Resource::$template_lexer_class
Smarty_Resource::$template_parser_class
Methods
Constructor __construct (line 24)

Create a new PHP Resource

  • access: public
Smarty_Internal_Resource_PHP __construct ()
getContent (line 72)

Load template's source from file into current template object

  • return: template source
  • throws: SmartyException if source cannot be loaded
  • access: public
string getContent (Smarty_Template_Source $source)

Redefinition of:
Smarty_Resource::getContent()
Load template's source into current template object
populate (line 36)

populate Source Object with meta data from Resource

  • access: public
void populate (Smarty_Template_Source $source, [Smarty_Internal_Template $_template = null])

Redefinition of:
Smarty_Resource::populate()
populate Source Object with meta data from Resource
populateTimestamp (line 59)

populate Source Object with timestamp and exists from Resource

  • access: public
void populateTimestamp (Smarty_Template_Source $source)

Redefinition of:
Smarty_Resource::populateTimestamp()
populate Source Object with timestamp and exists from Resource
renderUncompiled (line 88)

Render and output the template (without using the compiler)

  • throws: SmartyException if template cannot be loaded or allow_php_templates is disabled
  • access: public
void renderUncompiled (Smarty_Template_Source $source, Smarty_Internal_Template $_template)

Redefinition of:
Smarty_Resource_Uncompiled::renderUncompiled()
Render and output the template (without using the compiler)

Inherited Methods

Inherited From Smarty_Resource_Uncompiled

Smarty_Resource_Uncompiled::populateCompiledFilepath()
Smarty_Resource_Uncompiled::renderUncompiled()

Inherited From Smarty_Resource

Smarty_Resource::buildFilepath()
Smarty_Resource::config()
Smarty_Resource::fileExists()
Smarty_Resource::getBasename()
Smarty_Resource::getContent()
Smarty_Resource::load()
Smarty_Resource::populate()
Smarty_Resource::populateCompiledFilepath()
Smarty_Resource::populateTimestamp()
Smarty_Resource::source()

Documentation generated on Sat, 24 Sep 2011 20:23:57 +0200 by phpDocumentor 1.4.1