public function createObjectFromData($row)
 {
     $notification = new Notification_Model();
     $notification->setId($row->id);
     $notification->setCreator($row->creator);
     $notification->setReceiver($row->receiver);
     $notification->setObject($row->object);
     $notification->setStatus($row->status);
     $notification->setType($row->type);
     $notification->setDateCreated($this->formatDate($row->dateCreated));
     $notification->setDocumentRefNo($row->documentRefNo);
     return $notification;
 }
 function createNotification($user_id, $friend_id, $post_id, $type)
 {
     $model = new Notification_Model();
     $model->createNotification($user_id, $friend_id, $post_id, $type);
 }