ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilObjTestDynamicQuestionSetConfigGUI Class Reference
+ Collaboration diagram for ilObjTestDynamicQuestionSetConfigGUI:

Public Member Functions

 __construct (ilCtrl $ctrl, ilAccessHandler $access, ilTabsGUI $tabs, ilLanguage $lng, ilGlobalTemplateInterface $tpl, ilDBInterface $db, ilTree $tree, ilComponentRepository $component_repository, ilObjTest $testOBJ)
 
 executeCommand ()
 

Data Fields

const CMD_SHOW_FORM = 'showForm'
 
const CMD_SAVE_FORM = 'saveForm'
 
const CMD_GET_TAXONOMY_OPTIONS_ASYNC = 'getTaxonomyOptionsAsync'
 
const QUESTION_ORDERING_TYPE_UPDATE_DATE = 'ordering_by_date'
 
const QUESTION_ORDERING_TYPE_TAXONOMY = 'ordering_by_tax'
 

Protected Attributes

ilCtrlInterface $ctrl
 
ilAccessHandler $access
 
ilTabsGUI $tabs
 
ilLanguage $lng
 
ilGlobalTemplateInterface $tpl
 
ilDBInterface $db
 
ilTree $tree
 
ilObjTest $testOBJ
 
ilObjTestDynamicQuestionSetConfig $questionSetConfig
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjTestDynamicQuestionSetConfigGUI::__construct ( ilCtrl  $ctrl,
ilAccessHandler  $access,
ilTabsGUI  $tabs,
ilLanguage  $lng,
ilGlobalTemplateInterface  $tpl,
ilDBInterface  $db,
ilTree  $tree,
ilComponentRepository  $component_repository,
ilObjTest  $testOBJ 
)

Definition at line 48 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.

References $access, $ctrl, $db, $lng, $tabs, $testOBJ, $tpl, $tree, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\tabs().

58  {
59  $this->ctrl = $ctrl;
60  $this->access = $access;
61  $this->tabs = $tabs;
62  $this->lng = $lng;
63  $this->tpl = $tpl;
64  $this->db = $db;
65  $this->tree = $tree;
66  $this->testOBJ = $testOBJ;
67 
68  $this->questionSetConfig = new ilObjTestDynamicQuestionSetConfig(
69  $this->tree,
70  $this->db,
71  $component_repository,
72  $this->testOBJ
73  );
74  }
+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilObjTestDynamicQuestionSetConfigGUI::executeCommand ( )

Definition at line 76 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.

References ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\tabs().

77  {
78  // allow only write access
79 
80  if (!$this->access->checkAccess("write", "", $this->testOBJ->getRefId())) {
81  $this->tpl->setOnScreenMessage('info', $this->lng->txt("cannot_edit_test"), true);
82  $this->ctrl->redirectByClass('ilObjTestGUI', "infoScreen");
83  }
84 
85  // activate corresponding tab (auto activation does not work in ilObjTestGUI-Tabs-Salad)
86 
87  $this->tabs->activateTab('assQuestions');
88  $this->tpl->setOnScreenMessage('info', $this->lng->txt("ctm_cannot_be_changed"));
89  }
+ Here is the call graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilObjTestDynamicQuestionSetConfigGUI::$access
protected

Definition at line 39 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.

Referenced by __construct().

◆ $ctrl

ilCtrlInterface ilObjTestDynamicQuestionSetConfigGUI::$ctrl
protected

Definition at line 38 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.

Referenced by __construct().

◆ $db

ilDBInterface ilObjTestDynamicQuestionSetConfigGUI::$db
protected

Definition at line 43 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.

Referenced by __construct().

◆ $lng

ilLanguage ilObjTestDynamicQuestionSetConfigGUI::$lng
protected

Definition at line 41 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.

Referenced by __construct().

◆ $questionSetConfig

ilObjTestDynamicQuestionSetConfig ilObjTestDynamicQuestionSetConfigGUI::$questionSetConfig
protected

◆ $tabs

ilTabsGUI ilObjTestDynamicQuestionSetConfigGUI::$tabs
protected

Definition at line 40 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.

Referenced by __construct().

◆ $testOBJ

ilObjTest ilObjTestDynamicQuestionSetConfigGUI::$testOBJ
protected

Definition at line 45 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.

Referenced by __construct().

◆ $tpl

ilGlobalTemplateInterface ilObjTestDynamicQuestionSetConfigGUI::$tpl
protected

Definition at line 42 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.

Referenced by __construct().

◆ $tree

ilTree ilObjTestDynamicQuestionSetConfigGUI::$tree
protected

Definition at line 44 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.

Referenced by __construct().

◆ CMD_GET_TAXONOMY_OPTIONS_ASYNC

const ilObjTestDynamicQuestionSetConfigGUI::CMD_GET_TAXONOMY_OPTIONS_ASYNC = 'getTaxonomyOptionsAsync'

◆ CMD_SAVE_FORM

const ilObjTestDynamicQuestionSetConfigGUI::CMD_SAVE_FORM = 'saveForm'

◆ CMD_SHOW_FORM

const ilObjTestDynamicQuestionSetConfigGUI::CMD_SHOW_FORM = 'showForm'

◆ QUESTION_ORDERING_TYPE_TAXONOMY

const ilObjTestDynamicQuestionSetConfigGUI::QUESTION_ORDERING_TYPE_TAXONOMY = 'ordering_by_tax'

◆ QUESTION_ORDERING_TYPE_UPDATE_DATE

const ilObjTestDynamicQuestionSetConfigGUI::QUESTION_ORDERING_TYPE_UPDATE_DATE = 'ordering_by_date'

The documentation for this class was generated from the following file: