Example #1
0
 /**
  * Send notification for updated resource reservation 
  * 
  * @param OBM_Event $old 
  * @param OBM_Event $new 
  * @param array $recipients 
  * @access private
  * @return void
  */
 private function sendCurrentResourceMail($old, $new, $recipients) {
   if (self::hasEventFullyChanged($old, $new)) {
     foreach ($recipients as $resource) {
       $resourceOwners = array_keys(OBM_Acl::getEntityWriters('resource', $resource->id));
       if (!in_array($GLOBALS['obm']['uid'], $resourceOwners) && count($resourceOwners) > 0) {
         $this->mailer->sendResourceUpdate($new, $old, $resourceOwners, $resource);
       }
     }         
   }
 }