PEEL Shopping
Open source ecommerce : PEEL Shopping
smarty_internal_compile_setfilter.php
Go to the documentation of this file.
1 <?php
19 
28  public function compile($args, $compiler, $parameter)
29  {
30  $compiler->variable_filter_stack[] = $compiler->template->variable_filters;
31  $compiler->template->variable_filters = $parameter['modifier_list'];
32  // this tag does not return compiled code
33  $compiler->has_code = false;
34  return true;
35  }
36 
37 }
38 
46 
56  public function compile($args, $compiler)
57  {
58  $_attr = $this->getAttributes($compiler, $args);
59  // reset variable filter to previous state
60  if (count($compiler->variable_filter_stack)) {
61  $compiler->template->variable_filters = array_pop($compiler->variable_filter_stack);
62  } else {
63  $compiler->template->variable_filters = array();
64  }
65  // this tag does not return compiled code
66  $compiler->has_code = false;
67  return true;
68  }
69 
70 }
71 
72 ?>
getAttributes($compiler, $attributes)
This function checks if the attributes passed are valid.
compile($args, $compiler)
Compiles code for the {/setfilter} tag.
compile($args, $compiler, $parameter)
Compiles code for setfilter tag.

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.