Inherited Variables
Inherited Constants
Inherited Methods
Class Details
This class contains several utilities related to the ICalendar (rfc2445) format
Tags:
- author - Evert Pot (http://www.rooftopsolutions.nl/)
- copyright - Copyright (C) 2007-2010 Rooftop Solutions. All rights reserved.
- license - Modified BSD License
[ Top ]
Class Variables
Class Methods
static toXCAL
static string. toXCAL(
string
$icalData)
[line 77]
Converts ICalendar data to XML.
Properties are converted to lowercase xml elements. Parameters are; converted to attributes. BEGIN:VEVENT is converted to <vevent> and END:VEVENT </vevent> as well as other components.
It's a very loose parser. If any line does not conform to the spec, it will simply be ignored. It will try to detect if \r\n or \n line endings are used.
Tags:
- see - http://tools.ietf.org/html/draft-royer-calsch-xcal-03
- todo - Currently quoted attributes are not parsed correctly.
Parameters:
- string $icalData -
[ Top ]
static validateICalendarObject
static bool validateICalendarObject(
string
$icalData,
$allowedComponents)
[line 24]
Validates an ICalendar object
This method makes sure this ICalendar object is properly formatted. If we can't parse it, we'll throw exceptions.
Parameters:
- string $icalData -
- array $allowedComponents -
[ Top ]