first work on remote fork notifications with linkback (webmention/pingback)
[phorkie.git] / src / phorkie / Repository.php
index 7428c8a0c093abd7f0d20a474dda6c7c028f1ed4..2683ad0964a10a96b56140cc09febd88d4159d03 100644 (file)
@@ -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');
         }