Chapter 42. Group Object Definition

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