19declare(strict_types=1);
29use Psr\Http\Message\ServerRequestInterface;
37 private readonly UIFactory $ui_factory,
39 private readonly \
ilCtrl $ctrl,
51 return $this->test_access->checkParticipantsResultsAccess()
52 && $this->test_obj->evalTotalPersons() > 0;
64 ->withParameter($action_token, self::
ACTION_ID)
72 array $selected_participants,
73 bool $all_participants_selected
80 ServerRequestInterface $request,
81 array $selected_participants,
82 bool $all_participants_selected
84 if ($selected_participants === []) {
87 foreach ($selected_participants as $participant) {
88 if (!$this->test_access->checkResultsAccessForActiveId(
89 $participant->getActiveId(),
90 $this->test_obj->getTestId()
92 $this->tpl->setOnScreenMessage(
94 $this->
lng->txt(
'no_permission'),
100 $this->
ctrl->setParameterByClass(
101 \ilTestEvaluationGUI::class,
104 $selected_participants,
105 static function (
string $c, Participant $v):
string {
107 return (
string) $v->getActiveId();
109 $c .=
",{$v->getActiveId()}";
116 $this->
ctrl->redirectByClass(\ilTestEvaluationGUI::class,
'showResults');
121 return $record->
getActiveId() !==
null && $this->test_access->checkResultsAccessForActiveId(
123 $this->test_obj->getTestId()
Builds a Color from either hex- or rgb values.
allowActionForRecord(Participant $record)
getTableAction(URLBuilder $url_builder, URLBuilderToken $row_id_token, URLBuilderToken $action_token, URLBuilderToken $action_type_token)
getModal(URLBuilder $url_builder, array $selected_participants, bool $all_participants_selected)
onSubmit(URLBuilder $url_builder, ServerRequestInterface $request, array $selected_participants, bool $all_participants_selected)
__construct(private readonly Language $lng, private readonly UIFactory $ui_factory, private readonly \ilTestAccess $test_access, private readonly \ilCtrl $ctrl, private readonly \ilObjTest $test_obj)
getSelectionErrorMessage()
Class ilCtrl provides processing control methods.
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const MESSAGE_TYPE_FAILURE
This describes commonalities between the different modals.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!file_exists('../ilias.ini.php'))