PEEL Shopping
Open source ecommerce : PEEL Shopping
Public Member Functions | Data Fields | Static Public Attributes | Protected Member Functions
Smarty_Internal_TemplateCompilerBase Class Reference
Inheritance diagram for Smarty_Internal_TemplateCompilerBase:
Smarty_Internal_SmartyTemplateCompiler

Public Member Functions

 __construct ()
 Initialize compiler. More...
 
 compileTemplate (Smarty_Internal_Template $template)
 Method to compile a Smarty template. More...
 
 compileTag ($tag, $args, $parameter=array())
 Compile Tag. More...
 
 callTagCompiler ($tag, $args, $param1=null, $param2=null, $param3=null)
 lazy loads internal compile plugin for tag and calls the compile methode More...
 
 getPlugin ($plugin_name, $plugin_type)
 Check for plugins and return function name. More...
 
 getPluginFromDefaultHandler ($tag, $plugin_type)
 Check for plugins by default plugin handler. More...
 
 processNocacheCode ($content, $is_code)
 Inject inline code for nocache template sections. More...
 
 trigger_template_error ($args=null, $line=null)
 display compiler error messages without dying More...
 

Data Fields

 $suppressNocacheProcessing = false
 
 $suppressMergedTemplates = false
 
 $_tag_stack = array()
 
 $template = null
 
 $merged_templates = array()
 
 $inheritance = false
 
 $default_handler_plugins = array()
 
 $default_modifier_list = null
 
 $forceNocache = false
 
 $suppressHeader = false
 
 $suppressTemplatePropertyHeader = false
 
 $suppressFilter = false
 
 $write_compiled_code = true
 
 $compiles_template_function = false
 
 $called_functions = array()
 
 $modifier_plugins = array()
 
 $known_modifier_type = array()
 

Static Public Attributes

static $_tag_objects = array()
 

Protected Member Functions

 doCompile ($_content)
 Methode to compile a Smarty template. More...
 

Detailed Description

Definition at line 19 of file smarty_internal_templatecompilerbase.php.

Constructor & Destructor Documentation

__construct ( )

Initialize compiler.

Definition at line 156 of file smarty_internal_templatecompilerbase.php.

Member Function Documentation

callTagCompiler (   $tag,
  $args,
  $param1 = null,
  $param2 = null,
  $param3 = null 
)

lazy loads internal compile plugin for tag and calls the compile methode

compile objects cached for reuse. class name format: Smarty_Internal_Compile_TagName plugin filename format: Smarty_Internal_Tagname.php

Parameters
string$tagtag name
array$argslist of tag attributes
mixed$param1optional parameter
mixed$param2optional parameter
mixed$param3optional parameter
Returns
string compiled code

Definition at line 471 of file smarty_internal_templatecompilerbase.php.

compileTag (   $tag,
  $args,
  $parameter = array() 
)

Compile Tag.

This is a call back from the lexer/parser It executes the required compile plugin for the Smarty tag

Parameters
string$tagtag name
array$argsarray with tag attributes
array$parameterarray with compilation parameter
Returns
string compiled code

Definition at line 244 of file smarty_internal_templatecompilerbase.php.

compileTemplate ( Smarty_Internal_Template  $template)

Method to compile a Smarty template.

Parameters
Smarty_Internal_Template$templatetemplate object to compile
Returns
bool true if compiling succeeded, false if it failed

Definition at line 166 of file smarty_internal_templatecompilerbase.php.

doCompile (   $_content)
abstractprotected

Methode to compile a Smarty template.

Parameters
mixed$_contenttemplate source
Returns
bool true if compiling succeeded, false if it failed
getPlugin (   $plugin_name,
  $plugin_type 
)

Check for plugins and return function name.

Parameters
string$pugin_namename of plugin or function
string$plugin_typetype of plugin
Returns
string call name of function

Definition at line 499 of file smarty_internal_templatecompilerbase.php.

getPluginFromDefaultHandler (   $tag,
  $plugin_type 
)

Check for plugins by default plugin handler.

Parameters
string$tagname of tag
string$plugin_typetype of plugin
Returns
boolean true if found

Definition at line 553 of file smarty_internal_templatecompilerbase.php.

processNocacheCode (   $content,
  $is_code 
)

Inject inline code for nocache template sections.

This method gets the content of each template element from the parser. If the content is compiled code and it should be not cached the code is injected into the rendered output.

Parameters
string$contentcontent of template element
boolean$is_codetrue if content is compiled code
Returns
string content

Definition at line 600 of file smarty_internal_templatecompilerbase.php.

trigger_template_error (   $args = null,
  $line = null 
)

display compiler error messages without dying

If parameter $args is empty it is a parser detected syntax error. In this case the parser is called to obtain information about expected tokens.

If parameter $args contains a string this is used as error message

Parameters
string$argsindividual error message or null
string$lineline-number
Exceptions
SmartyCompilerExceptionwhen an unexpected token is found

Definition at line 640 of file smarty_internal_templatecompilerbase.php.

Field Documentation

$_tag_objects = array()
static

Definition at line 47 of file smarty_internal_templatecompilerbase.php.

$_tag_stack = array()

Definition at line 54 of file smarty_internal_templatecompilerbase.php.

$called_functions = array()

Definition at line 131 of file smarty_internal_templatecompilerbase.php.

$compiles_template_function = false

Definition at line 125 of file smarty_internal_templatecompilerbase.php.

$default_handler_plugins = array()

Definition at line 82 of file smarty_internal_templatecompilerbase.php.

$default_modifier_list = null

Definition at line 89 of file smarty_internal_templatecompilerbase.php.

$forceNocache = false

Definition at line 95 of file smarty_internal_templatecompilerbase.php.

$inheritance = false

Definition at line 75 of file smarty_internal_templatecompilerbase.php.

$known_modifier_type = array()

Definition at line 143 of file smarty_internal_templatecompilerbase.php.

$merged_templates = array()

Definition at line 68 of file smarty_internal_templatecompilerbase.php.

$modifier_plugins = array()

Definition at line 137 of file smarty_internal_templatecompilerbase.php.

$suppressFilter = false

Definition at line 113 of file smarty_internal_templatecompilerbase.php.

$suppressHeader = false

Definition at line 101 of file smarty_internal_templatecompilerbase.php.

$suppressMergedTemplates = false

Definition at line 40 of file smarty_internal_templatecompilerbase.php.

$suppressNocacheProcessing = false

Definition at line 33 of file smarty_internal_templatecompilerbase.php.

$suppressTemplatePropertyHeader = false

Definition at line 107 of file smarty_internal_templatecompilerbase.php.

$template = null

Definition at line 61 of file smarty_internal_templatecompilerbase.php.

$write_compiled_code = true

Definition at line 119 of file smarty_internal_templatecompilerbase.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.