From f47ddf0758f120dfb26f03fb36be5cd897a10f23 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Fri, 22 Nov 2013 21:32:06 +0100 Subject: first work on remote fork notifications with linkback (webmention/pingback) --- src/phorkie/Repository/Remote.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to '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); } } -- cgit v1.2.3