XOOPS  2.6.0
Smarty_Resource_Db Class Reference
Inheritance diagram for Smarty_Resource_Db:
Inheritance graph

Protected Member Functions

 fetch ($name, &$source, &$mtime)
 

Private Member Functions

 dbTplInfo ($tpl_name)
 

Detailed Description

Smarty plugin

Fetches templates from a database

Definition at line 20 of file resource.db.php.

Member Function Documentation

Smarty_Resource_Db::dbTplInfo (   $tpl_name)
private

Get template info from db, or file name if available

Parameters
string$tpl_nametemplate name
Returns
XoopsTplfile|string tpl object from database or absolute file name path

Definition at line 63 of file resource.db.php.

References $module, $path, $type, $xoops, $xoopsConfig, XoopsBaseConfig\get(), and Xoops\getInstance().

Referenced by fetch().

Here is the call graph for this function:

Here is the caller graph for this function:

Smarty_Resource_Db::fetch (   $name,
$source,
$mtime 
)
protected

Fetch a template and its modification time from database

Parameters
string$nametemplate name
string$sourcetemplate source
integer$mtimetemplate modification timestamp (epoch)
Returns
void

Definition at line 32 of file resource.db.php.

References $mtime, $name, $tpl, and dbTplInfo().

Here is the call graph for this function:


The documentation for this class was generated from the following file: