$recompiled
$recompiled : boolean
Source must be recompiled on every occasion
Smarty Internal Plugin Resource Eval Implements the strings as resource for Smarty template {@internal unlike string-resources the compiled state of eval-resources is NOT saved for subsequent access}}
process(\Smarty_Internal_Template $_smarty_tpl)
compile template from source
\Smarty_Internal_Template | $_smarty_tpl | do not change variable name, is used by compiled template |
populateCompiledFilepath(\Smarty_Template_Compiled $compiled, \Smarty_Internal_Template $_template) : void
populate Compiled Object with compiled filepath
\Smarty_Template_Compiled | $compiled | compiled object |
\Smarty_Internal_Template | $_template | template object |
getContent(\Smarty_Template_Source $source) : string
Load template's source from $resource_name into current template object
\Smarty_Template_Source | $source | source object |
template source
populate(\Smarty_Template_Source $source, \Smarty_Internal_Template $_template = null) : void
populate Source Object with meta data from Resource
\Smarty_Template_Source | $source | source object |
\Smarty_Internal_Template | $_template | template object |
populateTimestamp(\Smarty_Template_Source $source)
populate Source Object with timestamp and exists from Resource
\Smarty_Template_Source | $source | source object |
buildUniqueResourceName(\Smarty $smarty, string $resource_name, boolean $isConfig = false) : string
modify resource_name according to resource handlers specifications
\Smarty | $smarty | Smarty instance |
string | $resource_name | resource_name to make unique |
boolean | $isConfig | flag for config resource |
unique resource name
getBasename(\Smarty_Template_Source $source) : string
Determine basename for compiled filename
\Smarty_Template_Source | $source | source object |
resource's basename
load(\Smarty $smarty, string $type) : \Smarty_Resource
Load Resource Handler
\Smarty | $smarty | smarty object |
string | $type | name of the resource |
Resource Handler
parseResourceName(string $resource_name, string $default_resource) : array
extract resource_type and resource_name from template_resource and config_resource
string | $resource_name | template_resource or config_resource to parse |
string | $default_resource | the default resource_type defined in $smarty |
with parsed resource name and type
getUniqueTemplateName(\Smarty_Internal_Template|\Smarty $obj, string $template_resource) : string
modify template_resource according to resource handlers specifications
\Smarty_Internal_Template|\Smarty | $obj | Smarty instance |
string | $template_resource | template_resource to extract resource handler and name of |
unique resource name
source(\Smarty_Internal_Template $_template = null, \Smarty $smarty = null, string $template_resource = null) : \Smarty_Template_Source
initialize Source Object for given resource wrapper for backward compatibility to versions < 3.1.22 Either [$_template] or [$smarty, $template_resource] must be specified
\Smarty_Internal_Template | $_template | template object |
\Smarty | $smarty | smarty object |
string | $template_resource | resource identifier |
Source Object