36     protected \ILIAS\DI\LoggingServices 
$ilLog;
    42         $this->tpl = $DIC->ui()->mainTemplate();
    43         $this->
ctrl = $DIC->ctrl();
    45         $this->parent_object = $parent_gui->getObject();
    46         $this->tabs_gui = $DIC->tabs();
    47         $this->
toolbar = $DIC->toolbar();
    48         $this->
lng = $DIC->language();
    49         $this->
ilLog = $DIC->logger();
    51         $this->
lng->loadLanguageModule(
'user');
    52         if (!$this->
ilAccess->checkaccess(
'write', 
'', $this->parent_gui->getObject()->getRefId())) {
    53             $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'permission_denied'), 
true);
    59         $cmd = $this->
ctrl->getCmd();
    61         $this->tabs_gui->clearTargets();
    62         $this->tabs_gui->setBackTarget(
    63             $this->
lng->txt(
"back"),
    64             $this->
ctrl->getLinkTargetByClass(
'ilOrgUnitSimpleImportGUI', 
'chooseImport')
    68             case 'userImportScreen':
    82         $this->tpl->setContent($form->getHTML());
    90         $form->addItem($input);
    91         $form->setFormAction($this->
ctrl->getFormAction($this));
    92         $form->addCommandButton(
'startImport', $this->
lng->txt(
'import'));
   100         if (!$form->checkInput()) {
   101             $this->tpl->setContent($form->getHTML());
   103             $file = $form->getInput(
'import_file');
   106                 $importer->simpleUserImport($file[
'tmp_name']);
   108                 $this->
ilLog->
write($e->getMessage() . 
' - ' . $e->getTraceAsString());
   109                 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'import_failed'), 
true);
   110                 $this->
ctrl->redirect($this, 
'render');
   120             $this->tpl->setOnScreenMessage(
   122                 sprintf($this->
lng->txt(
'user_import_successful'), $stats[
'created'], $stats[
'removed']),
   127             $msg = $this->
lng->txt(
'import_terminated_with_warnings') . 
'<br>';
   129                 $msg .= 
'-' . $this->
lng->txt($warning[
'lang_var']) . 
' (Import ID: ' . $warning[
'import_id'] . 
')<br>';
   131             $this->tpl->setOnScreenMessage(
'info', $msg, 
true);
   134             $msg = $this->
lng->txt(
'import_terminated_with_errors') . 
'<br>';
   135             foreach ($importer->
getErrors() as $warning) {
   136                 $msg .= 
'- ' . $this->
lng->txt($warning[
'lang_var']) . 
' (Import ID: ' . $warning[
'import_id'] . 
')<br>';
   138             $this->tpl->setOnScreenMessage(
'failure', $msg, 
true);
 ilGlobalTemplateInterface $tpl
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
__construct(object $parent_gui)
 
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...
 
displayImportResults(ilOrgUnitImporter $importer)
 
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...
 
ilAccessHandler $ilAccess
 
write(string $a_msg, $a_log_level=null)
logging 
 
ILIAS DI LoggingServices $ilLog