XVII. Sitegroup Reference

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.

1. Sitegroup Record Definition

A sitegroup record contains information about a sitegroup and the group that has administrator rights within that sitegroup.

Fields of a sitgroup record

id

The id of the sitegroup record.

name

The name of the sitegroup record.

admingroup

The id of the group taht has administrator rights within the sitegroup.

2. Sitegroup Object Definition

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();

}
Table of Contents
mgd_create_sitegroup — Create a sitegroup record
mgd_delete_sitegroup — Delete a sitegroup
mgd_get_sitegroup — Get a sitegroup
mgd_has_sitegroups — Check if Midgard has sitegroups
mgd_list_sitegroups — List sitegroups
mgd_update_sitegroup — Update a sitegroup