protected function getNotificationTargetUserIds() { global $tree; if ($this->getTutorNotificationTarget() == self::NOTIFICATION_INVITED_USERS) { $user_ids = $this->getInvitedUsers(); } else { $parent_grp_ref_id = $tree->checkForParentType($this->getRefId(), "grp"); if ($parent_grp_ref_id) { include_once "Modules/Group/classes/class.ilGroupParticipants.php"; $part = new ilGroupParticipants(ilObject::_lookupObjId($parent_grp_ref_id)); $user_ids = $part->getMembers(); } else { $parent_crs_ref_id = $tree->checkForParentType($this->getRefId(), "crs"); if ($parent_crs_ref_id) { include_once "Modules/Course/classes/class.ilCourseParticipants.php"; $part = new ilCourseParticipants(ilObject::_lookupObjId($parent_crs_ref_id)); $user_ids = $part->getMembers(); } } } return $user_ids; }