update 0.5.0 changelog
[phorkie.git] / src / phorkie / Repository / Remote.php
index 4f5034c52cf4b94404af63987e78e2c61b6be640..3bb153fec8de8ca1c904291c93f1111ffd44822b 100644 (file)
@@ -13,6 +13,11 @@ class Repository_Remote
     }
 
 
+    public function getName()
+    {
+        return $this->name;
+    }
+
     public function getTitle()
     {
         if (isset($this->arConfig['title'])) {
@@ -38,10 +43,13 @@ class Repository_Remote
             }
         }
 
-        return $this->arConfig['url'];
+        if (isset($this->arConfig['url'])) {
+            return $this->arConfig['url'];
+        }
+        return null;
     }
 
-    public function getWebURL()
+    public function getWebURL($full = false)
     {
         if (isset($this->arConfig['homepage'])) {
             return $this->arConfig['homepage'];
@@ -50,7 +58,7 @@ class Repository_Remote
         if ($this->isLocal()) {
             $local = $this->getLocalRepository();
             if ($local !== null) {
-                return $local->getLink('display');
+                return $local->getLink('display', null, $full);
             }
         }