Esempio n. 1
0
 public function parse($content)
 {
     $stylesheetConstraint = parent::parse($content);
     $this->root = null;
     $this->clearStack();
     return $stylesheetConstraint;
 }
Esempio n. 2
0
 /**
  * Parses document and build graph of Node
  * 
  * @return PageCollection Root of node's graph
  */
 public function parse($content, StylesheetConstraint $stylesheetConstraint = null)
 {
     if ($stylesheetConstraint !== null) {
         $this->setStylesheetConstraint($stylesheetConstraint);
     }
     $pageCollection = parent::parse($content);
     $this->fireOnEndParsing($pageCollection);
     $this->initialize();
     return $pageCollection;
 }