Beginning of the admin interface

This commit is contained in:
2017-10-07 23:12:10 +02:00
parent 7cd78ac3bb
commit 89c2a59fd6
7 changed files with 212 additions and 1 deletions

View File

@@ -5,13 +5,19 @@ class SimpleEvent extends Event {
private $name, $start, $end, $org, $loc;
public function __construct($name,\DateTimeImmutable $start,\DateTimeImmutable $end,$org, $loc, $descr){
public function __construct($id, $name,\DateTimeImmutable $start,\DateTimeImmutable $end,$org, $loc, $descr, $isDBEvent = false){
$this->id = $id;
$this->name = $name;
$this->start = $start;
$this->end = $end;
$this->org = $org;
$this->loc = $loc;
$this->descr = explode("\n", $descr);
$this->isDBEvent = $isDBEvent;
}
public function getID(){
return $this->id;
}
public function getStart(){
@@ -46,4 +52,8 @@ class SimpleEvent extends Event {
return $this->descr;
}
public function isDBEvent() {
return $this->isDBEvent;
}
}