28 public function compile($args, $compiler, $parameter)
31 $this->required_attributes = array(
'var',
'value');
32 $this->shorttag_order = array(
'var',
'value');
33 $this->optional_attributes = array(
'scope',
'index');
37 if (isset($_attr[
'index'])) {
38 $_params[
'smarty_internal_index'] =
'[' . $_attr[
'index'] .
']';
39 unset($_attr[
'index']);
41 $_params[
'smarty_internal_index'] =
'[]';
44 foreach ($_attr as $key => $value) {
45 $_new_attr[] = array($key => $value);
48 return parent::compile($_new_attr, $compiler, $_params);
getAttributes($compiler, $attributes)
This function checks if the attributes passed are valid.
compile($args, $compiler, $parameter)
Compiles code for the {append} tag.