Constructor & Destructor Documentation
Constructor
- Parameters:
-
| object | Registry object |
| int | Calendar we want to output |
- Returns:
- void
Member Function Documentation
Build the VEVENT parts of the iCalendar feed
- Returns:
- string
Build the VTIMEZONE parts of the iCalendar feed
- Returns:
- string
Return a date in iCalendar format
- Parameters:
-
| int | Timestamp |
| bool | Build date only format |
| string | Date in format of YYYYMMDDTHHMMSSZ OR YYYYMMDD |
Return a UID for iCalendar
- Parameters:
-
| array | Parameters to use to generate UID |
| string | UID |
Convert times to GMT based on timezones
- Parameters:
-
- Returns:
- array
Encode special characters in a string for iCalendar
- Parameters:
-
| string | String to encode |
| bool | Line-fold |
| string | Encoded string |
Get event recurrence data
- Parameters:
-
- Returns:
- array
Parse a 'BEGIN:' block in an iCalendar feed
- Parameters:
-
| string | $type | Type of 'BEGIN' object |
| int | $start | Line number |
- Returns:
- void
Parse event object in an ical feed
- Parameters:
-
- Returns:
- void
Parse a timezone object in an ical feed
- Parameters:
-
- Returns:
- void
Parse a timezone object in an ical feed
- Parameters:
-
| int | $start | Line number |
| string | $type | Type of time zone object to parse |
- Returns:
- void
Parse core vcalendar object in an ical feed
- Parameters:
-
- Returns:
- void
Unfold lines per RFC2445 4.1
- Parameters:
-
| string | $string | Starting string |
| int | $line | Starting line number |
| string | |
Unformat content from incoming ical feed
- Parameters:
-
| string | $string | String content to unparse |
| int | $line | Line number |
- Returns:
- mixed Array of data, or false
Unparse time information from iCalendar datetime info
- Parameters:
-
| string | $string | iCalendar line |
- Returns:
- array Time information
Add an event
- Parameters:
-
- Returns:
- void
Build iCalendar feed and return
- Returns:
- string iCalendar feed (can be downloaded or sent as webcal subscription)
Retrieve stored error message
- Returns:
- string
Return events to be output
- Returns:
- void
| import |
( |
$ |
content, |
|
|
$ |
member_id = 0, |
|
|
$ |
feed_id = 0 |
|
) |
| |
Import and parse an iCalendar feed
- Parameters:
-
| string | $content | Feed content |
| int | $member_id | Member to save events under |
| int | $feed_id | Feed id |
- Returns:
- mixed False on failure, otherwise an array with keys 'skipped' and 'imported'
Remove an event
- Parameters:
-
- Returns:
- void
The documentation for this class was generated from the following file:
- admin/applications_addon/ips/calendar/sources/icalendar.php