@@ -103,24 +103,24 @@ |
||
| 103 | 103 | $filter = new \Data\Filter("participant eq '$uid'"); |
| 104 | 104 | $shifts = $dataTable->read($filter); |
| 105 | 105 | $text = "BEGIN:VCALENDAR\r\n"; |
| 106 | - $text.= "VERSION:2.0\r\n"; |
|
| 107 | - $text.= "PRODID:-//hacksw/handcal//NONSGML v1.0//EN\r\n"; |
|
| 106 | + $text .= "VERSION:2.0\r\n"; |
|
| 107 | + $text .= "PRODID:-//hacksw/handcal//NONSGML v1.0//EN\r\n"; |
|
| 108 | 108 | $count = count($shifts); |
| 109 | 109 | for($i = 0; $i < $count; $i++) |
| 110 | 110 | { |
| 111 | - $text.= "BEGIN:VEVENT\r\n"; |
|
| 112 | - $text.= "UID:".$this->user->mail."\r\n"; |
|
| 111 | + $text .= "BEGIN:VEVENT\r\n"; |
|
| 112 | + $text .= "UID:".$this->user->mail."\r\n"; |
|
| 113 | 113 | $d = new DateTime($shifts[$i]['startTime']); |
| 114 | 114 | $d->setTimezone(new \DateTimeZone('UTC')); |
| 115 | - $text.= "DTSTAMP:".$d->format('Ymd\THis\Z')."\r\n"; |
|
| 116 | - $text.= "DTSTART:".$d->format('Ymd\THis\Z')."\r\n"; |
|
| 115 | + $text .= "DTSTAMP:".$d->format('Ymd\THis\Z')."\r\n"; |
|
| 116 | + $text .= "DTSTART:".$d->format('Ymd\THis\Z')."\r\n"; |
|
| 117 | 117 | $d = new DateTime($shifts[$i]['endTime']); |
| 118 | 118 | $d->setTimezone(new \DateTimeZone('UTC')); |
| 119 | - $text.= "DTEND:".$d->format('Ymd\THis\Z')."\r\n"; |
|
| 120 | - $text.= "SUMMARY:".$shifts[$i]['roleID'].' '.$shifts[$i]['name']."\r\n"; |
|
| 121 | - $text.= "END:VEVENT\r\n"; |
|
| 119 | + $text .= "DTEND:".$d->format('Ymd\THis\Z')."\r\n"; |
|
| 120 | + $text .= "SUMMARY:".$shifts[$i]['roleID'].' '.$shifts[$i]['name']."\r\n"; |
|
| 121 | + $text .= "END:VEVENT\r\n"; |
|
| 122 | 122 | } |
| 123 | - $text.= "END:VCALENDAR\r\n"; |
|
| 123 | + $text .= "END:VCALENDAR\r\n"; |
|
| 124 | 124 | $response = $response->withHeader('Content-type', 'text/calendar'); |
| 125 | 125 | $response = $response->withHeader('Content-Disposition', 'attachment; filename="MyShifts.ics"'); |
| 126 | 126 | $body = $response->getBody(); |