|
static | parseResourceName ($resource_name, $default_resource, &$name, &$type) |
| extract resource_type and resource_name from template_resource and config_resource More...
|
|
Definition at line 18 of file smarty_resource.php.
build template filepath by traversing the template_dir array
- Parameters
-
- Returns
- string fully qualified filepath
- Exceptions
-
Definition at line 201 of file smarty_resource.php.
buildUniqueResourceName |
( |
Smarty |
$smarty, |
|
|
|
$resource_name |
|
) |
| |
|
protected |
modify resource_name according to resource handlers specifications
- Parameters
-
Smarty | $smarty | Smarty instance |
string | $resource_name | resource_name to make unique |
- Returns
- string unique resource name
Definition at line 102 of file smarty_resource.php.
test is file exists and save timestamp
- Parameters
-
- Returns
- bool true if file exists
Definition at line 347 of file smarty_resource.php.
Determine basename for compiled filename.
- Parameters
-
- Returns
- string resource's basename
Definition at line 360 of file smarty_resource.php.
Load template's source into current template object.
{
static getUniqueTemplateName |
( |
|
$smarty, |
|
|
|
$template_resource |
|
) |
| |
|
static |
modify resource_name according to resource handlers specifications
- Parameters
-
Smarty | $smarty | Smarty instance |
string | $resource_name | resource_name to make unique |
- Returns
- string unique resource name modify template_resource according to resource handlers specifications
- Parameters
-
string | $smarty | Smarty instance |
string | $template_resource | template_resource to extracate resource handler and name of |
- Returns
- string unique resource name
Definition at line 488 of file smarty_resource.php.
static load |
( |
Smarty |
$smarty, |
|
|
|
$type |
|
) |
| |
|
static |
normalizePath |
( |
|
$_path, |
|
|
|
$ds = true |
|
) |
| |
|
protected |
Normalize Paths "foo/../bar" to "bar".
- Parameters
-
string | $_path | path to normalize |
boolean | $ds | respect windows directory separator |
- Returns
- string normalized path
Definition at line 155 of file smarty_resource.php.
static parseResourceName |
( |
|
$resource_name, |
|
|
|
$default_resource, |
|
|
& |
$name, |
|
|
& |
$type |
|
) |
| |
|
staticprotected |
extract resource_type and resource_name from template_resource and config_resource
- Note
- "C:/foo.tpl" was forced to file resource up till Smarty 3.1.3 (including).
- Parameters
-
string | $resource_name | template_resource or config_resource to parse |
string | $default_resource | the default resource_type defined in $smarty |
string | &$name | the parsed resource name |
string | &$type | the parsed resource type |
- Returns
- void
Definition at line 458 of file smarty_resource.php.
populate Source Object with meta data from Resource
- Parameters
-
populate Compiled Object with compiled filepath
- Parameters
-
Definition at line 113 of file smarty_resource.php.
populate Source Object with timestamp and exists from Resource
- Parameters
-
Definition at line 89 of file smarty_resource.php.
initialize Source Object for given resource
Either [$_template] or [$smarty, $template_resource] must be specified
- Parameters
-
- Returns
- Smarty_Template_Source Source Object
Definition at line 506 of file smarty_resource.php.
Initial value:= array(
'file' => true,
'string' => true,
'extends' => true,
'stream' => true,
'eval' => true,
'php' => true
)
Definition at line 38 of file smarty_resource.php.
The documentation for this class was generated from the following file: