Class Smarty_Resource
Smarty Resource Plugin Base implementation for resource plugins
Direct known subclasses
Smarty_Internal_Resource_Extends
,
Smarty_Internal_Resource_File
,
Smarty_Internal_Resource_Registered
,
Smarty_Internal_Resource_String
,
Smarty_Resource_Custom
,
Smarty_Resource_Recompiled
,
Smarty_Resource_Uncompiled
Indirect known subclasses
Smarty_Internal_Resource_Eval
,
Smarty_Internal_Resource_Php
,
Smarty_Internal_Resource_Stream
Package: Smarty\TemplateResources
Author: Rodney Rehm
Located at tpl/smarty/sysplugins/smarty_resource.php
Methods summary
abstract public
string
|
|
abstract public
|
#
populate(
populate Source Object with meta data from Resource |
public
|
#
populateTimestamp(
populate Source Object with timestamp and exists from Resource |
public
string
|
|
public
string
|
|
public static
|
|
public static
array
|
#
parseResourceName( string $resource_name, string $default_resource )
extract resource_type and resource_name from template_resource and config_resource |
public static
string
|
#
getUniqueTemplateName(
modify template_resource according to resource handlers specifications |
public
|
|
public static
|
#
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 |
Magic methods summary
public
|
|
public
|
#
populateCompiledFilepath(
|
public
|
Properties summary
public
boolean
|
$uncompiled
Source is bypassing compiler |
#
false
|
public
boolean
|
$recompiled
Source must be recompiled on every occasion |
#
false
|
public static
array
|
$sysplugins
resource types provided by the core |
#
array('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
|
$hasCompiledHandler
Flag if resource does implement populateCompiledFilepath() method |
#
false
|