ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\EmployeeTalk\Notification\Calendar\VCalendar Class Reference
+ Collaboration diagram for ILIAS\EmployeeTalk\Notification\Calendar\VCalendar:

Public Member Functions

 __construct (Method $method, string $name, string $uid, VEvent ... $events)
 
 render ()
 

Protected Attributes

string $name
 
string $uid
 
array $events
 
Method $method
 

Private Member Functions

 renderVEvents ()
 

Detailed Description

Definition at line 23 of file VCalendar.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\EmployeeTalk\Notification\Calendar\VCalendar::__construct ( Method  $method,
string  $name,
string  $uid,
VEvent ...  $events 
)

Member Function Documentation

◆ render()

ILIAS\EmployeeTalk\Notification\Calendar\VCalendar::render ( )

Definition at line 42 of file VCalendar.php.

References ILIAS\EmployeeTalk\Notification\Calendar\VCalendar\renderVEvents().

42  : string
43  {
44  return 'BEGIN:VCALENDAR' . "\r\n" .
45  'PRODID:-//ILIAS' . "\r\n" .
46  'VERSION:2.0' . "\r\n" .
47  'UID:' . $this->uid . "\r\n" .
48  'X-WR-RELCALID:' . $this->uid . "\r\n" .
49  'NAME:' . $this->name . "\r\n" .
50  'X-WR-CALNAME:' . $this->name . "\r\n" .
51  'LAST-MODIFIED:' . date("Ymd\THis") . "\r\n" .
52  'METHOD:' . $this->method->value . "\r\n" .
53  'BEGIN:VTIMEZONE' . "\r\n" .
54  'TZID:Europe/Paris' . "\r\n" .
55  'X-LIC-LOCATION:Europe/Paris' . "\r\n" .
56  'BEGIN:DAYLIGHT' . "\r\n" .
57  'TZOFFSETFROM:+0100' . "\r\n" .
58  'TZOFFSETTO:+0200' . "\r\n" .
59  'TZNAME:CEST' . "\r\n" .
60  'DTSTART:19700329T020000' . "\r\n" .
61  'RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU' . "\r\n" .
62  'END:DAYLIGHT' . "\r\n" .
63  'BEGIN:STANDARD' . "\r\n" .
64  'TZOFFSETFROM:+0200' . "\r\n" .
65  'TZOFFSETTO:+0100' . "\r\n" .
66  'TZNAME:CET' . "\r\n" .
67  'DTSTART:19701025T030000' . "\r\n" .
68  'RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU' . "\r\n" .
69  'END:STANDARD' . "\r\n" .
70  'END:VTIMEZONE' . "\r\n" .
71 
72  $this->renderVEvents() .
73 
74  'END:VCALENDAR' . "\r\n";
75  }
+ Here is the call graph for this function:

◆ renderVEvents()

ILIAS\EmployeeTalk\Notification\Calendar\VCalendar::renderVEvents ( )
private

Definition at line 77 of file VCalendar.php.

Referenced by ILIAS\EmployeeTalk\Notification\Calendar\VCalendar\render().

77  : string
78  {
79  $eventString = '';
80  foreach ($this->events as $event) {
81  $eventString .= $event->render();
82  }
83 
84  return $eventString;
85  }
+ Here is the caller graph for this function:

Field Documentation

◆ $events

array ILIAS\EmployeeTalk\Notification\Calendar\VCalendar::$events
protected

◆ $method

Method ILIAS\EmployeeTalk\Notification\Calendar\VCalendar::$method
protected

◆ $name

string ILIAS\EmployeeTalk\Notification\Calendar\VCalendar::$name
protected

◆ $uid

string ILIAS\EmployeeTalk\Notification\Calendar\VCalendar::$uid
protected

The documentation for this class was generated from the following file: