Ejemplo n.º 1
0
 /**
  * Get the parent ref entry
  * @return \mdref\Entry
  */
 public function getParent()
 {
     if ("." !== ($dirn = dirname($this->name))) {
         return $this->repo->getEntry($dirn);
     }
 }
Ejemplo n.º 2
0
 /**
  * Implements \Iterator
  * @return \mdref\Entry
  */
 public function current()
 {
     return $this->repo->getEntry($this->repo->hasFile(current($this->iter)));
 }