Class: Sabre_CalDAV_ICalendarUtil

Source Location: /includes/classes/SabreDAV/lib/Sabre/CalDAV/ICalendarUtil.php

Class Overview [line 12]


This class contains several utilities related to the ICalendar (rfc2445) format

Author(s):

  • Evert Pot (http://www.rooftopsolutions.nl/)

Version:

Copyright:

  • Copyright (C) 2007-2010 Rooftop Solutions. All rights reserved.

Variables

Constants

Methods


Inherited Variables

Inherited Constants

Inherited Methods



Class Details

This class contains several utilities related to the ICalendar (rfc2445) format

Tags:

[ 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:

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 ]


Class Constants


Documentation generated on Mon, 31 May 2010 12:53:29 -0400 by phpDocumentor 1.4.3