Smarty Resource Plugin
Base implementation for resource plugins
package | Smarty |
---|---|
subpackage | TemplateResources |
config(\Smarty_Internal_Config $_config) : \Smarty_Config_Source
getContent(\Smarty_Template_Source $source) : string
getUniqueTemplateName(string $smarty, string $template_resource) : string
string
Smarty instance
string
template_resource to extracate resource handler and name of
string
unique resource nameload(\Smarty $smarty, string $type) : \Smarty_Resource
populate(\Smarty_Template_Source $source, \Smarty_Internal_Template $_template)
populateCompiledFilepath(\Smarty_Template_Compiled $compiled, \Smarty_Internal_Template $_template)
populateTimestamp(\Smarty_Template_Source $source)
source(\Smarty_Internal_Template $_template, \Smarty $smarty, string $template_resource) : \Smarty_Template_Source
Either [$_template] or [$smarty, $template_resource] must be specified
string
resource identifier
\Smarty_Template_Source
Source ObjectbuildFilepath(\Smarty_Template_Source $source, \Smarty_Internal_Template $_template) : string
\SmartyException |
if default template handler is registered but not callable |
---|
string
fully qualified filepathbuildUniqueResourceName(\Smarty $smarty, string $resource_name) : string
string
resource_name to make unique
string
unique resource namefileExists(\Smarty_Template_Source $source, string $file) : bool
string
file name
bool
true if file existsgetBasename(\Smarty_Template_Source $source) : string
normalizePath(string $_path, boolean $ds) : string
./bar" to "bar"
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). |
---|
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
$compiler_class : string
$resources : array
$sources : array
$template_lexer_class : string
$template_parser_class : string
$sysplugins : array