PEEL Shopping
Open source ecommerce : PEEL Shopping
smarty_internal_nocache_insert.php
Go to the documentation of this file.
1 <?php
19 
30  public static function compile($_function, $_attr, $_template, $_script, $_assign = null)
31  {
32  $_output = '<?php ';
33  if ($_script != 'null') {
34  // script which must be included
35  // code for script file loading
36  $_output .= "require_once '{$_script}';";
37  }
38  // call insert
39  if (isset($_assign)) {
40  $_output .= "\$_smarty_tpl->assign('{$_assign}' , {$_function} (" . var_export($_attr, true) . ",\$_smarty_tpl), true);?>";
41  } else {
42  $_output .= "echo {$_function}(" . var_export($_attr, true) . ",\$_smarty_tpl);?>";
43  }
44  $_tpl = $_template;
45  while ($_tpl->parent instanceof Smarty_Internal_Template) {
46  $_tpl = $_tpl->parent;
47  }
48  return "/*%%SmartyNocache:{$_tpl->properties['nocache_hash']}%%*/" . $_output . "/*/%%SmartyNocache:{$_tpl->properties['nocache_hash']}%%*/";
49  }
50 
51 }
52 
53 ?>
static compile($_function, $_attr, $_template, $_script, $_assign=null)
Compiles code for the {insert} tag into cache file.

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.