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',
 
   60            'summary' => $summary,
 
   61            'description' => $description,
 
   65        $this->events[] = $event;
 
   82        $this->events = array();
 
  100        $this->calendarName = $name;
 
  111        $ics = 
'BEGIN:VCALENDAR 
  114X-WR-CALNAME:' . $this->calendarName . 
' 
  115PRODID:-//hacksw/handcal//NONSGML v1.0//EN';
 
  118        foreach ($this->events as $event) {
 
  121UID:' . $event[
'uid'] . 
' 
  122DTSTAMP:' . gmdate(
'Ymd') . 
'T' . gmdate(
'His') . 
'Z 
  123DTSTART:' . $event[
'start'] . 
' 
  124DTEND:' . $event[
'end'] . 
' 
  125SUMMARY:' . str_replace(
"\n", 
"\\n", $event[
'summary']) . 
' 
  126DESCRIPTION:' . str_replace(
"\n", 
"\\n", $event[
'description']) . 
' 
  127URL;VALUE=URI:' . $event[
'url'] . 
' 
  142            header(
'Content-type: text/calendar; charset=utf-8');
 
  143            header(
'Content-Disposition: inline; filename=' . 
$filename . 
'.ics');
 
An exception for terminatinating execution or to throw for unit testing.
getName()
Get the name of the calendar.
clearEvents()
Clear all events.
addEvent($start, $end, $summary='', $description='', $url='', $uid='')
Add an event to this calendar.
__construct($calendarName="")
Constructor.
setName($name)
Set the name of the calendar.
render($output=true)
Render and optionally output a vcal string.
if(!is_dir( $entity_dir)) exit("Fatal Error ([A-Za-z0-9]+)\s+" &#(? foreach( $entity_files as $file) $output