libs/sysplugins/smarty_internal_compile_append.php Quellcode

smarty_internal_compile_append.php
gehe zur Dokumentation dieser Datei
1 <?php
18 {
28  public function compile($args, $compiler, $parameter)
29  {
30  // the following must be assigned at runtime because it will be overwritten in parent class
31  $this->required_attributes = array('var', 'value');
32  $this->shorttag_order = array('var', 'value');
33  $this->optional_attributes = array('scope', 'index');
34  // check and get attributes
35  $_attr = $this->getAttributes($compiler, $args);
36  // map to compile assign attributes
37  if (isset($_attr['index'])) {
38  $_params['smarty_internal_index'] = '[' . $_attr['index'] . ']';
39  unset($_attr['index']);
40  } else {
41  $_params['smarty_internal_index'] = '[]';
42  }
43  $_new_attr = array();
44  foreach ($_attr as $key => $value) {
45  $_new_attr[] = array($key => $value);
46  }
47  // call compile assign
48  return parent::compile($_new_attr, $compiler, $_params);
49  }
50 }




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.