/**
  * Constructor
  *
  * Only job is to set all the variablesnames
  *
  * @desc Constructor
  * @param string $summary  Title for the event
  * @param string $description  Description
  * @param string $location  Location
  * @param int $start  Start time for the event (timestamp)
  * @param int $duration  Duration of the todo in minutes
  * @param int $end  Start time for the event (timestamp)
  * @param int $percent  The percent completion of the ToDo
  * @param int $prio  riority = 0–9
  * @param int $status  Status of the event (0 = TENTATIVE, 1 = CONFIRMED, 2 = CANCELLED)
  * @param int $class  (0 = PRIVATE | 1 = PUBLIC | 2 = CONFIDENTIAL)
  * @param array $organizer  The organizer – use array('Name', '*****@*****.**')
  * @param array $attendees  key = attendee name, value = e-mail, second value = role of the attendee [0 = CHAIR | 1 = REQ | 2 = OPT | 3 =NON] (example: array('Michi' => 'flaimo@gmx.net,1'); )
  * @param array $categories  Array with Strings (example: array('Freetime','Party'))
  * @param int $last_mod  Last modification of the to-to (timestamp)
  * @param array) $alarm  Array with all the alarm information, "''" for no alarm
  * @param int $frequency  frequency: 0 = once, secoundly – yearly = 1–7
  * @param mixed $rec_end  recurrency end: ('' = forever | integer = number of times | timestring = explicit date)
  * @param int $interval  Interval for frequency (every 2,3,4 weeks…)
  * @param string $days  Array with the number of the days the event accures (example: array(0,1,5) = Sunday, Monday, Friday
  * @param string $weekstart  Startday of the Week ( 0 = Sunday – 6 = Saturday)
  * @param string $exept_dates  exeption dates: Array with timestamps of dates that should not be includes in the recurring event
  * @param string $url  optional URL for that event
  * @param string $lang  Language of the strings used in the event (iso code)
  * @param string $uid  Optional UID for the ToDo
  * @uses iCalBase::setLanguage()
  * @uses iCalBase::setOrganizer()
  * @uses setStartDate()
  * @uses setDuration()
  * @uses setCompleted()
  * @uses iCalBase::setLastMod()
  * @uses setPercent()
  * @uses setLocation()
  * @uses iCalBase::setSequence()
  * @uses iCalBase::setCategories()
  * @uses iCalBase::setDescription()
  * @uses setSummary()
  * @uses iCalBase::setPriority()
  * @uses iCalBase::setClass()
  * @uses iCalBase::setAttendees()
  * @uses iCalBase::setStatus()
  * @uses iCalBase::setURL()
  * @uses iCalBase::setFrequency()
  * @uses setRecEnd()
  * @uses iCalBase::setInterval()
  * @uses iCalBase::setDays()
  * @uses iCalBase::setWeekStart()
  * @uses iCalBase::setExeptDates()
  * @uses setAlarm()
  * @uses setUID()
  * @since 1.020 - 2002-12-24
  */
 function iCalToDo($summary, $description, $location, $start, $duration, $end, $percent, $prio, $status, $class, $organizer, $attendees, $categories, $last_mod, $alarm, $frequency, $rec_end, $interval, $days, $weekstart, $exept_dates, $url, $lang, $uid)
 {
     parent::iCalBase();
     parent::setLanguage($lang);
     parent::setOrganizer($organizer);
     $this->setStartDate($start);
     $this->setDuration($duration);
     $this->setCompleted($end);
     parent::setLastMod($last_mod);
     $this->setPercent($percent);
     parent::setLocation($location);
     parent::setSequence(0);
     parent::setCategories($categories);
     parent::setDescription($description);
     parent::setSummary($summary);
     parent::setPriority($prio);
     parent::setClass($class);
     parent::setAttendees($attendees);
     parent::setStatus($status);
     parent::setURL($url);
     parent::setFrequency($frequency);
     $this->setRecEnd($rec_end);
     parent::setInterval($interval);
     parent::setDays($days);
     parent::setWeekStart($weekstart);
     parent::setExeptDates($exept_dates);
     $this->setAlarm($alarm);
     $this->setUID($uid);
 }
 /**
  * Constructor
  *
  * Only job is to set all the variablesnames
  *
  * @desc Constructor
  * @param (int) $start  Start time for fb (timestamp)
  * @param (int) $end  Start time for fb (timestamp)
  * @param (int) $duration  Duration of the fb in minutes
  * @param (array) $organizer  The organizer - use array('Name', '*****@*****.**')
  * @param (array) $attendees  key = attendee name, value = e-mail, second value = role of the attendee [0 = CHAIR | 1 = REQ | 2 = OPT | 3 =NON] (example: array('Michi' => 'flaimo@gmx.net,1'); )
  * @param (array) $fb_times  key = timestamp (starting point), value = minutes, secound value = status (0 = FREE, 1 = BUSY, 2 = BUSY-UNAVAILABLE, 3 = BUSY-TENTATIVE)
  * @param (string) $url optional URL for that event
  * @param (string) $uid  Optional UID for the FreeBusy
  * @return (void)
  * @uses iCalBase::setOrganizer(), setStartDate(), setDuration(), setEndDate(), setUID(), iCalBase::setAttendees(), setFBTimes(), iCalBase::setURL()
  * @access private
  * @since 1.000 - 2002/10/10
  */
 function iCalFreeBusy($start, $end, $duration, $organizer, $attendees, $fb_times, $url, $uid)
 {
     parent::iCalBase();
     $this->fb_status = (array) array('FREE', 'BUSY', 'BUSY-UNAVAILABLE', 'BUSY-TENTATIVE');
     parent::setOrganizer($organizer);
     $this->setStartDate($start);
     $this->setDuration($duration);
     $this->setEndDate($end);
     parent::setAttendees($attendees);
     $this->setFBTimes($fb_times);
     parent::setURL($url);
     $this->setUID($uid);
 }
 /**
  * Constructor
  *
  * Only job is to set all the variablesnames
  *
  * @desc Constructor
  * @param int $action  0 = DISPLAY, 1 = EMAIL, (not supported: 2 = AUDIO, 3 = PROCEDURE)
  * @param int $trigger  Minutes the alarm goes off before the event/todo
  * @param string $summary  Title for the alarm
  * @param string $description  Description
  * @param (array) $attendees  key = attendee name, value = e-mail, second value = role of the attendee
  * [0 = CHAIR | 1 = REQ | 2 = OPT | 3 =NON] (example: array('Michi' => 'flaimo@gmx.net,1'); )
  * @param int $duration  Duration between the alarms in minutes
  * @param int $repeat  How often should the alarm be repeated
  * @param string $lang  Language of the strings used in the event (iso code)
  * @uses setAction()
  * @uses setTrigger()
  * @uses setSummary()
  * @uses iCalBase::setDescription()
  * @uses setAttendees()
  * @uses setDuration()
  * @uses setRepeat()
  * @uses iCalBase::setLanguage()
  */
 function iCalAlarm($action, $trigger, $summary, $description, $attendees, $duration, $repeat, $lang)
 {
     parent::iCalBase();
     $this->setAction($action);
     $this->setTrigger($trigger);
     parent::setSummary($summary);
     parent::setDescription($description);
     parent::setAttendees($attendees);
     $this->setDuration($duration);
     $this->setRepeat($repeat);
     parent::setLanguage($lang);
 }
 /**
  * Constructor
  *
  * Only job is to set all the variablesnames
  *
  * @desc Constructor
  * @param string $summary  Title for the event
  * @param string $description  Description
  * @param int $start  Start time for the event (timestamp)
  * @param int $created  Creation date for the event (timestamp)
  * @param int $last_mod  Last modification date for the event (timestamp)
  * @param int $status  Status of the event (0 = TENTATIVE, 1 = CONFIRMED, 2 = CANCELLED)
  * @param int $class  (0 = PRIVATE | 1 = PUBLIC | 2 = CONFIDENTIAL)
  * @param array $organizer  The organizer – use array('Name', '*****@*****.**')
  * @param array $attendees  key = attendee name, value = e-mail, second value = role of the attendee [0 = CHAIR | 1 = REQ | 2 = OPT | 3 =NON] (example: array('Michi' => 'flaimo@gmx.net,1'); )
  * @param array $categories  Array with Strings (example: array('Freetime','Party'))
  * @param int $frequency  frequency: 0 = once, secoundly – yearly = 1–7
  * @param mixed $rec_end  recurrency end: ('' = forever | integer = number of times | timestring = explicit date)
  * @param int $interval  Interval for frequency (every 2,3,4 weeks…)
  * @param string $days  Array with the number of the days the event accures (example: array(0,1,5) = Sunday, Monday, Friday
  * @param string $weekstart  Startday of the Week ( 0 = Sunday – 6 = Saturday)
  * @param string $exept_dates  exeption dates: Array with timestamps of dates that should not be includes in the recurring event
  * @param string $url  optional URL for that event
  * @param string $lang  Language of the strings used in the event (iso code)
  * @param string $uid  Optional UID for the Journal
  * @uses setSummary()
  * @uses iCalBase::setDescription()
  * @uses setStartDate()
  * @uses setCreated()
  * @uses iCalBase::setLastMod()
  * @uses iCalBase::setStatus()
  * @uses iCalBase::setClass()
  * @uses iCalBase::setOrganizer()
  * @uses iCalBase::setAttendees()
  * @uses iCalBase::setCategories()
  * @uses iCalBase::setURL()
  * @uses iCalBase::setLanguage()
  * @uses iCalBase::setFrequency()
  * @uses setRecEnd()
  * @uses iCalBase::setInterval()
  * @uses iCalBase::setDays()
  * @uses iCalBase::setWeekStart()
  * @uses iCalBase::setExeptDates()
  * @uses iCalBase::setSequence()
  * @uses setUID()
  */
 function iCalJournal($summary, $description, $start, $created, $last_mod, $status, $class, $organizer, $attendees, $categories, $frequency, $rec_end, $interval, $days, $weekstart, $exept_dates, $url, $lang, $uid)
 {
     parent::iCalBase();
     parent::setSummary($summary);
     parent::setDescription($description);
     $this->setStartDate($start);
     $this->setCreated($created);
     parent::setLastMod($last_mod);
     parent::setStatus($status);
     parent::setClass($class);
     parent::setOrganizer($organizer);
     parent::setAttendees($attendees);
     parent::setCategories($categories);
     parent::setURL($url);
     parent::setLanguage($lang);
     parent::setFrequency($frequency);
     $this->setRecEnd($rec_end);
     parent::setInterval($interval);
     parent::setDays($days);
     parent::setWeekStart($weekstart);
     parent::setExeptDates($exept_dates);
     parent::setSequence(0);
     $this->setUID($uid);
 }