PEEL Shopping
Open source ecommerce : PEEL Shopping
SmartyTemplate.php
Go to the documentation of this file.
1 <?php
2 // This file should be in UTF8 without BOM - Accents examples: éèê
3 // +----------------------------------------------------------------------+
4 // | Copyright (c) 2004-2015 Advisto SAS, service PEEL - contact@peel.fr |
5 // +----------------------------------------------------------------------+
6 // | This file is part of PEEL Shopping 8.0.0, which is subject to an |
7 // | opensource GPL license: you are allowed to customize the code |
8 // | for your own needs, but must keep your changes under GPL |
9 // | More information: https://www.peel.fr/lire/licence-gpl-70.html |
10 // +----------------------------------------------------------------------+
11 // | Author: Advisto SAS, RCS 479 205 452, France, https://www.peel.fr/ |
12 // +----------------------------------------------------------------------+
13 // $Id: SmartyTemplate.php 46935 2015-09-18 08:49:48Z gboussin $
14 if (!defined('IN_PEEL')) {
15  die();
16 }
17 
18 require dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Template.php';
28 class SmartyTemplate implements Template {
33  private $sit;
34 
35  public function __construct(Smarty_Internal_Template $sit)
36  {
37  $this->sit = $sit;
38  }
39 
40  public function assign($tpl_var, $value = null)
41  {
42  $this->sit->assign($tpl_var, $value);
43  }
44 
45  public function display()
46  {
47  $this->sit->display();
48  }
49 
50  public function fetch()
51  {
52  return $this->sit->fetch();
53  }
54 }
55 
fetch()
fetches a rendered template and returns the outoput
assign($tpl_var, $value=null)
assigns Template variable(s)
__construct(Smarty_Internal_Template $sit)
display()
displays a Template

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