PEEL Shopping
Open source ecommerce : PEEL Shopping
Public Member Functions | Protected Member Functions
Smarty_Internal_Resource_Eval Class Reference

Smarty Internal Plugin Resource Eval. More...

Inheritance diagram for Smarty_Internal_Resource_Eval:
Smarty_Resource_Recompiled Smarty_Resource

Public Member Functions

 populate (Smarty_Template_Source $source, Smarty_Internal_Template $_template=null)
 populate Source Object with meta data from Resource More...
 
 getContent (Smarty_Template_Source $source)
 Load template's source from $resource_name into current template object. More...
 
- Public Member Functions inherited from Smarty_Resource_Recompiled
 populateCompiledFilepath (Smarty_Template_Compiled $compiled, Smarty_Internal_Template $_template)
 populate Compiled Object with compiled filepath More...
 
- Public Member Functions inherited from Smarty_Resource
 getContent (Smarty_Template_Source $source)
 Load template's source into current template object. More...
 
 populate (Smarty_Template_Source $source, Smarty_Internal_Template $_template=null)
 populate Source Object with meta data from Resource More...
 
 populateTimestamp (Smarty_Template_Source $source)
 populate Source Object with timestamp and exists from Resource More...
 
 populateCompiledFilepath (Smarty_Template_Compiled $compiled, Smarty_Internal_Template $_template)
 populate Compiled Object with compiled filepath More...
 

Protected Member Functions

 decode ($string)
 decode base64 and urlencode More...
 
 buildUniqueResourceName (Smarty $smarty, $resource_name)
 modify resource_name according to resource handlers specifications More...
 
 getBasename (Smarty_Template_Source $source)
 Determine basename for compiled filename. More...
 
- Protected Member Functions inherited from Smarty_Resource
 buildUniqueResourceName (Smarty $smarty, $resource_name)
 modify resource_name according to resource handlers specifications More...
 
 normalizePath ($_path, $ds=true)
 Normalize Paths "foo/../bar" to "bar". More...
 
 buildFilepath (Smarty_Template_Source $source, Smarty_Internal_Template $_template=null)
 build template filepath by traversing the template_dir array More...
 
 fileExists (Smarty_Template_Source $source, $file)
 test is file exists and save timestamp More...
 
 getBasename (Smarty_Template_Source $source)
 Determine basename for compiled filename. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Smarty_Resource
static load (Smarty $smarty, $type)
 Load Resource Handler. More...
 
static getUniqueTemplateName ($smarty, $template_resource)
 modify resource_name according to resource handlers specifications More...
 
static source (Smarty_Internal_Template $_template=null, Smarty $smarty=null, $template_resource=null)
 initialize Source Object for given resource More...
 
static config (Smarty_Internal_Config $_config)
 initialize Config Source Object for given resource More...
 
- Data Fields inherited from Smarty_Resource
 $compiler_class = 'Smarty_Internal_SmartyTemplateCompiler'
 
 $template_lexer_class = 'Smarty_Internal_Templatelexer'
 
 $template_parser_class = 'Smarty_Internal_Templateparser'
 
- Static Public Attributes inherited from Smarty_Resource
static $sources = array()
 
static $compileds = array()
 
static $resources = array()
 
- Static Protected Member Functions inherited from Smarty_Resource
static parseResourceName ($resource_name, $default_resource, &$name, &$type)
 extract resource_type and resource_name from template_resource and config_resource More...
 
- Static Protected Attributes inherited from Smarty_Resource
static $sysplugins
 

Detailed Description

Smarty Internal Plugin Resource Eval.

Implements the strings as resource for Smarty template

{

Definition at line 21 of file smarty_internal_resource_eval.php.

Member Function Documentation

buildUniqueResourceName ( Smarty  $smarty,
  $resource_name 
)
protected

modify resource_name according to resource handlers specifications

Parameters
Smarty$smartySmarty instance
string$resource_nameresource_name to make unique
Returns
string unique resource name

Definition at line 76 of file smarty_internal_resource_eval.php.

decode (   $string)
protected

decode base64 and urlencode

Parameters
string$stringtemplate_resource to decode
Returns
string decoded template_resource

Definition at line 55 of file smarty_internal_resource_eval.php.

getBasename ( Smarty_Template_Source  $source)
protected

Determine basename for compiled filename.

Parameters
Smarty_Template_Source$sourcesource object
Returns
string resource's basename

Definition at line 87 of file smarty_internal_resource_eval.php.

getContent ( Smarty_Template_Source  $source)

Load template's source from $resource_name into current template object.

decode() to decode base64 and urlencoded template_resources

Parameters
Smarty_Template_Source$sourcesource object
Returns
string template source

Definition at line 44 of file smarty_internal_resource_eval.php.

populate ( Smarty_Template_Source  $source,
Smarty_Internal_Template  $_template = null 
)

populate Source Object with meta data from Resource

Parameters
Smarty_Template_Source$sourcesource object
Smarty_Internal_Template$_templatetemplate object
Returns
void

Definition at line 30 of file smarty_internal_resource_eval.php.


The documentation for this class was generated from the following file:

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:41:44 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.