git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use autoloader on geshi before including it manually
[phorkie.git]
/
src
/
phorkie
/
Repository.php
diff --git
a/src/phorkie/Repository.php
b/src/phorkie/Repository.php
index 7428c8a0c093abd7f0d20a474dda6c7c028f1ed4..9de2e1ab8995b8226e0e8845d9d5eb0866019879 100644
(file)
--- a/
src/phorkie/Repository.php
+++ b/
src/phorkie/Repository.php
@@
-144,7
+144,7
@@
class Repository
/**
* Loads the list of files in this repository
*
/**
* Loads the list of files in this repository
*
- * @return File[] Array of files
+ * @return File[] Array of file
object
s
*/
public function getFiles()
{
*/
public function getFiles()
{
@@
-186,6
+186,11
@@
class Repository
return $name;
}
return $name;
}
+ /**
+ * Return array with all file paths in this repository
+ *
+ * @return array
+ */
protected function getFilePaths()
{
if ($this->hash === null) {
protected function getFilePaths()
{
if ($this->hash === null) {
@@
-326,8
+331,12
@@
class Repository
$link = $this->id . '/delete';
} else if ($type == 'delete-confirm') {
$link = $this->id . '/delete/confirm';
$link = $this->id . '/delete';
} else if ($type == 'delete-confirm') {
$link = $this->id . '/delete/confirm';
+ } else if ($type == 'remotefork') {
+ return 'web+fork:' . $this->getLink('display', null, true);
} else if ($type == 'revision') {
$link = $this->id . '/rev/' . $option;
} else if ($type == 'revision') {
$link = $this->id . '/rev/' . $option;
+ } else if ($type == 'linkback') {
+ $link = $this->id . '/linkback';
} else {
throw new Exception('Unknown link type');
}
} else {
throw new Exception('Unknown link type');
}