PEEL Shopping
Open source ecommerce : PEEL Shopping
smarty_internal_compile_private_function_plugin.php
Go to the documentation of this file.
1 <?php
19 
26  public $required_attributes = array();
33  public $optional_attributes = array('_any');
34 
45  public function compile($args, $compiler, $parameter, $tag, $function)
46  {
47  // This tag does create output
48  $compiler->has_output = true;
49 
50  // check and get attributes
51  $_attr = $this->getAttributes($compiler, $args);
52  if ($_attr['nocache'] === true) {
53  $compiler->tag_nocache = true;
54  }
55  unset($_attr['nocache']);
56  // convert attributes into parameter array string
57  $_paramsArray = array();
58  foreach ($_attr as $_key => $_value) {
59  if (is_int($_key)) {
60  $_paramsArray[] = "$_key=>$_value";
61  } else {
62  $_paramsArray[] = "'$_key'=>$_value";
63  }
64  }
65  $_params = 'array(' . implode(",", $_paramsArray) . ')';
66  // compile code
67  $output = "<?php echo {$function}({$_params},\$_smarty_tpl);?>\n";
68  return $output;
69  }
70 
71 }
72 
73 ?>
compile($args, $compiler, $parameter, $tag, $function)
Compiles code for the execution of function plugin.
getAttributes($compiler, $attributes)
This function checks if the attributes passed are valid.

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.