libs/sysplugins/smarty_internal_compile_setfilter.php Quellcode

smarty_internal_compile_setfilter.php
gehe zur Dokumentation dieser Datei
1 <?php
18 {
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 
35  return true;
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 
68  return true;
69  }
70 }




Korrekturen, Hinweise und Ergänzungen

Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.