Smarty_Resource_Get_Usermod
extends Smarty_Resource_Custom
in package
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"}
Table of Contents
- _getPath() : string
- fetch() : void
- Fetch a template and its modification time
- fetchTimestamp() : int
- Fetch a template's modification time
Methods
_getPath()
protected
_getPath( $name) : string
Parameters
Return values
string —fetch()
Fetch a template and its modification time
protected
fetch(string $name, string &$source, int &$mtime) : void
Parameters
- $name : string
-
template name
- $source : string
-
template source
- $mtime : int
-
template modification timestamp (epoch)
Return values
void —fetchTimestamp()
Fetch a template's modification time
protected
fetchTimestamp(string $name) : int
Parameters
- $name : string
-
template name
Tags
Return values
int —timestamp (epoch) the template was modified