diff options
Diffstat (limited to 'src/phorkie/Repository.php')
| -rw-r--r-- | src/phorkie/Repository.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/phorkie/Repository.php b/src/phorkie/Repository.php index 7428c8a..2683ad0 100644 --- a/src/phorkie/Repository.php +++ b/src/phorkie/Repository.php @@ -144,7 +144,7 @@ class Repository /** * Loads the list of files in this repository * - * @return File[] Array of files + * @return File[] Array of file objects */ public function getFiles() { @@ -186,6 +186,11 @@ class Repository return $name; } + /** + * Return array with all file paths in this repository + * + * @return array + */ protected function getFilePaths() { if ($this->hash === null) { @@ -328,6 +333,8 @@ class Repository $link = $this->id . '/delete/confirm'; } else if ($type == 'revision') { $link = $this->id . '/rev/' . $option; + } else if ($type == 'linkback') { + $link = $this->id . '/linkback'; } else { throw new Exception('Unknown link type'); } |
