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_Config
config object
\Smarty_Config_Source
Source ObjectgetContent(\Smarty_Template_Source $source) : string
getUniqueTemplateName(string $smarty, string $template_resource) : string
inherited_from | \Smarty_Resource::getUniqueTemplateName() |
---|
string
Smarty instance
string
template_resource to extracate resource handler and name of
string
unique resource nameload(\Smarty $smarty, string $type) : \Smarty_Resource
inherited_from | \Smarty_Resource::load() |
---|
string
name of the resource
\Smarty_Resource
Resource 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() |
---|
string
resource identifier
\Smarty_Template_Source
Source 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 |
---|
string
fully qualified filepathbuildUniqueResourceName(\Smarty $smarty, string $resource_name) : string
inherited_from | \Smarty_Resource::buildUniqueResourceName() |
---|
string
resource_name to make unique
string
unique resource namefetch(string $name, string $source, integer $mtime)
string
template 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.}}
string
template name
integer
boolean
timestamp (epoch) the template was modified, or false if not foundfileExists(\Smarty_Template_Source $source, string $file) : bool
inherited_from | \Smarty_Resource::fileExists() |
---|
string
file name
bool
true if file existsgetBasename(\Smarty_Template_Source $source) : string
normalizePath(string $_path, boolean $ds) : string
./bar" to "bar"
inherited_from | \Smarty_Resource::normalizePath() |
---|
string
path to normalize
boolean
respect windows directory separator
string
normalized 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() |
string
template_resource or config_resource to parse
string
the 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 |
---|