Midgard uses a style system to allow for administration of appearance of sites. Style records are used to identify different styles and describe style inheritance. Element records are linked to styles and contain the actual data for creating the site appearance.
A style record contains information about a style, its owner and its parent.
Fields of a style record
The id of the style record.
The id of the parent style. The value zero indicates that the style is a toplevel style.
The name of the style.
The id of the group owning the style.
The id of the sitegroup the style belongs to.
This section describes the content of style 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.
/* Style Object Prototype */ Class style { var $N; # Only with mgd_list_XXX functions. var $id; var $up; var $name; var $owner; 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 listattahcments(); function openattachment(); function serveattachement(); function listparameters(); function parameter(); function searchparameters(); function getsitegroup(); function setsitegroup(); }