3 declare(strict_types=1);
    34     private \ILIAS\HTTP\Services 
$http;
    45     public function __construct(
string $a_parent_type, 
int $a_parent_obj_id = 0)
    49         $this->parent_type = $a_parent_type;
    50         $this->parent_obj_id = $a_parent_obj_id;
    52         $this->tpl = $DIC->ui()->mainTemplate();
    53         $this->
ctrl = $DIC->ctrl();
    54         $this->
lng = $DIC->language();
    55         $this->
lng->loadLanguageModule(
'crs');
    56         $this->
lng->loadLanguageModule(
'mem');
    57         $this->rbacsystem = $DIC->rbac()->system();
    58         $this->
http = $DIC->http();
    69         $next_class = $this->
ctrl->getNextClass($this);
    70         $cmd = $this->
ctrl->getCmd(
'printViewSettings');
    72         switch ($next_class) {
    82             $form = $this->
initForm(self::TYPE_PRINT_VIEW_SETTINGS);
    84         $this->tpl->setContent($form->getHTML());
    90         $form->setFormAction($this->
ctrl->getFormAction($this));
    91         $form->setTitle($this->
getLang()->txt(
'mem_' . $a_type . 
'_form'));
    94         $fields[
'name'] = $this->
lng->txt(
'name');
    95         $fields[
'login'] = $this->
lng->txt(
'login');
    96         $fields[
'email'] = $this->
lng->txt(
'email');
    99         $field_info->sortExportFields();
   101         foreach ($field_info->getExportableFields() as $field) {
   111             $fields[$field] = $this->
lng->txt($field);
   116         $exportable = array();
   117         if ($this->parent_type === 
'crs') {
   118             $exportable = $udf->getCourseExportableFields();
   119         } elseif ($this->parent_type === 
'grp') {
   120             $exportable = $udf->getGroupExportableFields();
   122         foreach ($exportable as $field_id => $udf_data) {
   123             $fields[
'udf_' . $field_id] = $udf_data[
'field_name'];
   127         foreach ($fields as 
$id => $name) {
   130         $form->addItem($ufields);
   133         if ($this->parent_type === 
'crs') {
   134             if ($privacy->enabledCourseAccessTimes()) {
   138         if ($this->parent_type === 
'grp') {
   139             if ($privacy->enabledGroupAccessTimes()) {
   147         $blank->setMulti(
true);
   148         $form->addItem($blank);
   153         if ($this->parent_type === 
'crs') {
   158         if (!$this->parent_obj_id) {
   159             $subscriber = 
new ilCheckboxOption($this->
lng->txt(
'event_user_selection_include_requests'), 
'subscr');
   160             $roles->addOption($subscriber);
   162             $waiting_list = 
new ilCheckboxOption($this->
lng->txt(
'event_user_selection_include_waiting_list'), 
'wlist');
   163             $roles->addOption($waiting_list);
   165         $form->addItem($roles);
   168             case self::TYPE_PRINT_VIEW_SETTINGS:
   171                 if ($this->
http->wrapper()->query()->has(
'ref_id')) {
   172                     $ref_id = $this->
http->wrapper()->query()->retrieve(
   178                 if ($this->rbacsystem->checkAccess(
'write', 
$ref_id)) {
   179                     $form->addCommandButton(
'savePrintViewSettings', $this->
getLang()->txt(
'save'));
   184         $identifier = $this->parent_type . 
's_pview';
   185         if ($this->parent_obj_id) {
   188             $identifier_for_object = $identifier . 
'_0';
   192         if (!$settings->hasStoredEntry()) {
   196         $settings->exportToForm($form);
   206         $form = $this->
initForm(self::TYPE_PRINT_VIEW_SETTINGS);
   207         if ($form->checkInput()) {
   208             $form->setValuesByPost();
   213             $identifier = $this->parent_type . 
's_pview';
   214             if ($this->parent_obj_id) {
   219             $settings->importFromForm($form);
   222             $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'settings_saved'), 
true);
   223             $this->
ctrl->redirect($this, 
'printViewSettings');
 ILIAS Refinery Factory $refinery
 
const TYPE_PRINT_VIEW_SETTINGS
 
__construct(string $a_parent_type, int $a_parent_obj_id=0)
Constructor. 
 
savePrintViewSettings()
Save print view settings. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
ILIAS HTTP Services $http
 
const TYPE_PRINT_VIEW_MEMBERS
 
static http()
Fetches the global http state from ILIAS. 
 
printViewSettings(?ilPropertyFormGUI $form=null)
 
ilGlobalTemplateInterface $tpl
 
const TYPE_EXPORT_SETTINGS
 
static _getInstanceByType(string $a_type)
Get Singleton Instance. 
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...