TheSeer\phpDox\Collector\IndexCollection::import PHP Method

import() public method

public import ( TheSeer\fDOM\fDOMDocument $dom ) : void
$dom TheSeer\fDOM\fDOMDocument
return void
    public function import(fDOMDocument $dom)
    {
        $this->dom = $dom;
        $this->dom->registerNamespace('phpdox', 'http://xml.phpdox.net/src');
    }

Usage Example

コード例 #1
0
ファイル: Project.php プロジェクト: sakshika/ATM
 /**
  * @return void
  */
 private function initCollections()
 {
     $this->source = new SourceCollection($this->srcDir);
     $srcFile = $this->xmlDir . '/source.xml';
     if (file_exists($srcFile)) {
         $dom = new fDOMDocument();
         $dom->load($srcFile);
         $this->source->import($dom);
     }
     $this->index = new IndexCollection();
     $srcFile = $this->xmlDir . '/index.xml';
     if (file_exists($srcFile)) {
         $dom = new fDOMDocument();
         $dom->load($srcFile);
         $this->index->import($dom);
     }
 }