Midgard uses group records to describe groups. Groups contain persons. Group membership is defined by member records.
A group record contains information about a group and its owner.
Fields of a group record
The id of the group record.
The name of the group.
The official name of the group.
The street part of the group address.
The city part of the group address.
The url to the group homepage.
The emailaddress of the group.
A freeform information field.
The group id of the owner of the group.
The id of the sitegroup the record belongs to.
Midgard functions like mgd_get_groupand mgd_list_groups return objects upon success. This section describes the contents of those 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.
/* Group Object Prototyp */ Class group { var $N; # Only available with mgd_list_XXX functions. var $id; var $name; var $official; var $street; var $postcode; var $city; var $homepage; var $email; var $extra; var $owner; var $sitegroup; function fetch(); # Only available mgd_list_XXX functions. function create(); function update(); function delete(); function setsitegroup(); function getsitegroup(); function parameter(); function listparameters(); function searchparameters(); function setscore(); function settype(); function createattachment(); function updateattachment(); function deleteattachment(); function getattachment(); function listattachment(); function openattachment(); function serveattachment(); }