33 protected \ilLanguage
$lng;
45 $survey_service = $DIC->survey()->internal();
51 $this->
lng->loadLanguageModule(
"svy");
53 $this->inv_manager = $survey_service
58 $this->set_repo = $survey_service->repo()->settings();
60 $survey_service->repo()
76 $survey_ids = $this->inv_manager->getOpenInvitationsOfUser($user_id);
77 if (count($survey_ids) > 0) {
78 $obj_ids = $this->set_repo->getObjIdsForSurveyIds($survey_ids);
79 $access = $this->set_repo->getAccessSettings($survey_ids);
80 foreach ($obj_ids as $survey_id => $obj_id) {
84 $tasks[] = $this->task_service->derived()->factory()->task(
87 $access[$survey_id]->getEndDate(),
88 $access[$survey_id]->getStartDate()
95 $survey_ids = $this->svy_360_manager->getOpenSurveysForRater($user_id);
96 if (count($survey_ids) > 0) {
97 $obj_ids = $this->set_repo->getObjIdsForSurveyIds($survey_ids);
98 $access = $this->set_repo->getAccessSettings($survey_ids);
99 foreach ($obj_ids as $survey_id => $obj_id) {
103 $tasks[] = $this->task_service->derived()->factory()->task(
106 $access[$survey_id]->getEndDate(),
107 $access[$survey_id]->getStartDate()
114 $survey_ids = $this->svy_360_manager->getOpenSurveysForAppraisee($user_id);
115 if (count($survey_ids) > 0) {
116 $obj_ids = $this->set_repo->getObjIdsForSurveyIds($survey_ids);
117 $access = $this->set_repo->getAccessSettings($survey_ids);
118 foreach ($obj_ids as $survey_id => $obj_id) {
122 $tasks[] = $this->task_service->derived()->factory()->task(
125 $access[$survey_id]->getEndDate(),
126 $access[$survey_id]->getStartDate()
147 if ($access->checkAccessOfUser($user_id, $perm,
"", $ref_id)) {
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
SettingsDBRepository $set_repo
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getAllReferences(int $id)
get all reference ids for object ID
ilTaskService $task_service
Survey360Manager $svy_360_manager
InvitationsManager $inv_manager
__construct(\ilTaskService $task_service, \ilAccess $access, \ilLanguage $lng)
static _lookupTitle(int $obj_id)
getTasks(int $user_id)
Get providers.
getFirstRefIdWithPermission(string $perm, int $obj_id, int $user_id)
Get first ref id for an object id with permission.
Survey settings db repository.
isActive()
Is provider active?
Exercise derived task provider.