Open Source Content Management System

Attachment Object Definition

A Midgard function like mgd_get_attachment and object methods like $object->listattachments return MidgardAttachment objects upon success. This section describes the contents of those objects.

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: Methods of Midgard Objects.

/* Attachment Object Prototype */  

Class MidgardAttachment 
{  

     var $N;     // Only in objects created by calling $object->listattachments.  
     var $id;  
     var $ptable;  
     var $pid;  
     var $score;  
     var $name;  
     var $title;  
     var $location;  
     var $mimetype;  
     var $sitegroup;  
     var $author;  
     var $created;  
     var $lang;  // if compiled with multilang features  

     function fetch(); // Only in objects created by calling $object->listattachments.   

     function delete();  
     function update();  

     function listparameters();  
     function parameter();  
     function searchparameters();  

     function getsitegroup();  
    function setsitegroup();  
}
Designed by Nemein, hosted by Anykey