PEEL Shopping
Open source ecommerce : PEEL Shopping
Public Member Functions | Static Public Member Functions
EngineTpl Class Reference
Inheritance diagram for EngineTpl:
SmartyEngine TwigEngine

Public Member Functions

 getName ()
 Returns created adapter type name. More...
 
 assign ($tpl_var, $value=null)
 assigns global Template variable(s) More...
 
 display ($template)
 displays a Template More...
 
 fetch ($template)
 fetches a rendered template and returns the outoput More...
 
 createTemplate ($template, array $data=null)
 This creates a template object which later can be rendered by the display or fetch. More...
 

Static Public Member Functions

static create ($type, $templadeDir, $forceCompile=false, $debugging=false)
 Creates EngineTpl adapter of specified type. More...
 

Detailed Description

Definition at line 28 of file EngineTpl.php.

Member Function Documentation

assign (   $tpl_var,
  $value = null 
)
abstract

assigns global Template variable(s)

Parameters
array$ |string $tpl_var the template variable name(s)
mixed$valuethe value to assign
Returns
static create (   $type,
  $templadeDir,
  $forceCompile = false,
  $debugging = false 
)
static

Creates EngineTpl adapter of specified type.

Parameters
int$typeSpecifies type of engine template to use, value must be one of EngineTpl::TYPE_* constants
string$templadeDirSets template directory of template sources
boolean$forceCompileEnables/disables templates (re)compilation on every invocation if possible
boolean$debuggingEnables/disables debugging mode if possible
Returns
EngineTpl

Definition at line 40 of file EngineTpl.php.

createTemplate (   $template,
array  $data = null 
)
abstract

This creates a template object which later can be rendered by the display or fetch.

Parameters
string$templatethe resource handle of the template file
array$dataassociative array containing the name/value pairs of variables which get assigned to the template object
Returns
Template template object
display (   $template)
abstract

displays a Template

Parameters
string$templatethe resource handle of the template file or template object
fetch (   $template)
abstract

fetches a rendered template and returns the outoput

Parameters
string$templatethe resource handle of the template file
Returns
string rendered template output
getName ( )
final

Returns created adapter type name.

Returns
string adapter type name

Definition at line 62 of file EngineTpl.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:43 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.