8
0

Remove ribbon, add "Edit on Github" links, fixes #398

Dieser Commit ist enthalten in:
Stéphane Goetz
2016-08-17 00:18:34 +02:00
Ursprung 8ac4137007
Commit e9cd1e3c27
13 geänderte Dateien mit 51 neuen und 97 gelöschten Zeilen

Datei anzeigen

@ -139,6 +139,21 @@ abstract class Entry
return $this->path;
}
/**
* Get the path to the file from the root of the documentation
*
* @return string
*/
public function getRelativePath()
{
$root = $this;
while($root->getParent() != null) {
$root = $root->getParent();
}
return substr($this->path, strlen($root->getPath()) +1);
}
/**
* @return SplFileInfo
*/