Midgard 1.4 'Bifrost' introduces support for building Web-based calendar and scheduling applications that share all the regular features of Midgard data handling.
An event record contains information about an event.
Fields of an event record
The id of the event record.
The id of the parent event.
The start date and time of the event (Unix timestamp).
The end date and time of the event (Unix timestamp).
The title of the event.
The description of the event.
A free form extra information field.
The type of the event (an integer).
Two events cannot overlap if one of them has the busy set to 1.
The id of the group that owns the event.
Points to the person-id of the creator of the event.
Date and time the event was created.
Points to the person-id of the last revisor of the event.
Date and time of the last revision of the event.
An integer representing the number of times the event has been revised.
Points to the person-id of the locker of the event.
Date and time the event has been locked.
The id of the sitegroup the event is in.
This section describes the contents of event objects. Most object parameters map directly to the record fields described above.
The functions listed within the object definition are the object methods that are available for the object. Usage information about those methods can be found in Object Methods.
/* Event Object Prototype */ Class event { var $N; # Only with mgd_list_XXX functions. var $id; var $up; var $start; var $end; var $title; var $description; var $extra; var $type; var $owner; var $creator; var $created; var $locker; var $locked; var $revisor; var $revised; var $revision; var $sitegroup; function fetch(); # Only with mgd_list_XXX functions. function create(); function update(); function delete(); function createattachment(); function updateattachment(); function deleteattachment(); function listattachments(); function getattachment(); function openattachment(); function serveattachment(); function parameter(); function searchparameters(); function listparameters(); function getsitegroup(); function setsitegroup(); }