Smarty_Template_Source
Smarty Resource Data Object Meta Data Container for Template Files
- Full name:
\Smarty_Template_Source
Properties
uid
Unique Template ID
resource
Template Resource (Smarty_Internal_Template::$template_resource)
type
Resource Type
name
Resource Name
filepath
Source Filepath
timestamp
Source Timestamp
exists
Source Existence
basename
Source File Base name
components
The Components an extended template is made of
handler
Resource Handler
smarty
Smarty instance
isConfig
Resource is source
content
Template source content eventually set by default handler
compiler_class
Name of the Class to compile this resource's contents with
template_lexer_class
Name of the Class to tokenize this resource's contents with
template_parser_class
Name of the Class to parse this resource's contents with
Methods
load
initialize Source Object for given resource Either [$_template] or [$smarty, $template_resource] must be specified
public static load(\Smarty_Internal_Template $_template = null, \Smarty $smarty = null, string $template_resource = null): \Smarty_Template_Source
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$_template |
\Smarty_Internal_Template | template object |
$smarty |
\Smarty | smarty object |
$template_resource |
string | resource identifier |
Return Value:
Source Object
Throws:
getTimeStamp
Get source time stamp
getContent
Get source content
Throws:
Automatically generated on 2025-03-18