ICAP Functions ICAP To get these functions to work, you have to compile PHP with . That requires the icap library to be installed. Grab the latest version from &url.icap; and compile and install it. icap_open Opens up an ICAP connection Description stream icap_open string calendar string username string password string options Returns an ICAP stream on success, &false; on error. icap_open opens up an ICAP connection to the specified calendar store. If the optional options is specified, passes the options to that mailbox also. icap_close Close an ICAP stream Description int icap_close int icap_stream int flags Closes the given icap stream. icap_fetch_event Fetches an event from the calendar stream/ Description int icap_fetch_event int stream_id int event_id int options icap_fetch_event fetches an event from the calendar stream specified by event_id. Returns an event object consisting of: int id - ID of that event. int public - &true; if the event if public, &false; if it is private. string category - Category string of the event. string title - Title string of the event. string description - Description string of the event. int alarm - number of minutes before the event to send an alarm/reminder. object start - Object containing a datetime entry. object end - Object containing a datetime entry. All datetime entries consist of an object that contains: int year - year int month - month int mday - day of month int hour - hour int min - minutes int sec - seconds icap_list_events Return a list of events between two given datetimes Description array icap_list_events int stream_id int begin_date int end_date Returns an array of event ID's that are between the two given datetimes. icap_list_events function takes in a beginning datetime and an end datetime for a calendar stream. An array of event id's that are between the given datetimes are returned. All datetime entries consist of an object that contains: int year - year int month - month int mday - day of month int hour - hour int min - minutes int sec - seconds icap_store_event Store an event into an ICAP calendar Description string icap_store_event int stream_id object event icap_store_event Stores an event into an ICAP calendar. An event object consists of: int public - 1 if public, 0 if private; string caegory - Category string of the event. string title - Title string of the event. string description - Description string of the event. int alarm - Number of minutes before the event to sned out an alarm. datetime start - datetime object of the start of the event. datetime end - datetime object of the end of the event. All datetime entries consist of an object that contains: int year - year int month - month int mday - day of month int hour - hour int min - minutes int sec - seconds Returns &true; on success and &false; on error. icap_delete_event Delete an event from an ICAP calendar Description string icap_delete_event int sream_id int uid icap_delete_event deletes the calendar event specified by the uid. Returns &true;. icap_snooze Snooze an alarm Description string icap_snooze int stream_id int uid icap_snooze turns on an alarm for a calendar event specified by the uid. Returns &true;. icap_list_alarms Return a list of events that has an alarm triggered at the given datetime Description int icap_list_alarms int stream_id array date array time Returns an array of event ID's that has an alarm going off at the given datetime. icap_list_alarms function takes in a datetime for a calendar stream. An array of event id's that has an alarm should be going off at the datetime are returned. All datetime entries consist of an object that contains: int year - year int month - month int mday - day of month int hour - hour int min - minutes int sec - seconds icap_create_calendar Create a new calendar Description string icap_create_calendar int stream_id string calendar &warn.undocumented.func; icap_rename_calendar Rename a calendar Description string icap_rename_calendar int stream_id string old_name string new_name &warn.undocumented.func; icap_delete_calendar Delete a calendar Description string icap_delete_calendar int stream_id string calendar &warn.undocumented.func; icap_reopen Reopen ICAP stream to new calendar Description int icap_reopen int stream_id string calendar int options &warn.undocumented.func;