dolibarr
x.y.z
|
Class to read/parse ICal calendars. More...
Public Member Functions | |
__construct () | |
Constructor. | |
read_file ($file) | |
Read text file, icalender text file. More... | |
get_event_count () | |
Returns the number of calendar events. More... | |
get_todo_count () | |
Returns the number of to do. More... | |
parse ($uri) | |
Translate Calendar. More... | |
add_to_array ($type, $key, $value) | |
Add to $this->ical array one value and key. More... | |
retun_key_value ($text) | |
Parse text "XXXX:value text some with : " and return array($key = "XXXX", $value="value");. More... | |
ical_rrule ($value) | |
Parse RRULE return array. More... | |
ical_date_to_unix ($ical_date) | |
Return Unix time from ical date time fomrat (YYYYMMDD[T]HHMMSS[Z] or YYYYMMDD[T]HHMMSS) More... | |
ical_dt_date ($key, $value) | |
Return unix date from iCal date format. More... | |
get_sort_event_list () | |
Return sorted eventlist as array or false if calendar is empty. More... | |
ical_dtstart_compare ($a, $b) | |
Compare two unix timestamp. More... | |
get_event_list () | |
Return eventlist array (not sorted eventlist array) More... | |
get_freebusy_list () | |
Return freebusy array (not sort eventlist array) More... | |
get_todo_list () | |
Return to do array (not sorted todo array) More... | |
get_calender_data () | |
Return base calendar data. More... | |
get_all_data () | |
Return array with all data. More... | |
Class to read/parse ICal calendars.
Definition at line 34 of file ical.class.php.
ICal::add_to_array | ( | $type, | |
$key, | |||
$value | |||
) |
Add to $this->ical array one value and key.
string | $type | Type ('VTODO', 'VEVENT', 'VFREEBUSY', 'VCALENDAR'...) |
string | $key | Key ('DTSTART', ...). Note: Field is never 'DTSTART;TZID=...' because ';...' was before removed and added as another property |
string | $value | Value |
Definition at line 212 of file ical.class.php.
ICal::get_all_data | ( | ) |
ICal::get_calender_data | ( | ) |
ICal::get_event_count | ( | ) |
ICal::get_event_list | ( | ) |
Return eventlist array (not sorted eventlist array)
Definition at line 402 of file ical.class.php.
Referenced by get_sort_event_list().
ICal::get_freebusy_list | ( | ) |
Return freebusy array (not sort eventlist array)
Definition at line 414 of file ical.class.php.
ICal::get_sort_event_list | ( | ) |
Return sorted eventlist as array or false if calendar is empty.
Definition at line 370 of file ical.class.php.
References get_event_list().
ICal::get_todo_count | ( | ) |
ICal::get_todo_list | ( | ) |
Return to do array (not sorted todo array)
Definition at line 426 of file ical.class.php.
ICal::ical_date_to_unix | ( | $ical_date | ) |
Return Unix time from ical date time fomrat (YYYYMMDD[T]HHMMSS[Z] or YYYYMMDD[T]HHMMSS)
string | $ical_date | String date |
Definition at line 317 of file ical.class.php.
ICal::ical_dt_date | ( | $key, | |
$value | |||
) |
Return unix date from iCal date format.
string | $key | Key |
string | $value | Value |
Definition at line 342 of file ical.class.php.
ICal::ical_dtstart_compare | ( | $a, | |
$b | |||
) |
Compare two unix timestamp.
array | $a | Operand a |
array | $b | Operand b |
Definition at line 390 of file ical.class.php.
ICal::ical_rrule | ( | $value | ) |
Parse RRULE return array.
string | $value | string |
Definition at line 298 of file ical.class.php.
ICal::parse | ( | $uri | ) |
Translate Calendar.
string | $uri | Url |
Definition at line 108 of file ical.class.php.
ICal::read_file | ( | $file | ) |
Read text file, icalender text file.
string | $file | File |
Definition at line 60 of file ical.class.php.
ICal::retun_key_value | ( | $text | ) |
Parse text "XXXX:value text some with : " and return array($key = "XXXX", $value="value");.
string | $text | Text |
Definition at line 273 of file ical.class.php.