예제 #1
0
파일: Entry.php 프로젝트: rlugojr/daux.io
 /**
  * Return all parents starting with the root
  *
  * @return Directory[]
  */
 public function getParents()
 {
     $parents = [];
     if ($this->parent && !$this->parent instanceof Root) {
         $parents = $this->parent->getParents();
         $parents[] = $this->parent;
     }
     return $parents;
 }