code: public static function mediaObject(&$mediaObject, $attachment) {
  
          //Allowed media objects
          $types = \Library\Config::getParam("allowed-types", array(), "attachments");
  
          //1.Load the collection!
          if(!is_object($attachment)&&is_a($attachment,'Platform\Entity')):
              $thisModel = new Self;
              $attachment = $thisModel->loadObjectByURI($attachment);
          endif;
  
          //If the media object is not a collection! skip it
          $objectTypeshaystack = array("attachment");
  
          if (!in_array($attachment->getObjectType(), $objectTypeshaystack))
              return; //Nothing to do here if we can't deal with it!
  
          $attachmentObject = new MediaLink();
          //2.Get all the elements in the collection, limit 5 if more than 5
          //3.Trigger their timeline display
          $mediaObjectURI = $attachment->getObjectURI();
  
          $attachmentObject::set("objectType", "attachment");
          $attachmentObject::set("uri", $attachment->getObjectURI());
  
          //Now lets populate our collection with Items
          //@TODO Will probably need to query for objectType of items in collection?
          //@TODO Also this will help in removing objects from collections that have previously been deleted
          $attachmentObjectURL = !empty($mediaObjectURI) ? "/system/object/{$mediaObjectURI}" : "http://placeskull.com/100/100/999999";
          $attachmentObject->set("url", $attachmentObjectURL);
          $attachmentObject->set("uri", $mediaObjectURI);
  
          //AttachmentTypes
          //$mediaType  =  $attachment->getPropertyValue("attachment_type");
  
          $attachmentObject->set("name", $attachment->getPropertyValue("attachment_name"));
          $attachmentObject->set("type", $attachment->getPropertyValue("attachment_type"));
          $attachmentObject->set("height", null);
          $attachmentObject->set("width", null);
  
          //echo $mediaObjectURI;
          //Now set the collection Object as the media Object
          $mediaObject = $attachmentObject;
  
          return true;
      }
docs: Models a collection media object for media feeds
  
  @param type $mediaObject
  @param type $mediaObjectType
  @param type $mediaObjectId
  
  return void;