Ejemplo n.º 1
0
 /**
  * Extracts the text the cursor point to and splits it into lines.
  */
 public function __construct(ezcTemplateSourceCode $source, $start, $end)
 {
     parent::__construct($source, $start, $end);
     $this->text = self::stripText($start->subString($end->position));
     $this->lines = $this->splitIntoLines($this->text);
 }
Ejemplo n.º 2
0
 /**
  *
  * @param ezcTemplateSource $source
  * @param ezcTemplateCursor $start
  * @param ezcTemplateCursor $end
  */
 public function __construct(ezcTemplateSourceCode $source, $start, $end)
 {
     parent::__construct($source, $start, $end);
     $this->textStartCursor = null;
     $this->textEndCursor = null;
 }