mcal_append_event

(PHP 4, PECL)

mcal_append_event -- Store a new event into an MCAL calendar

Description

int mcal_append_event ( int mcal_stream )

mcal_append_event() stores the global event into an MCAL calendar for the stream mcal_stream.

Returns the id of the newly inserted event.


add a note add a note User Contributed Notes
php at markbach dot com
18-Jun-2004 12:33
It appears that MCAL uses the current time (seconds since the epoch) as the "unique" ID when inserting new events into the calendar.  Thus, if you try to insert several events at once, it will not work correctly unless you wait at least one second between calling mcal-append-event().

This is with libmcal 0.6 and PHP 4.3.4.