aboutsummaryrefslogtreecommitdiff
path: root/src/phorkie/Repository.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2013-11-22 21:32:06 +0100
committerChristian Weiske <cweiske@cweiske.de>2013-11-22 21:32:06 +0100
commitf47ddf0758f120dfb26f03fb36be5cd897a10f23 (patch)
tree9b64102a66eff570eee85c382688a2f1d423beb4 /src/phorkie/Repository.php
parent934246267dc4089dc0952bbe8412f32fd7346739 (diff)
downloadphorkie-f47ddf0758f120dfb26f03fb36be5cd897a10f23.tar.gz
phorkie-f47ddf0758f120dfb26f03fb36be5cd897a10f23.zip
first work on remote fork notifications with linkback (webmention/pingback)
Diffstat (limited to 'src/phorkie/Repository.php')
-rw-r--r--src/phorkie/Repository.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/phorkie/Repository.php b/src/phorkie/Repository.php
index 7428c8a..2683ad0 100644
--- a/src/phorkie/Repository.php
+++ b/src/phorkie/Repository.php
@@ -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');
}