ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct (ilCtrl $ctrl, ilAccessHandler $access, ilTabsGUI $tabs, ilLanguage $lng, ilTemplate $tpl, ilDBInterface $db, ilTree $tree, ilPluginAdmin $pluginAdmin, ilObjTest $testOBJ) | |
Constructor. More... | |
executeCommand () | |
Command Execution. More... | |
getTaxonomyOptionsAsyncCmd () | |
showFormCmd (ilPropertyFormGUI $form=null) | |
command method that prints the question set config form More... | |
saveFormCmd () | |
command method that checks the question set config form More... | |
Data Fields | |
const | CMD_SHOW_FORM = 'showForm' |
command constants More... | |
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 Member Functions | |
getSubmittedSourceQuestionPoolId () | |
Protected Attributes | |
$ctrl = null | |
$access = null | |
$tabs = null | |
$lng = null | |
$tpl = null | |
$db = null | |
$tree = null | |
$testOBJ = null | |
$questionSetConfig = null | |
Private Member Functions | |
performSaveForm (ilPropertyFormGUI $form) | |
saves the form fields to the database More... | |
buildForm ($sourceQuestionPoolId) | |
builds the question set config form and initialises the fields with the config currently saved in database More... | |
buildQuestionPoolSelectInputOptionArray ($questionPoolsData) | |
converts the passed question pools data array to select input option array More... | |
buildTaxonomySelectInputOptionArray ($questionPoolId) | |
buildTaxonomySelectInputOptionJson ($questionPoolId) | |
Definition at line 16 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
ilObjTestDynamicQuestionSetConfigGUI::__construct | ( | ilCtrl | $ctrl, |
ilAccessHandler | $access, | ||
ilTabsGUI | $tabs, | ||
ilLanguage | $lng, | ||
ilTemplate | $tpl, | ||
ilDBInterface | $db, | ||
ilTree | $tree, | ||
ilPluginAdmin | $pluginAdmin, | ||
ilObjTest | $testOBJ | ||
) |
Constructor.
Definition at line 94 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
References $access, $ctrl, $db, $lng, $tabs, $testOBJ, $tpl, and $tree.
|
private |
builds the question set config form and initialises the fields with the config currently saved in database
Definition at line 254 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
References $form, ilRadioOption\addSubItem(), buildQuestionPoolSelectInputOptionArray(), buildTaxonomySelectInputOptionArray(), ilRadioOption\setInfo(), ilSelectInputGUI\setOptions(), ilCheckboxInputGUI\setValue(), ilRadioGroupInputGUI\setValue(), ilRadioOption\setValue(), and ilNonEditableValueGUI\setValue().
Referenced by saveFormCmd(), and showFormCmd().
|
private |
converts the passed question pools data array to select input option array
array | $questionPoolsData |
Definition at line 346 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
Referenced by buildForm().
|
private |
Definition at line 357 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
References ilObject\_lookupTitle(), and ilObjTaxonomy\getUsageOfObject().
Referenced by buildForm(), and buildTaxonomySelectInputOptionJson().
|
private |
Definition at line 376 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
References PHPMailer\PHPMailer\$options, and buildTaxonomySelectInputOptionArray().
Referenced by getTaxonomyOptionsAsyncCmd().
ilObjTestDynamicQuestionSetConfigGUI::executeCommand | ( | ) |
Command Execution.
Definition at line 113 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
References ilUtil\sendInfo().
|
protected |
Definition at line 172 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
References $_POST.
Referenced by saveFormCmd().
ilObjTestDynamicQuestionSetConfigGUI::getTaxonomyOptionsAsyncCmd | ( | ) |
Definition at line 137 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
References $_POST, buildTaxonomySelectInputOptionJson(), and exit.
|
private |
saves the form fields to the database
ilPropertyFormGUI | $form |
Definition at line 215 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
References ilObject\_lookupTitle(), and ilPropertyFormGUI\getItemByPostVar().
Referenced by saveFormCmd().
ilObjTestDynamicQuestionSetConfigGUI::saveFormCmd | ( | ) |
command method that checks the question set config form
if form is valid it gets saved to the database, otherwise it will be reprinted with alerts
Definition at line 183 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
References $errors, $form, buildForm(), getSubmittedSourceQuestionPoolId(), performSaveForm(), ilUtil\sendFailure(), and showFormCmd().
ilObjTestDynamicQuestionSetConfigGUI::showFormCmd | ( | ilPropertyFormGUI | $form = null | ) |
command method that prints the question set config form
ilPropertyFormGUI | $form |
Definition at line 150 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
References $form, buildForm(), ilUtil\sendFailure(), and ilUtil\sendInfo().
Referenced by saveFormCmd().
|
protected |
Definition at line 37 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
Referenced by __construct().
|
protected |
Definition at line 30 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
Referenced by __construct().
|
protected |
Definition at line 65 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
Referenced by __construct().
|
protected |
Definition at line 51 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
Referenced by __construct().
|
protected |
Definition at line 86 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
|
protected |
Definition at line 44 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
Referenced by __construct().
|
protected |
Definition at line 79 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
Referenced by __construct().
|
protected |
Definition at line 58 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
Referenced by __construct().
|
protected |
Definition at line 72 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
Referenced by __construct().
const ilObjTestDynamicQuestionSetConfigGUI::CMD_GET_TAXONOMY_OPTIONS_ASYNC = 'getTaxonomyOptionsAsync' |
Definition at line 23 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
const ilObjTestDynamicQuestionSetConfigGUI::CMD_SAVE_FORM = 'saveForm' |
Definition at line 22 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
const ilObjTestDynamicQuestionSetConfigGUI::CMD_SHOW_FORM = 'showForm' |
command constants
Definition at line 21 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
const ilObjTestDynamicQuestionSetConfigGUI::QUESTION_ORDERING_TYPE_TAXONOMY = 'ordering_by_tax' |
Definition at line 89 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
const ilObjTestDynamicQuestionSetConfigGUI::QUESTION_ORDERING_TYPE_UPDATE_DATE = 'ordering_by_date' |
Definition at line 88 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.