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()
Survey settings db repository.
Exercise derived task provider.
ilTaskService $task_service
isActive()
Is provider active?
Survey360Manager $svy_360_manager
InvitationsManager $inv_manager
SettingsDBRepository $set_repo
__construct(\ilTaskService $task_service, \ilAccess $access, \ilLanguage $lng)
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.
Class ilAccessHandler Checks access for ILIAS objects.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static _getAllReferences(int $id)
get all reference ids for object ID
static _lookupTitle(int $obj_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
checkAccessOfUser(int $a_user_id, string $a_permission, string $a_cmd, int $a_ref_id, string $a_type="", ?int $a_obj_id=null, ?int $a_tree_id=null)
check access for an object (provide $a_type and $a_obj_id if available for better performance)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...