19 declare(strict_types=1);
    48         bool $a_call_by_reference = 
true,
    49         bool $a_prepare_output = 
true    52         $rbacsystem = $DIC[
'rbacsystem'];
    55         $local_dic = TestDIC::dic();
    56         $this->testrequest = $local_dic[
'request_data_collector'];
    57         $this->log_viewer = $local_dic[
'logging.viewer'];
    58         $this->questionrepository = $local_dic[
'question.general_properties.repository'];
    64         if (!$rbacsystem->checkAccess(
'read', $this->object->getRefId())) {
    65             $this->
ilias->raiseError($this->
lng->txt(
"msg_no_perm_read_assf"), $this->
ilias->error_obj->WARNING);
    68         $this->
lng->loadLanguageModule(
'assessment');
    79         $next_class = $this->
ctrl->getNextClass($this);
    80         $cmd = $this->
ctrl->getCmd();
    83         switch ($next_class) {
    84             case 'ilpermissiongui':
    85                 $this->tabs_gui->activateTab(
'perm_settings');
    86                 $perm_gui = new \ilPermissionGUI($this);
    87                 $this->
ctrl->forwardCommand($perm_gui);
    89             case 'ilglobalunitconfigurationgui':
    90                 if (!$this->rbac_system->checkAccess(
'visible,read', $this->getTestFolder()->getRefId())) {
    91                     $this->
ilias->raiseError($this->
lng->txt(
'permission_denied'), $this->
ilias->error_obj->WARNING);
    94                 $this->tabs_gui->setTabActive(
'units');
    96                 $gui = new \ilGlobalUnitConfigurationGUI(
    99                 $this->
ctrl->forwardCommand($gui);
   103                 if ($cmd === null || $cmd === 
'' || $cmd === 
'view') {
   104                     $cmd = 
'showGlobalSettings';
   115         $this->tabs_gui->setTabActive(
'settings');
   117         if ($form === null) {
   121         $this->tpl->setContent($this->ui_renderer->render($form));
   132         return $this->ui_factory->input()->container()->form()->standard(
   133             $this->
ctrl->getFormActionByClass(self::class, 
'SaveGlobalSettings'),
   143         if (!$this->
access->checkAccess(
'write', 
'', $this->getTestFolder()->getRefId())) {
   144             $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'no_permission'));
   150         $data = $form->getData();
   151         if (
$data === null) {
   157             ->storeGlobalSettings(
$data[
'global_settings']);
   164         $csv_output = $this->
getTestFolder()->getTestLogViewer()->getLegacyLogExportForObjId();
   174         $this->tabs_gui->activateTab(
'logs');
   176         if ($form === null) {
   180         $this->tpl->setContent($this->ui_renderer->render($form));
   185         if (!$this->
access->checkAccess(
'write', 
'', $this->getTestFolder()->getRefId())) {
   186             $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'no_permission'));
   192         $data = $form->getData();
   193         if (
$data === null) {
   199             ->storeLoggingSettings(
$data[
'logging']);
   212         return $this->ui_factory->input()->container()->form()->standard(
   213             $this->
ctrl->getFormActionByClass(self::class, 
'saveLogSettings'),
   220         $this->tabs_gui->activateTab(
'logs');
   222             $this->ui_factory->button()->standard(
   223                 $this->
lng->txt(
'export_legacy_logs'),
   224                 $this->
ctrl->getLinkTargetByClass(self::class, 
'exportLegacyLogs')
   227         $here_uri = $this->data_factory->uri(ILIAS_HTTP_PATH
   228             . 
'/' . $this->
ctrl->getLinkTargetByClass(self::class, self::SHOW_LOGS_CMD));
   229         list($url_builder, $action_parameter_token, $row_id_token) = (
new URLBuilder($here_uri))->acquireParameters(
   230             LogTable::QUERY_PARAMETER_NAME_SPACE,
   231             LogTable::ACTION_TOKEN_STRING,
   232             LogTable::ENTRY_TOKEN_STRING
   235         if ($this->request_wrapper->has($action_parameter_token->getName())) {
   236             $this->
object->getTestLogViewer()->executeLogTableAction(
   238                 $action_parameter_token,
   243         $table_gui = $this->log_viewer->getLogTable(
   245             $action_parameter_token,
   248         $this->tpl->setVariable(
'ADM_CONTENT', $this->ui_renderer->render($table_gui));
   258         $this->tabs_gui->addSubTabTarget(
   260             $this->
ctrl->getLinkTarget($this, 
'showLogSettings'),
   261             [
'saveLogSettings', 
'showLogSettings'],
   266         $this->tabs_gui->addSubTabTarget(
   268             $this->
ctrl->getLinkTargetByClass(self::class, self::SHOW_LOGS_CMD),
   269             [self::SHOW_LOGS_CMD],
   276         if (in_array($this->
ctrl->getCmd(), [
'saveLogSettings', 
'showLogSettings', self::SHOW_LOGS_CMD])) {
   280         if ($this->rbac_system->checkAccess(
'visible,read', $this->getTestFolder()->getRefId())) {
   281             $this->tabs_gui->addTarget(
   283                 $this->
ctrl->getLinkTarget($this, 
'showGlobalSettings'),
   284                 [
'showGlobalSettings', 
'settings', 
'', 
'view'],
   289             $this->tabs_gui->addTarget(
   291                 $this->
ctrl->getLinkTarget($this, 
"showLogSettings"),
   292                 [
'saveLogSettings', 
'showLogSettings', self::SHOW_LOGS_CMD, 
'showLog', 
'exportLog', 
'logAdmin', 
'deleteLog'],
   297             $this->tabs_gui->addTarget(
   299                 $this->
ctrl->getLinkTargetByClass(
'ilGlobalUnitConfigurationGUI', 
''),
   301                 'ilglobalunitconfigurationgui'   305         if ($this->rbac_system->checkAccess(
'edit_permission', $this->getTestFolder()->getRefId())) {
   306             $this->tabs_gui->addTarget(
   308                 $this->
ctrl->getLinkTargetByClass([get_class($this), 
'ilpermissiongui'], 
"perm"),
   309                 [
"perm", 
"info", 
"owner"],
 
buildGlobalSettingsForm()
 
saveGlobalSettingsObject()
Save Assessment settings. 
 
prepareOutput(bool $show_sub_objects=true)
 
__construct( $a_data, int $a_id=0, bool $a_call_by_reference=true, bool $a_prepare_output=true)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
RequestDataCollector $testrequest
 
static deliverData(string $a_data, string $a_filename, string $mime="application/octet-stream")
 
showGlobalSettingsObject(Form $form=null)
 
GeneralQuestionPropertiesRepository $questionrepository
 
showLogSettingsObject(Form $form=null)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Class ilObjectGUI Basic methods of all Output classes. 
 
Class ilObjForumAdministration. 
 
TestLogViewer $log_viewer
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
__construct(Container $dic, ilPlugin $plugin)
 
DataFactory $data_factory