|
| __construct (string $uid, string $description, string $summary, int $sequence, EventStatus $status, string $organiserName, string $organiserEmail, string $attendeeName, string $attendeeEmail, int $startTime, int $endTime, bool $allDay, string $url, string $location) |
|
| render () |
|
Definition at line 23 of file VEvent.php.
◆ __construct()
ILIAS\EmployeeTalk\Notification\Calendar\VEvent::__construct |
( |
string |
$uid, |
|
|
string |
$description, |
|
|
string |
$summary, |
|
|
int |
$sequence, |
|
|
EventStatus |
$status, |
|
|
string |
$organiserName, |
|
|
string |
$organiserEmail, |
|
|
string |
$attendeeName, |
|
|
string |
$attendeeEmail, |
|
|
int |
$startTime, |
|
|
int |
$endTime, |
|
|
bool |
$allDay, |
|
|
string |
$url, |
|
|
string |
$location |
|
) |
| |
◆ render()
ILIAS\EmployeeTalk\Notification\Calendar\VEvent::render |
( |
| ) |
|
Definition at line 90 of file VEvent.php.
References ILIAS\EmployeeTalk\Notification\Calendar\VEvent\renderStartAndEndDates().
92 return 'BEGIN:VEVENT' .
"\r\n" .
93 'UID: ' . $this->uid .
"\r\n" .
94 'DESCRIPTION:' . $this->description .
"\r\n" .
96 'DTSTAMP:' . date(
"Ymd\THis") .
"\r\n" .
97 'LAST-MODIFIED:' . date(
"Ymd\THis") .
"\r\n" .
98 'ORGANIZER;CN="' . $this->organiser_name .
'":MAILTO:' . $this->organiser_email .
"\r\n" .
99 'ATTENDEE;CN="' . $this->attendee_name .
'";ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:' . $this->attendee_email .
"\r\n" .
100 'SUMMARY:' . $this->summary .
"\r\n" .
101 'LOCATION:' . $this->location .
"\r\n" .
102 'SEQUENCE:' . $this->sequence .
"\r\n" .
104 'STATUS:' . $this->status->value .
"\r\n" .
105 "TRANSP:OPAQUE\r\n" .
106 "X-MICROSOFT-CDO-BUSYSTATUS:BUSY\r\n" .
107 'CLASS:PUBLIC' .
"\r\n" .
108 "X-MICROSOFT-DISALLOW-COUNTER:TRUE\r\n" .
111 'BEGIN:VALARM' .
"\r\n" .
112 'DESCRIPTION:' . $this->summary .
"\r\n" .
113 'TRIGGER:-PT15M' .
"\r\n" .
114 'ACTION:DISPLAY' .
"\r\n" .
115 'END:VALARM' .
"\r\n" .
117 'END:VEVENT' .
"\r\n";
◆ renderStartAndEndDates()
ILIAS\EmployeeTalk\Notification\Calendar\VEvent::renderStartAndEndDates |
( |
| ) |
|
|
protected |
Definition at line 72 of file VEvent.php.
Referenced by ILIAS\EmployeeTalk\Notification\Calendar\VEvent\render().
75 $start = new \DateTimeImmutable(
'@' . $this->start_time);
76 $start = $start->setTimezone(
new \
DateTimeZone(
'Europe/Paris'));
77 $end = new \DateTimeImmutable(
'@' . $this->end_time);
78 $end = $end->setTimezone(
new \
DateTimeZone(
'Europe/Paris'));
81 return 'DTSTART;TZID=Europe/Paris;VALUE=DATE:' . $start->format(
'Ymd') .
"\r\n" .
82 'DTEND;TZID=Europe/Paris;VALUE=DATE:' . $end->format(
'Ymd') .
"\r\n" .
83 "X-MICROSOFT-CDO-ALLDAYEVENT: TRUE\r\n";
85 return 'DTSTART;TZID=Europe/Paris:' . $start->format(
'Ymd\THis') .
"\r\n" .
86 'DTEND;TZID=Europe/Paris:' . $end->format(
'Ymd\THis') .
"\r\n";
◆ $all_day
bool ILIAS\EmployeeTalk\Notification\Calendar\VEvent::$all_day |
|
protected |
◆ $attendee_email
string ILIAS\EmployeeTalk\Notification\Calendar\VEvent::$attendee_email |
|
protected |
◆ $attendee_name
string ILIAS\EmployeeTalk\Notification\Calendar\VEvent::$attendee_name |
|
protected |
◆ $description
string ILIAS\EmployeeTalk\Notification\Calendar\VEvent::$description |
|
protected |
◆ $end_time
int ILIAS\EmployeeTalk\Notification\Calendar\VEvent::$end_time |
|
protected |
◆ $location
string ILIAS\EmployeeTalk\Notification\Calendar\VEvent::$location |
|
protected |
◆ $organiser_email
string ILIAS\EmployeeTalk\Notification\Calendar\VEvent::$organiser_email |
|
protected |
◆ $organiser_name
string ILIAS\EmployeeTalk\Notification\Calendar\VEvent::$organiser_name |
|
protected |
◆ $sequence
int ILIAS\EmployeeTalk\Notification\Calendar\VEvent::$sequence |
|
protected |
◆ $start_time
int ILIAS\EmployeeTalk\Notification\Calendar\VEvent::$start_time |
|
protected |
◆ $status
EventStatus ILIAS\EmployeeTalk\Notification\Calendar\VEvent::$status |
|
protected |
◆ $summary
string ILIAS\EmployeeTalk\Notification\Calendar\VEvent::$summary |
|
protected |
◆ $uid
string ILIAS\EmployeeTalk\Notification\Calendar\VEvent::$uid |
|
protected |
◆ $url
string ILIAS\EmployeeTalk\Notification\Calendar\VEvent::$url |
|
protected |
The documentation for this class was generated from the following file:
- components/ILIAS/EmployeeTalk/classes/Notification/Calendar/VEvent.php