39 $this->task_action = $derived_task_action;
42 $this->
lng->loadLanguageModule(
"exc");
61 foreach ($this->task_action->getOpenAssignmentsOfUser($user_id) as $ass) {
67 $title = str_replace(
"%1", $ass->getTitle(), $lng->
txt(
"exc_task_submission"));
68 $tasks[] = $this->task_service->derived()->factory()->task(
71 $state->getOfficialDeadline(),
72 (
int) $state->getGeneralStart()
77 foreach ($this->task_action->getOpenPeerReviewsOfUser($user_id) as $ass) {
83 $title = str_replace(
"%1", $ass->getTitle(), $lng->
txt(
"exc_task_peer_feedback"));
84 $tasks[] = $this->task_service->derived()->factory()->task(
87 $state->getPeerReviewDeadline(),
93 foreach ($this->task_action->getOpenGradingsOfUser($user_id) as $ass) {
98 $title = str_replace(
"%1", $ass->getTitle(), $lng->
txt(
"exc_task_grading"));
99 $tasks[] = $this->task_service->derived()->factory()->task($title,
$ref_id, 0, 0);
isActive()
Is provider active?
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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
ilTaskService $task_service
ilExerciseDerivedTaskAction $task_action
static getInstanceByIds(int $a_ass_id, int $a_user_id=0)
getFirstRefIdWithPermission(string $perm, int $obj_id, int $user_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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=0, ?int $a_tree_id=0)
check access for an object (provide $a_type and $a_obj_id if available for better performance) ...
__construct(ilTaskService $task_service, ilAccess $access, ilLanguage $lng, ilExerciseDerivedTaskAction $derived_task_action)