PEEL Shopping
Open source ecommerce : PEEL Shopping
shared.literal_compiler_param.php
Go to the documentation of this file.
1 <?php
19 function smarty_literal_compiler_param($params, $index, $default=null)
20 {
21  // not set, go default
22  if (!isset($params[$index])) {
23  return $default;
24  }
25  // test if param is a literal
26  if (!preg_match('/^([\'"]?)[a-zA-Z0-9]+(\\1)$/', $params[$index])) {
27  throw new SmartyException('$param[' . $index . '] is not a literal and is thus not evaluatable at compile time');
28  }
29 
30  $t = null;
31  eval("\$t = " . $params[$index] . ";");
32  return $t;
33 }
smarty_literal_compiler_param($params, $index, $default=null)
evaluate compiler parameter

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