abstract |
---|
Smarty Resource Plugin Base implementation for resource plugins
Methods | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
public
static
|
load(Smarty $smarty, string $type): Smarty_Resource
Load Resource Handler
Load Resource Handler Parameters
ReturnsResource Handler Throws
|
# | ||||||||
public
static
|
parseResourceName(string $resource_name, string $default_resource): array
extract resource_type and resource_name from template_resource and config_resource
extract resource_type and resource_name from template_resource and config_resource Parameters
Returnswith parsed resource name and type |
# | ||||||||
public
static
|
getUniqueTemplateName(Smarty_Internal_Template|Smarty $obj, string $template_resource): string
modify template_resource according to resource handlers specifications
modify template_resource according to resource handlers specifications Parameters
Returnsunique resource name Throws
|
# | ||||||||
public
static
|
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]…
initialize Source Object for given resource wrapper for backward compatibility to versions < 3.1.22 Either [$_template] or [$smarty, $template_resource] must be specified Parameters
ReturnsSource Object Throws
|
# | ||||||||
abstract
public
|
getContent(Smarty_Template_Source $source): string
Load template's source into current template object
Load template's source into current template object Parameters
Returnstemplate source Throws
Implemented by
|
# | ||||||||
abstract
public
|
populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null)
populate Source Object with meta data from Resource
populate Source Object with meta data from Resource Parameters
Implemented by |
# | ||||||||
public
|
populateTimestamp(Smarty_Template_Source $source)
populate Source Object with timestamp and exists from Resource
populate Source Object with timestamp and exists from Resource Parameters
Overriden by |
# | ||||||||
public
|
buildUniqueResourceName(Smarty $smarty, string $resource_name, boolean $isConfig = false): string
modify resource_name according to resource handlers specifications
modify resource_name according to resource handlers specifications Parameters
Returnsunique resource name Overriden by |
# | ||||||||
public
|
getBasename(Smarty_Template_Source $source): string
Determine basename for compiled filename
Determine basename for compiled filename Parameters
Returnsresource's basename Overriden by |
# | ||||||||
public
|
checkTimestamps(): bool
|
# | ||||||||
public
|
renderUncompiled(Smarty_Template_Source $source, Smarty_Internal_Template $_template)
Overriden by |
# | ||||||||
public
|
populateCompiledFilepath(Smarty_Template_Compiled $compiled, Smarty_Internal_Template $_template)
|
# | ||||||||
public
|
process(Smarty_Internal_Template $_smarty_tpl)
Overriden by |
# |
Properties | |||
---|---|---|---|
public
static
|
array
|
$sysplugins = [
'file' => 'smarty_internal_resource_file.php',
'string' => 'smarty_internal_resource_string.php',
'extends' => 'smarty_internal_resource_extends.php',
'stream' => 'smarty_internal_resource_stream.php',
'eval' => 'smarty_internal_resource_eval.php',
'php' => 'smarty_internal_resource_php.php',
]
|
# |
public
|
boolean
|
$uncompiled = false
|
# |
public
|
boolean
|
$recompiled = false
|
# |
public
|
bool
|
$hasCompiledHandler = false
|
# |