55 $uid = md5(uniqid(mt_rand(),
true)) .
'@EasyPeasyICS';
58 'start' => gmdate(
'Ymd', $start) .
'T' . gmdate(
'His', $start) .
'Z',
59 'end' => gmdate(
'Ymd',
$end) .
'T' . gmdate(
'His',
$end) .
'Z',
65 $this->events[] = $event;
82 $this->events =
array();
100 $this->calendarName =
$name;
111 $ics =
'BEGIN:VCALENDAR 114 X-WR-CALNAME:' . $this->calendarName .
' 115 PRODID:-//hacksw/handcal//NONSGML v1.0//EN';
118 foreach ($this->events as $event) {
121 UID:' . $event[
'uid'] .
' 122 DTSTAMP:' . gmdate(
'Ymd') .
'T' . gmdate(
'His') .
'Z 123 DTSTART:' . $event[
'start'] .
' 124 DTEND:' . $event[
'end'] .
' 125 SUMMARY:' . str_replace(
"\n",
"\\n", $event[
'summary']) .
' 126 DESCRIPTION:' . str_replace(
"\n",
"\\n", $event[
'description']) .
' 127 URL;VALUE=URI:' . $event[
'url'] .
' 142 header(
'Content-type: text/calendar; charset=utf-8');
addEvent($start, $end, $summary='', $description='', $url='', $uid='')
Add an event to this calendar.
render($output=true)
Render and optionally output a vcal string.
getName()
Get the name of the calendar.
if(!is_dir( $entity_dir)) exit("Fatal Error ([A-Za-z0-9]+)\+" &#(? foreach( $entity_files as $file) $output
Add a drawing to the header
setName($name)
Set the name of the calendar.
Create styles array
The data for the language used.
__construct($calendarName="")
Constructor.
clearEvents()
Clear all events.