Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
iCalendar_component Class Reference
Inheritance diagram for iCalendar_component:
iCalendar iCalendar_alarm iCalendar_event iCalendar_freebusy iCalendar_journal iCalendar_standard iCalendar_timezone iCalendar_todo

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 = NULL
 
$parser_errors $parser_errors = NULL
 Added to hold errors from last run of unserialize array.
 
 $properties = NULL
 
 $valid_components = NULL
 
 $valid_properties = NULL
 

Member Function Documentation

◆ unserialize()

iCalendar_component::unserialize ( $string)

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: