Class Smarty_Resource_Get_Usermod
Class Smarty_Resource_Get_Usermod
Resource overload for the smarty include statements. It enables USERMOD-files for templates.
USAGE:
{include file="get_usermod:PATH/TO/TPL.FILE"}
-
Smarty_Resource_Custom
-
Smarty_Resource_Get_Usermod
Methods summary
protected
|
#
fetch( string $name, string & $source, integer & $mtime )
Fetch a template and its modification time
Fetch a template and its modification time
Parameters
- $name
- template name
- $source
- template source
- $mtime
- template modification timestamp (epoch)
|
protected
integer
|
#
fetchTimestamp( string $name )
Fetch a template's modification time
Fetch a template's modification time
Parameters
Returns
integer timestamp (epoch) the template was modified
Note
implementing this method is optional. Only implement it if modification times can be accessed faster than
loading the complete template source.
|
protected
string
|
#
_getPath( $name )
Parameters
Returns
string
|