30 protected \ilObjExercise
$exc;
51 $this->exc_id = $this->exc->
getId();
55 $this->set_to_mandatory_assignments = array_filter($this->assignments,
function ($i) {
57 if ($i->getMandatory()) {
70 public function getMandatoryAssignmentsOfUser(
73 if ($this->rand_ass_manager->isActivated()) {
74 return $this->rand_ass_manager->getMandatoryAssignmentsOfUser($user_id);
85 return (in_array($ass_id, $this->getMandatoryAssignmentsOfUser($user_id)));
isMandatoryForUser(int $ass_id, int $user_id)
RandomAssignmentsManager $rand_ass_manager
Manages random mandatory assignments of an exercise (business logic)
array $set_to_mandatory_assignments
__construct(int $id, int $exc_id, string $title, int $order_nr, int $type, string $instructions, bool $mandatory, int $deadline_mode, int $deadline, int $deadline2, int $relative_deadline, int $rel_deadline_last_submission)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstancesByExercise(int $a_exc_id)
Manages random mandatory assignments of an exercise.