PEEL Shopping
Open source ecommerce : PEEL Shopping
smarty_internal_resource_eval.php
Go to the documentation of this file.
1 <?php
22 
30  public function populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template=null)
31  {
32  $source->uid = $source->filepath = sha1($source->name);
33  $source->timestamp = false;
34  $source->exists = true;
35  }
36 
44  public function getContent(Smarty_Template_Source $source)
45  {
46  return $this->decode($source->name);
47  }
48 
55  protected function decode($string)
56  {
57  // decode if specified
58  if (($pos = strpos($string, ':')) !== false) {
59  if (!strncmp($string, 'base64', 6)) {
60  return base64_decode(substr($string, 7));
61  } elseif (!strncmp($string, 'urlencode', 9)) {
62  return urldecode(substr($string, 10));
63  }
64  }
65 
66  return $string;
67  }
68 
76  protected function buildUniqueResourceName(Smarty $smarty, $resource_name)
77  {
78  return get_class($this) . '#' .$this->decode($resource_name);
79  }
80 
87  protected function getBasename(Smarty_Template_Source $source)
88  {
89  return '';
90  }
91 
92 }
93 
94 ?>
buildUniqueResourceName(Smarty $smarty, $resource_name)
modify resource_name according to resource handlers specifications
getBasename(Smarty_Template_Source $source)
Determine basename for compiled filename.
decode($string)
decode base64 and urlencode
Smarty plugin to format text blocks.
getContent(Smarty_Template_Source $source)
Load template's source from $resource_name into current template object.
if(strlen($date2)== '10') if($type== 'users-by-age'&&a_priv('admin_users', true)) elseif($type== 'forums-count'&&a_priv('admin_content', true)) elseif($type== 'forums-categories'&&a_priv('admin_content', true)) elseif($type== 'users-count'&&a_priv('admin_users', true)) elseif($type== 'product-categories'&&a_priv('admin_products', true)) elseif($type== 'users-by-sex'&&a_priv('admin_users', true)) elseif($type== 'users-by-country'&&a_priv('admin_users', true)) elseif($type== 'sales'&&a_priv('admin_sales', true))
Definition: chart-data.php:160
Smarty Internal Plugin Resource Eval.
populate(Smarty_Template_Source $source, Smarty_Internal_Template $_template=null)
populate Source Object with meta data from Resource

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