protected function populate(int $notification_id, &$notification)
 {
     $message = $this->unmarshal($this->db->f('message', true), 'text');
     if (!isset($message) || $message == '') {
         $message = lang($this->unmarshal($this->db->f('workbench_message', true), 'text'));
     }
     $notification = new rental_notification($this->unmarshal($this->db->f('id', true), 'int'), $this->unmarshal($this->db->f('account_id', true), 'int'), $this->unmarshal($this->db->f('location_id', true), 'int'), $this->unmarshal($this->db->f('contract_id', true), 'int'), $this->unmarshal($this->db->f('date', true), 'int'), $message, $this->unmarshal($this->db->f('recurrence', true), 'int'), $this->unmarshal($this->db->f('last_notified', true), 'int'), $this->unmarshal($this->db->f('title', true), 'string'), $this->unmarshal($this->db->f('originated_from', true), 'int'));
     $notification->set_field_of_responsibility_id($this->db->f('location_id', true), 'int');
     return $notification;
 }
 /**
  * This method is a proxy menthod for the rental_notification::populate_workbench_notifications 
  * method so that it can be called from the Asynchservice in PHPGWAPI
  * 
  * @param $day the day to populate the workbench
  * @return unknown_type
  */
 public static function populate_workbench($day = null)
 {
     rental_notification::populate_workbench_notifications($day);
 }
 /**
  * Get a static reference to the storage object associated with this model object
  *
  * @return the storage object
  */
 public static function get_so()
 {
     if (self::$so == null) {
         self::$so = CreateObject('rental.sonotification');
     }
     return self::$so;
 }