![]() |
CMS
Version 3.9
|
Note: we may wish to add someting like this to description: More...
Public Member Functions | |
__construct ($id, $start, $end, $title, $description="", $location="", $sequence_id=0, $timeZone=null) | |
The iCalendarManager obj is typically instantiated through the EventHandler for an event. More... | |
setAliases () | |
setEventDates ($start, $end, $timeZone) | |
For all day events: DTSTART;VALUE=DATE:20100101 DTEND;VALUE=DATE:20100101. More... | |
setTimeZone ($timeZone, $start_value) | |
If time zone is not provided, exlcude the time zone fields so they are not included in the output. More... | |
formatTimeZoneHours ($offset) | |
Given the numeric time zone value (pos or neg), convert to hour format for iCalendar such as "-0700". More... | |
excludeTimeZoneFields () | |
If no time zone provided, exclude all fields between begin_timezone through end_timezone. More... | |
isAllDay ($date) | |
setAttachment ($path) | |
setOrganizer ($replyTo, $replyToName="") | |
setAttendee ($mailTo) | |
Called from EmailHandler to set the attendee email address. More... | |
setAttendeeName ($name) | |
formatOrganizer () | |
We wait until final formatting of the iCalendar data to set the organizer properties because values can be set after the iCalendar object is instantiated. More... | |
formatAttendee () | |
Given all the settings applied to vars, build the ATTENDEE property to be used in the calendar invitation. More... | |
format () | |
Given the icalendar data values and the var settings, format the iCalendar data into a list of properties and values in the field order of the iCalendarData object values. More... | |
Public Attributes | |
$replyTo | |
organizer email set in EmailHandler More... | |
$replyToName | |
organizer name set in EmailHandler More... | |
$mailTo | |
Attendee email address. More... | |
$attendeeName | |
optionally include display name of recipient More... | |
$rsvp = true | |
organizer wants reply More... | |
$attendeeStatus | |
PARSTAT=TENTATIVE, PARSTAT=NEEDS-ACTION. More... | |
$required = false | |
ROLE=REQ-PARTICIPANT if required to attend. More... | |
$invitees = array() | |
optionally show others invited to event More... | |
$data | |
iCalendarData obj More... | |
$aliases = array() | |
field aliases or labels More... | |
Note: we may wish to add someting like this to description:
The following is a new meeting request:
\nSubject: test send to mac \nOrganizer: "Janice Gallant" janic e@so njara .com
\nTime: Wednesday\ , March 20\, 2013\, 1:00:00 PM - 2:00:00 PM GMT -05:00 US/Canada Eastern
\ nInvitees: janic e.ga llant @ver izon. net
*~*~*~*~*~*~*~*~*~*
X-ALT-DESC;FMTTYPE=text/html:<html><body>
Subject:<t
d>test send to mac
Organizer:
"Janice
Gallant" <\;janic>\; e@so njara .com
Time:
Wednesday\, March 20\, 2013\, 1:0 0:00 PM - 2:00:00 PM GMT -05:00 US/Canada Eastern
\ n
Invitees:
janice.gallant@ver izon.net
</body></ht>
Definition at line 126 of file i_calendar_manager.inc.
iCalendarEventManager::__construct | ( | $id, | |
$start, | |||
$end, | |||
$title, | |||
$description = "" , |
|||
$location = "" , |
|||
$sequence_id = 0 , |
|||
$timeZone = null |
|||
) |
The iCalendarManager obj is typically instantiated through the EventHandler for an event.
E.g., the StandardEventHandler class can all formatiCalendar to instantiate an iCalendarManager obj by providing its event details such as start_date, end_date, location, etc.
After the obj is created, the calling code can set other configurable values such as attendee name, if known. It can also override default values set in the constructor, such as method.
Number | $id | - event id or other unique identifier for the invitation |
DATE | or DATETIME $start | |
DATE | or DATETIME $end | |
String | $title | |
HTML | $description | |
String | $location | |
Number | $sequence_id | - increment sequence id when event is updated |
obj | $timeZone | - instance of TimeZone, optional. If provided, set timezone properties |
Definition at line 158 of file i_calendar_manager.inc.
iCalendarEventManager::excludeTimeZoneFields | ( | ) |
If no time zone provided, exclude all fields between begin_timezone through end_timezone.
Definition at line 328 of file i_calendar_manager.inc.
iCalendarEventManager::format | ( | ) |
Given the icalendar data values and the var settings, format the iCalendar data into a list of properties and values in the field order of the iCalendarData object values.
This format function is called from the EmailHandler when formatting the message.
Example:
BEGIN:VCALENDAR PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN VERSION:2.0 METHOD:METHOD BEGIN:VEVENT ORGANIZER;CN=Web Site Administrator:MAILTO:andy@ ATTENDEE;RSVP=true;CN=Janice Gallant:MAILTO: sonj ara.c omjanic DTSTART;VALUE=DATE:20130328 DTEND;VALUE=DATE:20130328 LOCATION:test TRANSP:OPAQUE STATUS:CONFIRMED X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY UID:243stem2stern SEQUENCE:2 DTSTAMP:20130321T120233 DESCRIPTION:test SUMMARY:test all day PRIORITY:5 CLASS:PUBLIC END:VEVENT END:VCALENDAR e@so njara .com
Definition at line 484 of file i_calendar_manager.inc.
iCalendarEventManager::formatAttendee | ( | ) |
Given all the settings applied to vars, build the ATTENDEE property to be used in the calendar invitation.
Example: ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=TENTATIVE;DELEGATED-FROM= "MAILTO:iamboss@host2.com";CN=Henry Cabot:MAILTO:hcabot@ host2.com
Definition at line 423 of file i_calendar_manager.inc.
iCalendarEventManager::formatOrganizer | ( | ) |
We wait until final formatting of the iCalendar data to set the organizer properties because values can be set after the iCalendar object is instantiated.
EmailHandler calls setOrganizer to set the replyTo email address and replyToName
Example: ORGANIZER;CN=John Smith:MAILTO:jsmit h@ho st1.c om
Definition at line 402 of file i_calendar_manager.inc.
iCalendarEventManager::formatTimeZoneHours | ( | $offset | ) |
Given the numeric time zone value (pos or neg), convert to hour format for iCalendar such as "-0700".
Noninteger time zones offset are rare and none are segments other than the half hour. If non integer, set the min to 30 regardless of the entered value.
Number | $offset |
Definition at line 297 of file i_calendar_manager.inc.
iCalendarEventManager::isAllDay | ( | $date | ) |
Definition at line 355 of file i_calendar_manager.inc.
iCalendarEventManager::setAliases | ( | ) |
Definition at line 203 of file i_calendar_manager.inc.
iCalendarEventManager::setAttachment | ( | $path | ) |
Definition at line 365 of file i_calendar_manager.inc.
iCalendarEventManager::setAttendee | ( | $mailTo | ) |
Called from EmailHandler to set the attendee email address.
The code that calls the EmailHandler can set the attendee name if known.
String | $mailTo |
Definition at line 382 of file i_calendar_manager.inc.
iCalendarEventManager::setAttendeeName | ( | $name | ) |
Definition at line 387 of file i_calendar_manager.inc.
iCalendarEventManager::setEventDates | ( | $start, | |
$end, | |||
$timeZone | |||
) |
For all day events: DTSTART;VALUE=DATE:20100101 DTEND;VALUE=DATE:20100101.
Definition at line 221 of file i_calendar_manager.inc.
iCalendarEventManager::setOrganizer | ( | $replyTo, | |
$replyToName = "" |
|||
) |
Definition at line 370 of file i_calendar_manager.inc.
iCalendarEventManager::setTimeZone | ( | $timeZone, | |
$start_value | |||
) |
If time zone is not provided, exlcude the time zone fields so they are not included in the output.
If provided, set the values.
obj | $timeZone | class TimeZone |
Definition at line 259 of file i_calendar_manager.inc.
iCalendarEventManager::$aliases = array() |
field aliases or labels
Definition at line 137 of file i_calendar_manager.inc.
iCalendarEventManager::$attendeeName |
optionally include display name of recipient
Definition at line 131 of file i_calendar_manager.inc.
iCalendarEventManager::$attendeeStatus |
PARSTAT=TENTATIVE, PARSTAT=NEEDS-ACTION.
Definition at line 133 of file i_calendar_manager.inc.
iCalendarEventManager::$data |
iCalendarData obj
Definition at line 136 of file i_calendar_manager.inc.
iCalendarEventManager::$invitees = array() |
optionally show others invited to event
Definition at line 135 of file i_calendar_manager.inc.
iCalendarEventManager::$mailTo |
Attendee email address.
Definition at line 130 of file i_calendar_manager.inc.
iCalendarEventManager::$replyTo |
organizer email set in EmailHandler
Definition at line 128 of file i_calendar_manager.inc.
iCalendarEventManager::$replyToName |
organizer name set in EmailHandler
Definition at line 129 of file i_calendar_manager.inc.
iCalendarEventManager::$required = false |
ROLE=REQ-PARTICIPANT if required to attend.
Definition at line 134 of file i_calendar_manager.inc.
iCalendarEventManager::$rsvp = true |
organizer wants reply
Definition at line 132 of file i_calendar_manager.inc.