Compare commits
No commits in common. "master" and "0.2.0" have entirely different histories.
3 changed files with 2 additions and 27 deletions
|
@ -18,7 +18,6 @@ class DokuWikiChangeset {
|
||||||
private $sum;
|
private $sum;
|
||||||
private $extra;
|
private $extra;
|
||||||
private $content;
|
private $content;
|
||||||
private $page;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return mixed
|
* @return mixed
|
||||||
|
@ -76,10 +75,6 @@ class DokuWikiChangeset {
|
||||||
return $this->type;
|
return $this->type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getPage() {
|
|
||||||
return $this->page;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
|
@ -88,7 +83,7 @@ class DokuWikiChangeset {
|
||||||
return $this->user;
|
return $this->user;
|
||||||
}
|
}
|
||||||
|
|
||||||
function __construct($date,$extra, $id, $ip, $sum, $type, $user, DokuWikiPage $page)
|
function __construct($date,$extra, $id, $ip, $sum, $type, $user)
|
||||||
{
|
{
|
||||||
$this->date = new \DateTime();
|
$this->date = new \DateTime();
|
||||||
$this->date->setTimestamp($date);
|
$this->date->setTimestamp($date);
|
||||||
|
@ -99,7 +94,6 @@ class DokuWikiChangeset {
|
||||||
$this->type = $type;
|
$this->type = $type;
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
$this->content = rawWiki($id,$this->date->format('U'));
|
$this->content = rawWiki($id,$this->date->format('U'));
|
||||||
$this->page = $page;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -83,13 +83,6 @@ abstract class DokuWikiNode
|
||||||
return $this->name;
|
return $this->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return DokuWikiNameSpace
|
|
||||||
*/
|
|
||||||
public function getParent() {
|
|
||||||
return $this->parent;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $filename
|
* @param $filename
|
||||||
* @param null $parent
|
* @param null $parent
|
||||||
|
|
|
@ -38,23 +38,11 @@ class DokuWikiPage extends DokuWikiNode
|
||||||
$entry = parseChangelogLine($raw_entry);
|
$entry = parseChangelogLine($raw_entry);
|
||||||
if ((!is_null($this->maxChangeSetAge)) && ($this->maxChangeSetAge->format('U') > $entry['date']))
|
if ((!is_null($this->maxChangeSetAge)) && ($this->maxChangeSetAge->format('U') > $entry['date']))
|
||||||
continue;
|
continue;
|
||||||
$changelog = new DokuWikiChangeset($entry['date'], $entry['extra'], $entry['id'], $entry['ip'], $entry['sum'], $entry['type'], $entry['user'],$this);
|
$changelog = new DokuWikiChangeset($entry['date'], $entry['extra'], $entry['id'], $entry['ip'], $entry['sum'], $entry['type'], $entry['user']);
|
||||||
$this->ChangeLog->append($changelog);
|
$this->ChangeLog->append($changelog);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($this->ChangeLog->count() > 0) {
|
|
||||||
$this->ChangeLog->uasort(function(DokuWikiChangeset $a, DokuWikiChangeset $b){
|
|
||||||
if ($a->getDate() == $b->getDate()) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
return ($a->getDate() > $b->getDate()) ? -1 : 1;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTitle() {
|
|
||||||
return strlen($this->getMetaData('title')) > 0 ? $this->getMetaData('title') : $this->getName();
|
|
||||||
}
|
|
||||||
}
|
}
|
Reference in a new issue