From e9576d0d581d117ede6e4223c01e7a517a062e5a Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sun, 8 Jun 2014 01:57:48 +0200 Subject: [PATCH] Create a class that represents a changeset of dokuwiki page. --- .../DokuWikiChangeset.php | 100 ++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100755 lib/enko/dokuwiki/objectrepresentation/DokuWikiChangeset.php diff --git a/lib/enko/dokuwiki/objectrepresentation/DokuWikiChangeset.php b/lib/enko/dokuwiki/objectrepresentation/DokuWikiChangeset.php new file mode 100755 index 0000000..97b10bc --- /dev/null +++ b/lib/enko/dokuwiki/objectrepresentation/DokuWikiChangeset.php @@ -0,0 +1,100 @@ +content; + } + + /** + * @return \DateTime + */ + public function getDate() + { + return $this->date; + } + + /** + * @return mixed + */ + public function getExtra() + { + return $this->extra; + } + + /** + * @return mixed + */ + public function getId() + { + return $this->id; + } + + /** + * @return mixed + */ + public function getIp() + { + return $this->ip; + } + + /** + * @return mixed + */ + public function getSum() + { + return $this->sum; + } + + /** + * @return mixed + */ + public function getType() + { + return $this->type; + } + + /** + * @return mixed + */ + public function getUser() + { + return $this->user; + } + + function __construct($date,$extra, $id, $ip, $sum, $type, $user) + { + $this->date = new \DateTime(); + $this->date->setTimestamp($date); + $this->extra = $extra; + $this->id = $id; + $this->ip = $ip; + $this->sum = $sum; + $this->type = $type; + $this->user = $user; + $this->content = rawWiki($id,$this->date->format('U')); + } + + +} \ No newline at end of file