ILIAS  release_8 Revision v8.23
ILIAS\EmployeeTalk\Service\VCalender Class Reference
+ Collaboration diagram for ILIAS\EmployeeTalk\Service\VCalender:

Public Member Functions

 __construct (string $name, string $uid, array $events, string $method)
 VCalender constructor. More...
 
 render ()
 
 getName ()
 
 getUid ()
 
 getEvents ()
 
 getMethod ()
 

Private Member Functions

 renderVEvents ()
 

Private Attributes

string $name
 
string $uid
 Calendar UID. More...
 
array $events
 
string $method
 

Detailed Description

Definition at line 23 of file VCalender.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\EmployeeTalk\Service\VCalender::__construct ( string  $name,
string  $uid,
array  $events,
string  $method 
)

VCalender constructor.

Parameters
string$name
string$uid
VEvent[]$events
string$method

Definition at line 53 of file VCalender.php.

References ILIAS\EmployeeTalk\Service\VCalender\$events, ILIAS\EmployeeTalk\Service\VCalender\$method, ILIAS\EmployeeTalk\Service\VCalender\$name, and ILIAS\EmployeeTalk\Service\VCalender\$uid.

54  {
55  $this->name = $name;
56  $this->uid = $uid;
57  $this->events = $events;
58  $this->method = $method;
59  }

Member Function Documentation

◆ getEvents()

ILIAS\EmployeeTalk\Service\VCalender::getEvents ( )
Returns
VEvent[]

Definition at line 115 of file VCalender.php.

References ILIAS\EmployeeTalk\Service\VCalender\$events.

115  : array
116  {
117  return $this->events;
118  }

◆ getMethod()

ILIAS\EmployeeTalk\Service\VCalender::getMethod ( )
Returns
string

Definition at line 123 of file VCalender.php.

References ILIAS\EmployeeTalk\Service\VCalender\$method.

123  : string
124  {
125  return $this->method;
126  }

◆ getName()

ILIAS\EmployeeTalk\Service\VCalender::getName ( )
Returns
string

Definition at line 99 of file VCalender.php.

References ILIAS\EmployeeTalk\Service\VCalender\$name.

99  : string
100  {
101  return $this->name;
102  }

◆ getUid()

ILIAS\EmployeeTalk\Service\VCalender::getUid ( )
Returns
string

Definition at line 107 of file VCalender.php.

References ILIAS\EmployeeTalk\Service\VCalender\$uid.

107  : string
108  {
109  return $this->uid;
110  }

◆ render()

ILIAS\EmployeeTalk\Service\VCalender::render ( )

Definition at line 61 of file VCalender.php.

References ILIAS\EmployeeTalk\Service\VCalender\renderVEvents().

61  : string
62  {
63  return 'BEGIN:VCALENDAR' . "\r\n" .
64  'PRODID:-//ILIAS' . "\r\n" .
65  'VERSION:2.0' . "\r\n" .
66  'UID:' . $this->uid . "\r\n" .
67  'X-WR-RELCALID:' . $this->uid . "\r\n" .
68  'NAME:' . $this->name . "\r\n" .
69  'X-WR-CALNAME:' . $this->name . "\r\n" .
70  'LAST-MODIFIED:' . date("Ymd\THis") . "\r\n" .
71  'METHOD:' . $this->method . "\r\n" .
72  'BEGIN:VTIMEZONE' . "\r\n" .
73  'TZID:Europe/Paris' . "\r\n" .
74  'X-LIC-LOCATION:Europe/Paris' . "\r\n" .
75  'BEGIN:DAYLIGHT' . "\r\n" .
76  'TZOFFSETFROM:+0100' . "\r\n" .
77  'TZOFFSETTO:+0200' . "\r\n" .
78  'TZNAME:CEST' . "\r\n" .
79  'DTSTART:19700329T020000' . "\r\n" .
80  'RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU' . "\r\n" .
81  'END:DAYLIGHT' . "\r\n" .
82  'BEGIN:STANDARD' . "\r\n" .
83  'TZOFFSETFROM:+0200' . "\r\n" .
84  'TZOFFSETTO:+0100' . "\r\n" .
85  'TZNAME:CET' . "\r\n" .
86  'DTSTART:19701025T030000' . "\r\n" .
87  'RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU' . "\r\n" .
88  'END:STANDARD' . "\r\n" .
89  'END:VTIMEZONE' . "\r\n" .
90 
91  $this->renderVEvents() .
92 
93  'END:VCALENDAR' . "\r\n";
94  }
+ Here is the call graph for this function:

◆ renderVEvents()

ILIAS\EmployeeTalk\Service\VCalender::renderVEvents ( )
private

Definition at line 128 of file VCalender.php.

Referenced by ILIAS\EmployeeTalk\Service\VCalender\render().

128  : string
129  {
130  $eventString = "";
131  foreach ($this->events as $event) {
132  $eventString .= $event->render();
133  }
134 
135  return $eventString;
136  }
+ Here is the caller graph for this function:

Field Documentation

◆ $events

array ILIAS\EmployeeTalk\Service\VCalender::$events
private

◆ $method

string ILIAS\EmployeeTalk\Service\VCalender::$method
private

◆ $name

string ILIAS\EmployeeTalk\Service\VCalender::$name
private

◆ $uid

string ILIAS\EmployeeTalk\Service\VCalender::$uid
private

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