phpDocumentor

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
$name :
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
note

implementing this method is optional. Only implement it if modification times can be accessed faster than loading the complete template source.

Return values
int

timestamp (epoch) the template was modified

Search results