Language Object definition
This section describes the structure of Midgard's language objects as returned by mgd_get_language. Midgard's list functions (such as mgd_list_language) return Fetchables only, no real MidgardLanguage objects.
Language objects are only available if Midgard was compiled with multilang features.
Most object members map directly to the record fields described before. Some of them are read-only and can only be changed using a special function (see below), others are derived from one or more record fields and only provided for your convenience (e.g., startdate or enddate).
The functions listed within the object definition are the object methods that are available for the object. Usage information about those methods and common information about Midgard objects can be found in the Objects and Methods chapter.
// MidgardLanguage: Object Prototype for full instances
class MidgardLanguage {
// Basic record data (read/write)
var $id;
var $name;
var $code;
var $sitegroup;
// Public methods
function create();
function update();
function delete();
function createattachment();
function updateattachment();
function deleteattachment();
function getattachment();
function listattachment();
function openattachment();
function serveattachment();
function parameter();
function listparameters();
function searchparameters();
function setsitegroup();
function getsitegroup();
}
