OXID eShop CE  6.2.4
OxidEsales\EshopCommunity\Internal\Framework\Smarty\Extension\CacheResourcePlugin Class Reference
+ Collaboration diagram for OxidEsales\EshopCommunity\Internal\Framework\Smarty\Extension\CacheResourcePlugin:

Public Member Functions

 __construct (SmartyContextInterface $context)
 

Static Public Member Functions

static getTemplate ($templateName, &$templateSource, $smarty)
 
static getTimestamp ($templateName, &$templateTimestamp, $smarty)
 
static getSecure ($templateName, $smarty)
 
static getTrusted ($templateName, $smarty)
 

Static Private Attributes

static $context
 

Detailed Description

Cache resource

Constructor & Destructor Documentation

◆ __construct()

OxidEsales\EshopCommunity\Internal\Framework\Smarty\Extension\CacheResourcePlugin::__construct ( SmartyContextInterface  $context)
Parameters
SmartyContextInterface$context

Member Function Documentation

◆ getSecure()

static OxidEsales\EshopCommunity\Internal\Framework\Smarty\Extension\CacheResourcePlugin::getSecure (   $templateName,
  $smarty 
)
static

Dummy function, required for smarty plugin registration.

See also
http://www.smarty.net/docsv2/en/template.resources.tpl
Parameters
string$templateNameThe name of template
object$smartyThe smarty object
Returns
bool

◆ getTemplate()

static OxidEsales\EshopCommunity\Internal\Framework\Smarty\Extension\CacheResourcePlugin::getTemplate (   $templateName,
$templateSource,
  $smarty 
)
static

Sets template content from cache. In demoshop enables security mode.

See also
http://www.smarty.net/docsv2/en/template.resources.tpl
Parameters
string$templateNameThe name of template
string$templateSourceThe template source
object$smartyThe smarty object
Returns
bool

◆ getTimestamp()

static OxidEsales\EshopCommunity\Internal\Framework\Smarty\Extension\CacheResourcePlugin::getTimestamp (   $templateName,
$templateTimestamp,
  $smarty 
)
static

Sets time for smarty templates recompilation. If oxidtimecache is set, smarty will cache templates for this period. Otherwise templates will always be compiled.

See also
http://www.smarty.net/docsv2/en/template.resources.tpl
Parameters
string$templateNameThe name of template
string$templateTimestampThe template timestamp reference
object$smartyThe smarty object
Returns
bool

◆ getTrusted()

static OxidEsales\EshopCommunity\Internal\Framework\Smarty\Extension\CacheResourcePlugin::getTrusted (   $templateName,
  $smarty 
)
static

Dummy function, required for smarty plugin registration.

See also
http://www.smarty.net/docsv2/en/template.resources.tpl
Parameters
string$templateNameThe name of template
object$smartyThe smarty object

Member Data Documentation

◆ $context

OxidEsales\EshopCommunity\Internal\Framework\Smarty\Extension\CacheResourcePlugin::$context
staticprivate

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