Esempio n. 1
0
 public function addElement(Apishka_Templater_Node_ExpressionAbstract $value, Apishka_Templater_Node_ExpressionAbstract $key = null)
 {
     if (null === $key) {
         $key = Apishka_Templater_Node_Expression_Constant::apishka(++$this->index, $value->getLine());
     }
     array_push($this->nodes, $key, $value);
 }
Esempio n. 2
0
 public function __construct(Apishka_Templater_Node_ExpressionAbstract $node, $method, Apishka_Templater_Node_Expression_Array $arguments, $lineno)
 {
     parent::__construct(array('node' => $node, 'arguments' => $arguments), array('method' => $method, 'safe' => false), $lineno);
     if ($node instanceof Apishka_Templater_Node_Expression_Name) {
         $node->setAttribute('always_defined', true);
     }
 }
Esempio n. 3
0
 public function __construct($name, $lineno, $tag = null)
 {
     parent::__construct(array(), array('output' => false, 'name' => $name), $lineno, $tag);
 }
Esempio n. 4
0
 public function __construct($name, $lineno)
 {
     parent::__construct(array(), array('name' => $name), $lineno);
 }
Esempio n. 5
0
 /**
  * Construct
  *
  * @param Apishka_Templater_NodeAbstract $node
  * @param mixed                          $lineno
  */
 public function __construct(Apishka_Templater_NodeAbstract $node, $lineno)
 {
     parent::__construct(array('node' => $node), array(), $lineno);
 }
Esempio n. 6
0
 public function __construct(Apishka_Templater_Node_ExpressionAbstract $node, Apishka_Templater_Node_ExpressionAbstract $attribute, Apishka_Templater_Node_ExpressionAbstract $arguments = null, $type, $lineno)
 {
     parent::__construct(array('node' => $node, 'attribute' => $attribute, 'arguments' => $arguments), array('type' => $type, 'disable_c_ext' => false), $lineno);
 }
Esempio n. 7
0
 public function __construct(Apishka_Templater_NodeAbstract $name, Apishka_Templater_NodeAbstract $args, $asString = false, $lineno, $tag = null)
 {
     parent::__construct(array('name' => $name, 'args' => $args), array('as_string' => $asString, 'output' => false), $lineno, $tag);
 }
Esempio n. 8
0
 public function __construct(Apishka_Templater_Node_ExpressionAbstract $expr1, Apishka_Templater_Node_ExpressionAbstract $expr2, Apishka_Templater_Node_ExpressionAbstract $expr3, $lineno)
 {
     parent::__construct(array('expr1' => $expr1, 'expr2' => $expr2, 'expr3' => $expr3), array(), $lineno);
 }
Esempio n. 9
0
 public function __construct($name, $lineno)
 {
     parent::__construct(array(), array('name' => $name, 'always_defined' => false), $lineno);
 }
Esempio n. 10
0
 /**
  * Construct
  *
  * @param Apishka_Templater_NodeAbstract $left
  * @param Apishka_Templater_NodeAbstract $right
  * @param mixed                          $lineno
  */
 public function __construct(Apishka_Templater_NodeAbstract $left, Apishka_Templater_NodeAbstract $right, $lineno)
 {
     parent::__construct(array('left' => $left, 'right' => $right), array(), $lineno);
 }
Esempio n. 11
0
 public function __construct($value, $lineno)
 {
     parent::__construct(array(), array('value' => $value), $lineno);
 }