Class iCal
A simple iCal parser.
http://github.com/mfkahn/intouch-iCalendar based on http://github.com/fangel/SG-iCalendar
Roadmap:
- Finish FREQUENCY-parsing.
- Add API for recurring events
A simple example:
<?php use intouch\ical\iCal; $ical = new iCal("http://example.com/calendar.ics"); foreach( $ical->getEvents() As $event ) { // Do stuff with the event $event } ?>
Namespace: intouch\ical
License: CC-BY-SA-DK
Author: Morten Fangel (C) 2008
Author: xonev (C) 2010
Author: Tanguy Pruvot (C) 2010
Author: Michael Kahn (C) 2013
Located at ical/iCal.php
License: CC-BY-SA-DK
Author: Morten Fangel (C) 2008
Author: xonev (C) 2010
Author: Tanguy Pruvot (C) 2010
Author: Michael Kahn (C) 2013
Located at ical/iCal.php
public
|
#
__construct( mixed $url = false )
Constructs a new iCalReader. You can supply the url now, or later using setUrl |
public
|
|
public
|
#
getCalendarInfo( )
Returns the main calendar info. You can then query the returned object with ie getTitle(). |
public
|
|
public
|
#
getTimeZoneInfo( mixed $tzid = null )
Returns a given timezone for the calendar. This is mainly used by VEvents to adjust their date-times if they have specified a timezone. |
public
|
|
public
array
|
|
public
|
public
mixed
|
$information |
|
|
public
mixed
|
$timezones |
|
|
protected
mixed
|
$events |
|