return $this->file;
}
+ /**
+ * Get edit URL
+ * @return string
+ */
+ public function getEditUrl() {
+ return $this->repo->getEditUrl($this->name);
+ }
+
/**
* Read the title of the ref entry file
* @return string
* @return \mdref\Entry
*/
public function getParent() {
- if ("." !== ($dirn = dirname($this->name))) {
+ switch ($dirn = dirname($this->name)) {
+ case ".":
+ case "/":
+ break;
+ default:
return $this->repo->getEntry($dirn);
}
}