icalendar_get_events

Wrapper function for iCalendarReader->get_events().

Description

(array) icalendar_get_events( (string) $url = '', (int) $count = 5 ); 

Returns (array)

Parameters (2)

0. $url — Optional. (string) => ''
(default: '')
1. $count — Optional. (int) => 5
The count.

Usage

  1. if ( !function_exists( 'icalendar_get_events' ) ) { 
  2. require_once '/_inc/lib/icalendar-reader.php'; 
  3.  
  4. // (default: '') 
  5. $url = ''; 
  6.  
  7. // The count. 
  8. $count = 5; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = icalendar_get_events($url, $count); 
  12.  

Defined (1)

The function is defined in the following location(s).

/_inc/lib/icalendar-reader.php  
  1. function icalendar_get_events( $url = '', $count = 5 ) { 
  2. // Find your calendar's address http://support.google.com/calendar/bin/answer.py?hl=en&answer=37103 
  3. $ical = new iCalendarReader(); 
  4. return $ical->get_events( $url, $count );