Implement relative startdates *yay*

Fixes #18
This commit is contained in:
Tim Schumacher 2014-09-21 20:01:56 +02:00
parent d21c818e84
commit 33b63429ef
8 changed files with 148 additions and 82 deletions

View file

@ -84,17 +84,4 @@ class RepeatingEvent extends BaseEntity
* )
*/
protected $tags = [];
public function getFormatedRepeatPattern() {
switch($this->repeating_pattern) {
case 'P7D':
return 'Wöchentlich';
case 'P14D':
return 'Alle 2 Wochen';
case 'P1M':
return 'Monatlich';
default:
return $this->repeating_pattern;
}
}
}