ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
__construct (ilCtrl $ctrl, ilAccessHandler $access, ilTabsGUI $tabs, ilLanguage $lng, ilTemplate $tpl, ilDB $db, ilTree $tree, ilPluginAdmin $pluginAdmin, ilObjTest $testOBJ) | |
Constructor. | |
executeCommand () | |
Command Execution. | |
getTaxonomyOptionsAsyncCmd () | |
showFormCmd (ilPropertyFormGUI $form=null) | |
command method that prints the question set config form | |
saveFormCmd () | |
command method that checks the question set config form |
Data Fields | |
const | CMD_SHOW_FORM = 'showForm' |
command constants | |
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 | |
$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 | |
buildForm () | |
builds the question set config form and initialises the fields with the config currently saved in database | |
buildQuestionPoolSelectInputOptionArray ($questionPoolsData) | |
converts the passed question pools data array to select input option array | |
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, | ||
ilDB | $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 257 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
References ilRadioOption\addSubItem(), buildQuestionPoolSelectInputOptionArray(), buildTaxonomySelectInputOptionArray(), QUESTION_ORDERING_TYPE_TAXONOMY, QUESTION_ORDERING_TYPE_UPDATE_DATE, 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 362 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
Referenced by buildForm().
|
private |
Definition at line 374 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
References ilObject\_lookupTitle(), and ilObjTaxonomy\getUsageOfObject().
Referenced by buildForm(), and buildTaxonomySelectInputOptionJson().
|
private |
Definition at line 395 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
References $options, and buildTaxonomySelectInputOptionArray().
Referenced by getTaxonomyOptionsAsyncCmd().
ilObjTestDynamicQuestionSetConfigGUI::executeCommand | ( | ) |
Command Execution.
Definition at line 113 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
References $cmd, and ilUtil\sendInfo().
ilObjTestDynamicQuestionSetConfigGUI::getTaxonomyOptionsAsyncCmd | ( | ) |
Definition at line 139 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
References $_POST, buildTaxonomySelectInputOptionJson(), and exit.
|
private |
saves the form fields to the database
ilPropertyFormGUI | $form |
Definition at line 213 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 181 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
References $errors, buildForm(), performSaveForm(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and showFormCmd().
ilObjTestDynamicQuestionSetConfigGUI::showFormCmd | ( | ilPropertyFormGUI | $form = null | ) |
command method that prints the question set config form
ilPropertyFormGUI | $form |
Definition at line 152 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
References 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.
Referenced by buildForm().
const ilObjTestDynamicQuestionSetConfigGUI::QUESTION_ORDERING_TYPE_UPDATE_DATE = 'ordering_by_date' |
Definition at line 88 of file class.ilObjTestDynamicQuestionSetConfigGUI.php.
Referenced by buildForm().