19 declare(strict_types=1);
    39         private readonly \
ilCtrl $ctrl,
    46         return self::ACTION_ID;
    51         return $this->test_access->checkParticipantsResultsAccess()
    52             && $this->test_obj->evalTotalPersons() > 0;
    61         return $this->ui_factory->table()->action()->standard(
    62             $this->
lng->txt(self::ACTION_ID),
    72         array $selected_participants,
    73         bool $all_participants_selected
    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,
   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()
 This describes commonalities between the different modals. 
 
getTableAction(URLBuilder $url_builder, URLBuilderToken $row_id_token, URLBuilderToken $action_token, URLBuilderToken $action_type_token)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
allowActionForRecord(Participant $record)
 
getModal(URLBuilder $url_builder, 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)
 
withParameter(URLBuilderToken $token, string|array $value)
Change an acquired parameter's value if the supplied token is valid. 
 
getSelectionErrorMessage()
 
const MESSAGE_TYPE_FAILURE
 
onSubmit(URLBuilder $url_builder, ServerRequestInterface $request, array $selected_participants, bool $all_participants_selected)