X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/ba158e3ed03dec10e6654b0b0dd3710504bdf04d..0e362c3a8a13e7e2ae7d5c1a5d2e5eaa163d153f:/src/phorkie/Repository/Remote.php diff --git a/src/phorkie/Repository/Remote.php b/src/phorkie/Repository/Remote.php index 4f5034c..3bb153f 100644 --- a/src/phorkie/Repository/Remote.php +++ b/src/phorkie/Repository/Remote.php @@ -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); } }