コード例 #1
0
 protected function parse($fileName)
 {
     $document = new DomDocument();
     $document->load($fileName);
     foreach ($document->getElementsByTagName('method') as $methodElement) {
         $this->parseMethodElement($methodElement);
     }
 }
コード例 #2
0
ファイル: DomDocument.php プロジェクト: blar/dom
 /**
  * @param string $filename File name.
  * @param integer $options Options.
  * @return self
  */
 public function load($filename, $options = 0)
 {
     $status = parent::load($filename, $options);
     if (!$status) {
         throw new Exception(__METHOD__);
     }
     return $this;
 }