/** * Gets the participants of a calendar item. * Does a distinction between the processes 'delete' and 'add' or 'edit' because for the 'delete' process an * additional query to the database is needed. * Checks if the recipient has the right settings and if the recipient is the owner of the calendar item. * Returns at least an empty array. * * @return array Array of users IDs. */ public function getRecipients() { if ($this->_controllProcess == Phprojekt_Notification::LAST_ACTION_REMIND) { $recipients = array($this->_model->participantId); } else { $recipients = parent::getRecipients(); } return $this->filterRecipientsToSettings($recipients); }