/**
  * Send a update booking notification to the participants.
  *
  * @param string $a_user_id          = userid of creator
  * @param array  $a_participants_ids = userids of participants
  *
  */
 public function sendUpdateBookingMailToParticipants(array $a_participants_ids)
 {
     foreach (array_unique($a_participants_ids) as $participant_id) {
         $this->composeUpdatingBookingMailForParticipant($participant_id);
         parent::sendMail(array($participant_id), array('system'), is_numeric($participant_id));
     }
 }
 /**
  * Send notification to single recipient
  * 
  * @param mixed $a_rcp
  * @param string $a_goto_additional
  * @param string $a_permission
  * @return bool
  */
 protected function composeAndSendMail($a_user_id, $a_goto_additional = null, $a_permission = "read")
 {
     if ($this->compose($a_user_id, $a_goto_additional, $a_permission)) {
         parent::sendMail(array($a_user_id), array('system'), is_numeric($a_user_id));
         return true;
     }
     return false;
 }