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_String, Smarty_Resource_Custom, Smarty_Resource_Recompiled, Smarty_Resource_UncompiledIndirect known subclasses
Smarty_Internal_Resource_Eval, Smarty_Internal_Resource_PHP, Smarty_Internal_Resource_StreamPackage: Smarty\TemplateResources
Author: Rodney Rehm
Located at plugins/smarty/smarty_source/sysplugins/smarty_resource.php
abstract public
string
|
#
getContent(
Load template's source into current template object } |
abstract public
|
#
populate(
populate Source Object with meta data from Resource |
public
|
#
populateTimestamp(
populate Source Object with timestamp and exists from Resource |
protected
string
|
#
buildUniqueResourceName(
modify resource_name according to resource handlers specifications |
public
|
#
populateCompiledFilepath(
populate Compiled Object with compiled filepath |
protected
string
|
|
protected
string
|
#
buildFilepath(
build template filepath by traversing the template_dir array |
protected
boolean
|
|
protected
string
|
|
public static
|
|
protected static
|
#
parseResourceName( string $resource_name, string $default_resource, string & $name, string & $type )
extract resource_type and resource_name from template_resource and config_resource |
public static
string
|
#
getUniqueTemplateName( Smarty_Internal_template $template, string $template_resource )
modify template_resource according to resource handlers specifications |
public static
|
#
source(
initialize Source Object for given resource Either [$_template] or [$smarty, $template_resource] must be specified |
public static
|
public static
array
|
$sources
cache for Smarty_Template_Source instances |
#
array()
|
public static
array
|
$compileds
cache for Smarty_Template_Compiled instances |
#
array()
|
public static
array
|
$resources
cache for Smarty_Resource instances |
#
array()
|
protected static
array
|
$sysplugins
resource types provided by the core |
#
array(
'file' => true,
'string' => true,
'extends' => true,
'stream' => true,
'eval' => true,
'php' => true
)
|
public
string
|
$compiler_class
Name of the Class to compile this resource's contents with |
#
'Smarty_Internal_SmartyTemplateCompiler'
|
public
string
|
$template_lexer_class
Name of the Class to tokenize this resource's contents with |
#
'Smarty_Internal_Templatelexer'
|
public
string
|
$template_parser_class
Name of the Class to parse this resource's contents with |
#
'Smarty_Internal_Templateparser'
|