Add the tags as categories in the ICS-files.

Fixes #34
This commit is contained in:
Tim Schumacher 2014-11-22 17:08:25 +01:00
parent a5b2f118a2
commit 10931fa07b
5 changed files with 77 additions and 56 deletions

View file

@ -151,6 +151,12 @@ class Event extends BaseEntity
$event->setSummary($this->summary);
$event->setUrl($this->url);
$event->setUid($this->id);
if (count($this->tags) > 0) {
$categories = [];
foreach($this->tags as $tag) {
$event->addCategory($tag->name);
}
}
if ($this->location instanceof Location) {
$location = new EventLocation();
$location->setName($this->location->name);