Read kurs from database.

This commit is contained in:
2016-08-29 18:27:31 +02:00
parent 60cadc9284
commit db2ade9da0
4 changed files with 69 additions and 70 deletions

View File

@@ -5,12 +5,13 @@ class SimpleEvent extends Event {
private $name, $start, $end, $org, $loc;
public function __construct($name,\DateTimeImmutable $start,\DateTimeImmutable $end,$org, $loc){
public function __construct($name,\DateTimeImmutable $start,\DateTimeImmutable $end,$org, $loc, $descr){
$this->name = $name;
$this->start = $start;
$this->end = $end;
$this->org = $org;
$this->log = $loc;
$this->loc = $loc;
$this->descr = explode("\n", $descr);
}
public function getStart(){
@@ -42,7 +43,7 @@ class SimpleEvent extends Event {
}
public function getDescription() {
return [];
return $this->descr;
}
}