Exemplo n.º 1
0
 /**
  * @param string $name
  * @return MarkedContent
  */
 public function extractContent($name)
 {
     $content = $this->getContent();
     $extracted = $this->matcher->extractRange($name, $name, $name, $content);
     $this->setContent($content);
     $content = new MarkedContent($extracted, $this->matcher);
     $content->bindTo($name, $this);
     return $content;
 }
Exemplo n.º 2
0
 public function finish()
 {
     if ($this->currentIteration) {
         $this->addContent($this->currentIteration);
         $this->currentIteration = null;
     }
     $this->baseContent->getBindedTo()->assign([$this->baseContent->getBindedMark() => $this]);
     $this->clearContents();
 }