File/includes/xcal.php

Description

All of WebCalendar's ical/vcal functions

  • author: Craig Knudsen <cknudsen@cknudsen.com>
  • copyright: Craig Knudsen, <cknudsen@cknudsen.com>, http://www.k5n.us/cknudsen
  • license: GNU GPL
Functions
create_import_instance (line 782)
void create_import_instance ()
export_alarm_ical (line 609)
void export_alarm_ical ( $id,  $date,  $description, [ $task_complete = true])
  • $id
  • $date
  • $description
  • $task_complete
export_alarm_vcal (line 596)
void export_alarm_vcal ( $id,  $date)
  • $id
  • $date
export_fold_lines (line 46)
void export_fold_lines ( $string, [ $encoding = 'none'], [ $limit = 76])
  • $string
  • $encoding
  • $limit
export_get_attendee (line 146)
void export_get_attendee ( $id,  $export)
  • $id
  • $export
export_get_event_entry (line 659)
void export_get_event_entry ([ $id = 'all'], [ $attachment = false])
  • $id
  • $attachment
export_get_utc_date (line 580)

Create a date-time format (e.g. "20041130T123000Z") that is

Times are now stored in GMT so no conversion is needed

void export_get_utc_date ( $date, [ $time = 0])
  • $date
  • $time
export_ical (line 999)
void export_ical ([ $id = 'all'], [ $attachment = false])
  • $id
  • $attachment
export_quoted_printable_encode (line 33)

Export a quoted Printable String

void export_quoted_printable_encode ( $car)
  • $car
export_recurrence_ical (line 300)
void export_recurrence_ical ( $id, [ $simple = false])
  • $id
  • $simple
export_recurrence_vcal (line 471)
void export_recurrence_vcal ( $id,  $date)
  • $id
  • $date
export_time (line 237)
void export_time ( $date,  $duration,  $time,  $texport, [ $vtype = 'E'])
  • $date
  • $duration
  • $time
  • $texport
  • $vtype
export_ts_utc_date (line 591)

Create a date-time format (e.g. "20041130T123000Z") that is

Times are now stored in GMT so no conversion is needed

void export_ts_utc_date ( $timestamp)
  • $timestamp
export_vcal (line 807)
void export_vcal ( $id)
  • $id
fb_export_time (line 3136)
void fb_export_time ( $date,  $duration,  $time,  $texport)
  • $date
  • $duration
  • $time
  • $texport
format_ical (line 2532)
void format_ical ( $event)
  • $event
format_vcal (line 3002)
void format_vcal ( $event)
  • $event
generate_export_select (line 3165)
void generate_export_select ([ $jsaction = ''], [ $name = 'exformat'])
  • $jsaction
  • $name
generate_prodid (line 16)

Generate Product ID string

void generate_prodid ([ $type = ''])
  • $type
generate_uid (line 738)
void generate_uid ([ $id = ''])
  • $id
get_cal_id_from_guid (line 971)

Given an external uri (guid), return the cal_id for that object

void get_cal_id_from_guid ($objectUri $objectUri)
  • $objectUri $objectUri: The uri to check
get_categories_id_byname (line 3098)
void get_categories_id_byname ( $cat_names)
  • $cat_names
get_vtimezone (line 3196)
void get_vtimezone ( $tzid,  $dtstart, [ $dtend = ''])
  • $tzid
  • $dtstart
  • $dtend
get_webcal_calendar_object (line 945)

Get a calendarObject for SabreDAV

  • return: CalendarObject (need to reference the RFC that describes this object)
A get_webcal_calendar_object ($objectUri $objectUri)
  • $objectUri $objectUri
icaldate_to_timestamp (line 2469)
void icaldate_to_timestamp ( $vdate, [ $tzid = ''], [ $plus_d = '0'], [ $plus_m = '0'], [ $plus_y = '0'])
  • $vdate
  • $tzid
  • $plus_d
  • $plus_m
  • $plus_y
import_data (line 1298)

Import the data structure

void import_data ( $data,  $overwrite,  $type)
  • $data
  • $overwrite
  • $type
mb_export_fold_lines (line 57)
void mb_export_fold_lines ( $string, [ $encoding = 'none'], [ $limit = 76])
  • $string
  • $encoding
  • $limit
parse_hcal (line 2347)
void parse_hcal ( $hcal_array)
  • $hcal_array
parse_ical (line 2006)

Functions from import_ical.php This file incudes functions for parsing iCal data files during an import.

It will be included by import_handler.php.

The iCal specification is available online at: http://www.ietf.org/rfc/rfc2445.txt

void parse_ical ( $cal_file, [ $source = 'file'])
  • $cal_file
  • $source
parse_ISO8601_duration (line 2844)
void parse_ISO8601_duration ( $duration)
  • $duration
parse_tzid (line 3213)
void parse_tzid ( $tzid)
  • $tzid
parse_vcal (line 2866)
void parse_vcal ( $cal_file)
  • $cal_file
RepeatType (line 2461)
void RepeatType ( $type)
  • $type
rrule_repeat_days (line 2831)
void rrule_repeat_days ( $RA)
  • $RA
save_uid_for_event (line 756)
void save_uid_for_event ( $importId,  $id,  $uid)
  • $importId
  • $id
  • $uid
save_vtimezone (line 3177)
void save_vtimezone ( $event)
  • $event
search_users (line 137)
void search_users ( $arrInArray,  $varSearchValue)
  • $arrInArray
  • $varSearchValue
vcaldate_to_timestamp (line 2984)
void vcaldate_to_timestamp ( $vdate, [ $plus_d = '0'], [ $plus_m = '0'], [ $plus_y = '0'])
  • $vdate
  • $plus_d
  • $plus_m
  • $plus_y
wc_export_fold_lines (line 76)
void wc_export_fold_lines ( $string, [ $encoding = 'none'], [ $limit = 76])
  • $string
  • $encoding
  • $limit

Documentation generated on Thu, 10 Jun 2010 17:08:42 -0400 by phpDocumentor 1.4.3