Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
iCalendar Class Reference
Inheritance diagram for iCalendar:
iCalendar_component

Public Member Functions

 add_component ($component)
 
 add_property ($name, $value=NULL, $parameters=NULL)
 
 clear_errors ()
 
 get_name ()
 
 get_property_list ($name)
 
 invariant_holds ()
 
 is_valid ()
 
 parser_error ($error)
 
 serialize ()
 
 unserialize ($string)
 unserialize()
 

Public Attributes

 $components = NULL
 
 $name = 'VCALENDAR'
 
$parser_errors $parser_errors = NULL
 Added to hold errors from last run of unserialize array.
 
 $properties = NULL
 
 $valid_components = NULL
 
 $valid_properties = NULL
 

Constructor & Destructor Documentation

◆ __construct()

iCalendar::__construct ( )

Reimplemented from iCalendar_component.

Member Function Documentation

◆ unserialize()

iCalendar_component::unserialize ( $string)
inherited

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.

Parameters
string$stringthe iCalendar object to load in to this iCalendar_component
Return values
booltrue if the file parsed with no errors. False if there were errors.

The documentation for this class was generated from the following file: