move forking code to separate class
[phorkie.git] / src / phorkie / Repository.php
index 9f8f264c413cb14fba579a4b072c7a9383d403a5..43f2b23dddf0be98f7ac56626cd1cc506be35541 100644 (file)
@@ -104,6 +104,11 @@ class Repository
         $this->hash = $output;
     }
 
+       /**
+     * Populates $this->message
+     *
+     * @return void
+     */
     public function loadMessage()
     {
         $rev = (isset($this->hash)) ? $this->hash : 'HEAD';
@@ -252,6 +257,8 @@ class Repository
             return '/' . $this->id;
         } else if ($type == 'fork') {
             return '/' . $this->id . '/fork';
+        } else if ($type == 'doap') {
+            return '/' . $this->id . '/doap';
         } else if ($type == 'delete') {
             return '/' . $this->id . '/delete';
         } else if ($type == 'delete-confirm') {