import() 공개 메소드

public import ( TheSeer\fDOM\fDOMDocument $dom ) : void
$dom TheSeer\fDOM\fDOMDocument
리턴 void
예제 #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);
     }
 }