/**
* Loads the list of files in this repository
*
- * @return File[] Array of files
+ * @return File[] Array of file objects
*/
public function getFiles()
{
return $name;
}
+ /**
+ * Return array with all file paths in this repository
+ *
+ * @return array
+ */
protected function getFilePaths()
{
if ($this->hash === null) {
$link = $this->id . '/delete';
} else if ($type == 'delete-confirm') {
$link = $this->id . '/delete/confirm';
+ } else if ($type == 'remotefork') {
+ return 'web+fork:' . $this->getLink('display', null, true);
} else if ($type == 'revision') {
$link = $this->id . '/rev/' . $option;
+ } else if ($type == 'linkback') {
+ $link = $this->id . '/linkback';
} else {
throw new Exception('Unknown link type');
}