This buffer can be used to collect Vcalendar Elements (VElts) like VEvent and VTodo and manipulate them as a collection.
Basic operations supported are:
the Vcalendar Component Buffer will --as the name already says-- only contains Vcalendar Components, that is VEVENTs, VTODOs etc. If you try to add it a full compound VCALENDAR element to it, using the add_velt() method, this will be decomposed in all its components and these will be added to the VCB.
Public Member Functions | |
boolean | add_velt (VElt &$vobj) |
Add a single Vcal Element to the VCB. | |
int | add_velts (array_of_VElt &$vobjs) |
Add Multiple Vcal Elements to the VCB. | |
boolean | clear () |
Remove all Vcal Elements from the VCB. | |
int | count () |
Deliver number of Velts in buffer (on first level). | |
array_of_VElts I false | find_velts (VEltType $vtype='all') |
Find Vcal Elements in the VCB of a specific type. | |
int I false | parse_vcal (VcalStr &$vcal) |
Parse Vcalstring into a Vcal Elements and add these to buffer. | |
Vcalstr I false | render_vcal (array &$vcal_attributes) |
Render all Vcal Elements from the ICB as one big VcalString. | |
VElt I false | to_velt () |
Deliver all Velts in buffer as a single icalendar element. | |
Private Member Functions | |
icalvcb () | |
constructor, Initialize the buffer |
|
constructor, Initialize the buffer
|
|
Add a single Vcal Element to the VCB.
|
|
Add Multiple Vcal Elements to the VCB. A convenience wrapper around add_velt() to handle multiple Vcal Elements at once.
|
|
Remove all Vcal Elements from the VCB.
|
|
Deliver number of Velts in buffer (on first level).
|
|
Find Vcal Elements in the VCB of a specific type.
|
|
Parse Vcalstring into a Vcal Elements and add these to buffer.
|
|
Render all Vcal Elements from the ICB as one big VcalString. Note this function uses the egwical_resourcehandler render routine render_velt2vcal() so that the attributes processing is done
|
|
Deliver all Velts in buffer as a single icalendar element.
|