Smarty_Template_Cached
Smarty Resource Data Object Cache Data Container for Template Files
- Full name:
\Smarty_Template_Cached
- Parent class:
\Smarty_Template_Resource_Base
Properties
valid
Cache Is Valid
handler
CacheResource Handler
cache_id
Template Cache Id (Smarty_Internal_Template::$cache_id)
cache_lifetime
saved cache lifetime in seconds
lock_id
Id for cache locking
is_locked
flag that cache is locked by this instance
source
Source Object
hashes
Nocache hash codes of processed compiled templates
isCache
Flag if this is a cache resource
Methods
__construct
create Cached Object container
Parameters:
Parameter | Type | Description |
---|---|---|
$_template |
\Smarty_Internal_Template | template object |
Throws:
load
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$_template |
\Smarty_Internal_Template |
render
Render cache template
Parameters:
Parameter | Type | Description |
---|---|---|
$_template |
\Smarty_Internal_Template | |
$no_output_filter |
bool |
Throws:
isCached
Check if cache is valid, lock cache if required
Parameters:
Parameter | Type | Description |
---|---|---|
$_template |
\Smarty_Internal_Template |
Return Value:
flag true if cache is valid
process
Process cached template
Parameters:
Parameter | Type | Description |
---|---|---|
$_template |
\Smarty_Internal_Template | template object |
$update |
bool | flag if called because cache update |
read
Read cache content from handler
Parameters:
Parameter | Type | Description |
---|---|---|
$_template |
\Smarty_Internal_Template | template object |
Return Value:
content
Inherited methods
process
Process resource
- This method is abstract.
Parameters:
Parameter | Type | Description |
---|---|---|
$_template |
\Smarty_Internal_Template | template object |
getRenderedTemplateCode
get rendered template content by calling compiled or cached template code
Parameters:
Parameter | Type | Description |
---|---|---|
$_template |
\Smarty_Internal_Template | |
$unifunc |
string | function with template code |
Throws:
getTimeStamp
Get compiled time stamp
Automatically generated on 2025-03-18