Migard uses sitegroup records to divide the midgard database in administratively separate groups. If a person is logged in into a certain sitegroup, no access to recourses of a different sitegroup is possible, with exeption of the special sitegroup SG0.
A sitegroup record contains information about a sitegroup and the group that has administrator rights within that sitegroup.
Fields of a sitgroup record
The id of the sitegroup record.
The name of the sitegroup record.
The id of the group taht has administrator rights within the sitegroup.
This section describes the contents of sitegroup 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.
/* Sitegroup Object Prototyp */ Class sitegroup { var $N; # Only with mgd_list_XXX functions. var $id; var $name; var $admingroup; function fetch(); # Only with mgd_list_XXX functions. function create(); function update(); function delete(); function createattachment(); function updateattachment(); function deleteattachment(); function getattachment(); function listattahcments(); function openattachment(); function serveattachement(); function listparameters(); function parameter(); function searchparameters(); }