4include_once 
'./Services/Table/classes/class.ilTable2GUI.php';
 
   25    public function __construct($a_parent_type, $a_parent_obj_id = 0)
 
   27        $this->parent_type = $a_parent_type;
 
   28        $this->parent_obj_id = $a_parent_obj_id;
 
   32        $this->lng->loadLanguageModule(
'crs');
 
   33        $this->lng->loadLanguageModule(
'mem');
 
   51        $next_class = $this->ctrl->getNextClass($this);
 
   52        $cmd = $this->ctrl->getCmd(
'printViewSettings');
 
   55        switch ($next_class) {
 
   81        include_once 
'./Services/Form/classes/class.ilPropertyFormGUI.php';
 
   83        $form->setFormAction($this->ctrl->getFormAction($this));
 
   87        $fields[
'name'] = 
$GLOBALS[
'lng']->txt(
'name');
 
   88        $fields[
'login'] = 
$GLOBALS[
'lng']->txt(
'login');
 
   89        $fields[
'email'] = 
$GLOBALS[
'lng']->txt(
'email');
 
   91        include_once(
'Services/PrivacySecurity/classes/class.ilPrivacySettings.php');
 
   92        include_once 
'Services/PrivacySecurity/classes/class.ilExportFieldsInfo.php';
 
   93        include_once(
'Modules/Course/classes/Export/class.ilCourseDefinedFieldDefinition.php');
 
   94        include_once(
'Services/User/classes/class.ilUserDefinedFields.php');
 
   97        $field_info->sortExportFields();
 
   99        foreach ($field_info->getExportableFields() as $field) {
 
  109            $fields[$field] = 
$GLOBALS[
'lng']->txt($field);
 
  114        include_once 
'./Services/User/classes/class.ilUserDefinedFields.php';
 
  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 ((array) $exportable as $field_id => $udf_data) {
 
  123            $fields[
'udf_' . $field_id] = $udf_data[
'field_name'];
 
  131        $form->addItem($ufields);
 
  134        include_once 
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php';
 
  136        if ($this->parent_type == 
'crs') {
 
  137            if ($privacy->enabledCourseAccessTimes()) {
 
  141        if ($this->parent_type == 
'grp') {
 
  142            if ($privacy->enabledGroupAccessTimes()) {
 
  151        $blank->setMulti(
true);
 
  152        $form->addItem($blank);
 
  157        if ($this->parent_type == 
'crs') {
 
  162        if (!$this->parent_obj_id) {
 
  164            $roles->addOption($subscriber);
 
  167            $roles->addOption($waiting_list);
 
  169        $form->addItem($roles);
 
  173                $form->addCommandButton(
'savePrintViewSettings', $this->
getLang()->txt(
'save'));
 
  177        include_once 
"Services/User/classes/class.ilUserFormSettings.php";
 
  178        $identifier = $this->parent_type . 
's_pview';
 
  179        if ($this->parent_obj_id) {
 
  184        if (!$settings->hasStoredEntry()) {
 
  188        $settings->exportToForm(
$form);
 
  199        if (
$form->checkInput()) {
 
  200            $form->setValuesByPost();
 
  202            include_once 
"Services/User/classes/class.ilUserFormSettings.php";
 
  207            $identifier = $this->parent_type . 
's_pview';
 
  208            if ($this->parent_obj_id) {
 
  213            $settings->importFromForm(
$form);
 
  217            $GLOBALS[
'ilCtrl']->redirect($this, 
'printViewSettings');
 
An exception for terminatinating execution or to throw for unit testing.
This class represents an option in a checkbox group.
static _getInstanceByType($a_type)
Get Singleton Instance.
savePrintViewSettings()
Save print view settings.
executeCommand()
Execute command.
__construct($a_parent_type, $a_parent_obj_id=0)
Constructor.
const TYPE_PRINT_VIEW_SETTINGS
const TYPE_EXPORT_SETTINGS
const TYPE_PRINT_VIEW_MEMBERS
initForm($a_type)
init settings form
printViewSettings(ilPropertyFormGUI $form=null)
Show print view settings.
static _getInstance()
Get instance of ilPrivacySettings.
This class represents a text property in a property form.
static _getInstance()
Get instance.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
if(!array_key_exists('StateId', $_REQUEST)) $id
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
if(isset($_POST['submit'])) $form