Midgard uses person records to store information about people in. Persons are orgarnized in groups.
A person record contains information about a person. A Midgard account can be attache to a person record by setting the username and password fields.
Fields of a person record
The id of the person record.
The username of the person. If this field is empty, the person doesn't have a Midgard account.
The password of the person.
The first name of the person.
The last name of the person.
The date of birth of the person.
The street address of the person
The postal code (ZIP) of the person.
The city the person lives in.
The home phone number of the person.
The work phone number of the person.
The mobile phone number of the person.
The URL of the person's homepage.
The email address of the person.
A freeform information field.
Bitfield of meta information about the record. Contains the bits address, phone, homepage, email and extra. These bits control which parts of the person record are public.
The id of an optional topic record the person is linked to.
The id of an optional (sub) topic record the person is linked to.
The id of an optional topic describing the department the person is part of.
The id of an optional topic describing the office the person is part of.
The id of the sitegroup the person record belongs to.
This section describes the contents of person 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.
/* Person Object Prototype */ Class person { var $N; # Only with mgd_list_XXX functions. var $id; var $username; var $password; var $firstname; var $lastname; var $birthdate; var $street; var $postcode; var $city; var $homephone; var $handphone; var $workphone; var $homepage; var $email; var $extra; var $img; var $info; var $topic; var $subtopic; var $department; var $office; var $created; var $creator; var $pgpkey; var $sitegroup; function fetch(); # Only with mgd_list_XXX functions. function create(); function update(); function delete(); function createattachment(); function updateattachment(); function deleteattachment(); function getattachment(); function listattachments(); function openattachment(); function serveattachement(); function listparameters(); function parameter(); function searchparameters(); function getsitegroup(); function setsitegroup(); }