Midgard uses page records to control the actual site structure and content of a midgard host.
A page record contains information about a page, its owner and its parent.
Fields of a page record
The id of the page record.
The id of the parent page.
The id of the style of the page.
The name of the page. Will be part of the URL.
The title of the page.
The content of the page.
The id of the person that is the author of the page.
Contains bits for "auth" and "virtual path". Authentication can be required or inherited. A page is either "virtual path enabled" or not.
The date and time the page record was last changed.
The id of the sitegroup the page record belongs to.
This section describes the contents of pagelink 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.
/* Page Object Prototype */ Class page { var $N; # Only with mgd_list_XXX functions. var $id; var $up; var $style; var $name; var $title; var $content; var $author; var $info; var $changed; var $sitegroup; function fetch(); # only with 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(); }