Example #1
0
 /**
  * Constructs a new ezcTemplateTextTstNode
  *
  * @param ezcTemplateSourceCode $source
  * @param ezcTemplateCursor $start
  * @param ezcTemplateCursor $end 
  */
 public function __construct(ezcTemplateSourceCode $source, $start, $end)
 {
     parent::__construct($source, $start, $end);
     $this->minimumWhitespace = null;
     $this->startColumn = $start->column;
     $this->text = false;
     $this->lines = array();
 }
Example #2
0
 /**
  * Constructs a new ezcTemplateBlockTstNode
  *
  * @param ezcTemplateSourceCode $source
  * @param ezcTemplateCursor $start
  * @param ezcTemplateCursor $end  
  */
 public function __construct(ezcTemplateSourceCode $source, $start, $end)
 {
     parent::__construct($source, $start, $end);
     $this->children = array();
     $this->isClosingBlock = false;
     $this->parentBlock = null;
     $this->closingCursor = null;
     // Most blocks use nesting
     $this->isNestingBlock = true;
     $this->minimumWhitespace = null;
 }