Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 39 and 402]

(no description)

File Size: 714 lines (28 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 10 classes

iCalendar_component:: (11 methods):
  __construct()
  get_name()
  add_property()
  add_component()
  get_property_list()
  invariant_holds()
  is_valid()
  serialize()
  unserialize()
  clear_errors()
  parser_error()

iCalendar:: (1 method):
  __construct()

iCalendar_event:: (2 methods):
  __construct()
  invariant_holds()

iCalendar_todo:: (2 methods):
  __construct()
  invariant_holds()

iCalendar_journal:: (1 method):
  __construct()

iCalendar_freebusy:: (2 methods):
  __construct()
  invariant_holds()

iCalendar_alarm:: (2 methods):
  __construct()
  invariant_holds()

iCalendar_timezone:: (1 method):
  __construct()

iCalendar_standard:: (1 method):
  __construct()

iCalendar_daylight:: (0 methods):


Class: iCalendar_component  - X-Ref

BENNU - PHP iCalendar library
(c) 2005-2006 Ioannis Papaioannou (pj@moodle.org). All rights reserved.

Released under the LGPL.

See http://bennu.sourceforge.net/ for more information and downloads.

__construct()   X-Ref
Added to hold errors from last run of unserialize


get_name()   X-Ref
No description

add_property($name, $value = NULL, $parameters = NULL)   X-Ref
No description

add_component($component)   X-Ref
No description

get_property_list($name)   X-Ref
No description

invariant_holds()   X-Ref
No description

is_valid()   X-Ref
No description

serialize()   X-Ref
No description

unserialize($string)   X-Ref
unserialize()

I needed a way to convert an iCalendar component back to a Bennu object so I could
easily access and modify it after it had been stored; if this functionality is already
present somewhere in the library, I apologize for adding it here unnecessarily; however,
I couldn't find it so I added it myself.
param: string $string the iCalendar object to load in to this iCalendar_component
return: bool true if the file parsed with no errors. False if there were errors.

clear_errors()   X-Ref
No description

parser_error($error)   X-Ref
No description

Class: iCalendar  - X-Ref

__construct()   X-Ref
No description

Class: iCalendar_event  - X-Ref

__construct()   X-Ref
No description

invariant_holds()   X-Ref
No description

Class: iCalendar_todo  - X-Ref

__construct()   X-Ref
No description

invariant_holds()   X-Ref
No description

Class: iCalendar_journal  - X-Ref

__construct()   X-Ref
No description

Class: iCalendar_freebusy  - X-Ref

__construct()   X-Ref
No description

invariant_holds()   X-Ref
No description

Class: iCalendar_alarm  - X-Ref

__construct()   X-Ref
No description

invariant_holds()   X-Ref
No description

Class: iCalendar_timezone  - X-Ref

__construct()   X-Ref
No description

Class: iCalendar_standard  - X-Ref

__construct()   X-Ref
No description