Smarty Resource Plugin
Wrapper Implementation for custom resource plugins
| package | Smarty |
|---|---|
| subpackage | TemplateResources |
config(\Smarty_Internal_Config $_config) : \Smarty_Config_Source
| inherited_from | \Smarty_Resource::config() |
|---|
\Smarty_Internal_Configconfig object
\Smarty_Config_SourceSource ObjectgetContent(\Smarty_Template_Source $source) : string
getUniqueTemplateName(string $smarty, string $template_resource) : string
| inherited_from | \Smarty_Resource::getUniqueTemplateName() |
|---|
stringSmarty instance
stringtemplate_resource to extracate resource handler and name of
stringunique resource nameload(\Smarty $smarty, string $type) : \Smarty_Resource
| inherited_from | \Smarty_Resource::load() |
|---|
stringname of the resource
\Smarty_ResourceResource Handlerpopulate(\Smarty_Template_Source $source, \Smarty_Internal_Template $_template)
populateCompiledFilepath(\Smarty_Template_Compiled $compiled, \Smarty_Internal_Template $_template)
| inherited_from | \Smarty_Resource::populateCompiledFilepath() |
|---|
populateTimestamp(\Smarty_Template_Source $source)
| inherited_from | \Smarty_Resource::populateTimestamp() |
|---|
source(\Smarty_Internal_Template $_template, \Smarty $smarty, string $template_resource) : \Smarty_Template_Source
Either [$_template] or [$smarty, $template_resource] must be specified
| inherited_from | \Smarty_Resource::source() |
|---|
stringresource identifier
\Smarty_Template_SourceSource ObjectbuildFilepath(\Smarty_Template_Source $source, \Smarty_Internal_Template $_template) : string
| inherited_from | \Smarty_Resource::buildFilepath() |
|---|
\SmartyException |
if default template handler is registered but not callable |
|---|
stringfully qualified filepathbuildUniqueResourceName(\Smarty $smarty, string $resource_name) : string
| inherited_from | \Smarty_Resource::buildUniqueResourceName() |
|---|
stringresource_name to make unique
stringunique resource namefetch(string $name, string $source, integer $mtime)
stringtemplate name
string&$source template source
integer&$mtime template modification timestamp (epoch)
fetchTimestamp(string $name) : integer | boolean
{@internal implementing this method is optional. Only implement it if modification times can be accessed faster than loading the complete template source.}}
stringtemplate name
integerbooleantimestamp (epoch) the template was modified, or false if not foundfileExists(\Smarty_Template_Source $source, string $file) : bool
| inherited_from | \Smarty_Resource::fileExists() |
|---|
stringfile name
booltrue if file existsgetBasename(\Smarty_Template_Source $source) : string
normalizePath(string $_path, boolean $ds) : string
./bar" to "bar"
| inherited_from | \Smarty_Resource::normalizePath() |
|---|
stringpath to normalize
booleanrespect windows directory separator
stringnormalized pathparseResourceName(string $resource_name, string $default_resource, string $name, string $type) : void
| note | "C:/foo.tpl" was forced to file resource up till Smarty 3.1.3 (including). |
|---|---|
| inherited_from | \Smarty_Resource::parseResourceName() |
stringtemplate_resource or config_resource to parse
stringthe default resource_type defined in $smarty
string&$name the parsed resource name
string&$type the parsed resource type
$compileds : array
| inherited_from | \Smarty_Resource::$$compileds |
|---|
$compiler_class : string
| inherited_from | \Smarty_Resource::$$compiler_class |
|---|
$resources : array
| inherited_from | \Smarty_Resource::$$resources |
|---|
$sources : array
| inherited_from | \Smarty_Resource::$$sources |
|---|
$template_lexer_class : string
| inherited_from | \Smarty_Resource::$$template_lexer_class |
|---|
$template_parser_class : string
| inherited_from | \Smarty_Resource::$$template_parser_class |
|---|
$sysplugins : array
| inherited_from | \Smarty_Resource::$$sysplugins |
|---|