ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Class ilObjTestGUI. More...
Public Member Functions | |
executeCommand () | |
execute command More... | |
getTestAccess () | |
setTestAccess (ilTestAccess $test_access) | |
runObject () | |
retrieveAdditionalDidacticTemplateOptions () | |
afterSave (ilObject $new_object) | |
save object public More... | |
backToRepositoryObject () | |
getTestObject () | |
importVerifiedFileObject (bool $skip_retrieve_selected_questions=false) | |
imports question(s) into the questionpool (after verification) More... | |
downloadFileObject () | |
download file More... | |
fullscreenObject () | |
show fullscreen view More... | |
download_paragraphObject () | |
download source code paragraph More... | |
createQuestionPool ($name="dummy", $description="") | |
cancelCreateQuestionObject () | |
createQuestionFormObject (?Form $form=null) | |
showQuestionsObject () | |
takenObject () | |
historyObject () | |
exportLegacyLogsObject () | |
participantsActionObject () | |
Evaluates the actions on the participants page. More... | |
defaultsObject () | |
Displays the settings page for test defaults. More... | |
deleteDefaultsObject () | |
Deletes selected test defaults. More... | |
confirmedApplyDefaultsObject () | |
applyDefaultsObject ($confirmed=false) | |
Applies the selected test defaults. More... | |
addDefaultsObject () | |
Adds the defaults of this test to the defaults. More... | |
addLocatorItems () | |
statisticsObject () | |
certificateObject () | |
Shows the certificate editor. More... | |
getTabs () | |
adds tabs to tab gui object More... | |
copyQuestionsToPoolObject () | |
copyQuestionsToPool (array $question_ids, int $qpl_id) | |
copyQuestionToPool (assQuestionGUI $source_question_gui, ilObjQuestionPool $target_pool) | |
copyAndLinkQuestionsToPoolObject (?int $ref_id=null, array $question_ids=[]) | |
copyToQuestionpoolObject () | |
createQuestionPoolAndCopyObject () | |
createQuestionpoolTargetObject (string $cmd) | |
Called when a new question should be created from a test Important: $cmd may be overwritten if no question pool is available. More... | |
![]() | |
getRefId () | |
setAdminMode (string $mode) | |
getAdminMode () | |
getObject () | |
executeCommand () | |
withReferences () | |
determines whether objects are referenced or not (got ref ids or not) More... | |
setCreationMode (bool $mode=true) | |
If true, a creation screen is displayed the current [ref_id] does belong to the parent class The mode is determined in ilRepositoryGUI. More... | |
getCreationMode () | |
prepareOutput (bool $show_sub_objects=true) | |
getAdminTabs () | |
administration tabs show only permissions and trash folder More... | |
getHTML () | |
confirmedDeleteObject () | |
confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More... | |
cancelObject () | |
cancel action and go back to previous page More... | |
createObject () | |
create new object form More... | |
editAvailabilityPeriodObject () | |
saveAvailabilityPeriodObject () | |
cancelCreation () | |
cancel create action and go back to repository parent More... | |
saveObject () | |
getDidacticTemplateVar (string $type) | |
Get didactic template setting from creation screen. More... | |
putObjectInTree (ilObject $obj, ?int $parent_node_id=null) | |
Add object to tree at given position. More... | |
editObject () | |
addExternalEditFormCustom (ilPropertyFormGUI $form) | |
updateObject () | |
updates object entry in object_data More... | |
getFormAction (string $cmd, string $default_form_action="") | |
Get form action for command (command is method name without "Object", e.g. More... | |
isVisible (int $ref_id, string $type) | |
viewObject () | |
viewObject container presentation for "administration -> repository, trash, permissions" More... | |
deleteObject (bool $error=false) | |
Display deletion confirmation screen. More... | |
setColumnSettings (ilColumnGUI $column_gui) | |
addToDeskObject () | |
removeFromDeskObject () | |
![]() | |
callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb) | |
![]() | |
addToDeskObject () | |
removeFromDeskObject () | |
Static Public Member Functions | |
static | _goto ($target) |
Redirect script to call a test with the test reference id. More... | |
![]() | |
static | _gotoRepositoryRoot (bool $raise_error=false) |
Goto repository root. More... | |
static | _gotoRepositoryNode (int $ref_id, string $cmd="") |
static | _gotoSharedWorkspaceNode (int $wsp_id) |
Data Fields | |
const | SHOW_QUESTIONS_CMD = 'showQuestions' |
![]() | |
const | ADMIN_MODE_NONE = "" |
const | ADMIN_MODE_SETTINGS = "settings" |
const | ADMIN_MODE_REPOSITORY = "repository" |
const | UPLOAD_TYPE_LOCAL = 1 |
const | UPLOAD_TYPE_UPLOAD_DIRECTORY = 2 |
const | CFORM_NEW = 1 |
const | CFORM_IMPORT = 2 |
const | CFORM_CLONE = 3 |
const | SUPPORTED_IMPORT_MIME_TYPES = [MimeType::APPLICATION__ZIP, MimeType::APPLICATION__X_ZIP_COMPRESSED] |
Protected Member Functions | |
redirectAfterMissingWrite () | |
redirectAfterMissingRead () | |
forwardCommandToQuestionPreview (string $cmd, ?assQuestionGUI $question_gui=null) | |
forwardCommandToQuestion (string $cmd) | |
trackTestObjectReadEvent () | |
exportObject () | |
Gateway for exports initiated from workspace, as there is a generic forward to {objTypeMainGUI}::export() More... | |
fetchAuthoringQuestionIdParameter () | |
importFile (string $file_to_import, string $path_to_uploaded_file_in_temp_dir) | |
removeImportFailsObject () | |
getTargetQuestionpoolForm ($questionpools, string $cmd) | |
protectByWritePermission () | |
determineObjectiveOrientedContainer () | |
getObjectiveOrientedContainer () | |
getQuestionsTableQuery () | |
getQuestionsTableActions () | |
getTable () | |
![]() | |
getObjectService () | |
assignObject () | |
setTitleAndDescription () | |
createActionDispatcherGUI () | |
initHeaderAction (?string $sub_type=null, ?int $sub_id=null) | |
Add header action menu. More... | |
insertHeaderAction (?ilObjectListGUI $list_gui=null) | |
Insert header action into main template. More... | |
addHeaderAction () | |
Add header action menu. More... | |
redrawHeaderActionObject () | |
Ajax call: redraw action header only. More... | |
setTabs () | |
set admin tabs More... | |
setAdminTabs () | |
set admin tabs More... | |
setLocator () | |
addLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) More... | |
omitLocator (bool $omit=true) | |
addAdminLocatorItems (bool $do_not_add_object=false) | |
should be overwritten to add object specific items (repository items are preloaded) More... | |
getCreationFormsHTML (StandardForm|ilPropertyFormGUI|array $form) | |
getTitleForCreationFormPage () | |
getCreationFormTitle () | |
initCreateForm (string $new_type) | |
didacticTemplatesToForm () | |
initDidacticTemplate (ilPropertyFormGUI $form) | |
retrieveAdditionalDidacticTemplateOptions () | |
addAdoptContentLinkToToolbar () | |
addImportButtonToToolbar () | |
addAvailabilityPeriodButtonToToolbar (ilToolbarGUI $toolbar) | |
parseDidacticTemplateVar (string $var, string $type) | |
afterSave (ilObject $new_object) | |
Post (successful) object creation hook. More... | |
initEditForm () | |
initEditCustomForm (ilPropertyFormGUI $a_form) | |
Add custom fields to update form. More... | |
getEditFormValues () | |
getEditFormCustomValues (array &$a_values) | |
Add values to custom edit fields. More... | |
validateCustom (ilPropertyFormGUI $form) | |
Validate custom values (if not possible with checkInput()) More... | |
updateCustom (ilPropertyFormGUI $form) | |
Insert custom update form values into object. More... | |
afterUpdate () | |
Post (successful) object update hook. More... | |
routeImportCmdObject () | |
importFile (string $file_to_import, string $path_to_uploaded_file_in_temp_dir) | |
deleteUploadedImportFile (string $path_to_uploaded_file_in_temp_dir) | |
afterImport (ilObject $new_object) | |
Post (successful) object import hook. More... | |
setFormAction (string $cmd, string $form_action) | |
getReturnLocation (string $cmd, string $default_location="") | |
Get return location for command (command is method name without "Object", e.g. More... | |
setReturnLocation (string $cmd, string $location) | |
set specific return location for command More... | |
getTargetFrame (string $cmd, string $default_target_frame="") | |
get target frame for command (command is method name without "Object", e.g. More... | |
setTargetFrame (string $cmd, string $target_frame) | |
Set specific target frame for command. More... | |
showPossibleSubObjects () | |
show possible sub objects (pull down menu) More... | |
getTabs () | |
overwrite in derived GUI class of your object type More... | |
redirectToRefId (int $ref_id, string $cmd="") | |
redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current ["ref_id"] value of the request More... | |
getCenterColumnHTML () | |
Get center column. More... | |
getRightColumnHTML () | |
Display right column. More... | |
checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null) | |
checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $ref_id=null) | |
enableDragDropFileUpload () | |
Enables the file upload into this object by dropping files. More... | |
getCreatableObjectTypes () | |
buildAddNewItemElements (array $subtypes, string $create_target_class=ilRepositoryGUI::class, ?int $redirect_target_ref_id=null,) | |
buildGroup (string $create_target_class, array $obj_types_in_group, string $title, array $subtypes) | |
Private Member Functions | |
addQuestionTitleToObjectTitle (string $question_title) | |
addPostCreationTasksToQuestionGUI (assQuestionGUI $question_gui) | |
executeAfterQuestionSaveTasks (assQuestionGUI $question_gui) | |
executeAfterQuestionCreationTasks (assQuestionGUI $question_gui) | |
showNextViewAfterQuestionSave (assQuestionGUI $question_gui, string $target) | |
questionsTabGatewayObject () | |
showEditTestPageGUI (string $cmd) | |
forwardToEvaluationGUI () | |
redirectTo_SettingsMainGUI_showForm_Object () | |
prepareSubGuiOutput () | |
getSelectedPersonalDefaultsSettingsFromForm () | |
insertQuestionsObject (?array $selected_array=null) | |
buildQuestionCreationForm () | |
buildInputQuestionType () | |
buildInputPosition (array $questions) | |
buildInputEditingType () | |
buildInputPoolSelection () | |
addQuestion () | |
setupToolBarAndMessage (bool $has_started_test_runs) | |
populateQuestionBrowserToolbarButtons (ilToolbarGUI $toolbar) | |
isCommandClassAnyInfoScreenChild () | |
infoScreenObject () | |
forwardToInfoScreen () | |
getTestScreenGUIInstance () | |
Private Attributes | |
const | SHOW_LOGS_CMD = 'history' |
const | INFO_SCREEN_CHILD_CLASSES |
const | QUESTION_CREATION_POOL_SELECTION_NO_POOL = 1 |
const | QUESTION_CREATION_POOL_SELECTION_NEW_POOL = 2 |
const | QUESTION_CREATION_POOL_SELECTION_EXISTING_POOL = 3 |
ilTestQuestionSetConfigFactory | $test_question_set_config_factory |
ilTestPlayerFactory | $test_player_factory |
ilTestSessionFactory | $test_session_factory |
ExportImportFactory | $export_factory |
ExportRepository | $export_repository |
TestQuestionsRepository | $test_questions_repository |
GeneralQuestionPropertiesRepository | $questionrepository |
TestTopListRepository | $toplist_repository |
ilTestParticipantAccessFilterFactory | $participant_access_filter_factory |
QPLRequestDataCollector | $qplrequest |
TitleColumnsBuilder | $title_builder |
ilTestObjectiveOrientedContainer | $objective_oriented_container |
ContentStyle | $content_style |
Archives | $archives |
Class ilObjTestGUI.
ilObjTestGUI: ilObjCourseGUI, ilObjectMetaDataGUI, ilCertificateGUI, ilPermissionGUI ilObjTestGUI: ilTestPlayerFixedQuestionSetGUI, ilTestPlayerRandomQuestionSetGUI ilObjTestGUI: ilTestExpresspageObjectGUI, ilAssQuestionPageGUI ilObjTestGUI: ilTestParticipantsGUI, ilTestResultsGUI ilObjTestGUI: ilLearningProgressGUI, ILIAS ilObjTestGUI: ilTestEvaluationGUI ilObjTestGUI: ilAssGenFeedbackPageGUI, ilAssSpecFeedbackPageGUI ilObjTestGUI: ilInfoScreenGUI, ilObjectCopyGUI ilObjTestGUI: ILIAS ilObjTestGUI: ilRepositorySearchGUI, ilTestExportGUI ilObjTestGUI: assMultipleChoiceGUI, assClozeTestGUI, assMatchingQuestionGUI ilObjTestGUI: assOrderingQuestionGUI, assImagemapQuestionGUI, assNumericGUI, assErrorTextGUI ilObjTestGUI: ILIAS, ILIAS ilObjTestGUI: assTextSubsetGUI, assOrderingHorizontalGUI ilObjTestGUI: assSingleChoiceGUI, assFileUploadGUI, assTextQuestionGUI ilObjTestGUI: assKprimChoiceGUI, assLongMenuGUI ilObjTestGUI: ilEditClipboardGUI ilObjTestGUI: ILIAS, ILIAS ilObjTestGUI: ilCommonActionDispatcherGUI ilObjTestGUI: ilTestFixedQuestionSetConfigGUI, ilTestRandomQuestionSetConfigGUI ilObjTestGUI: ilAssQuestionFeedbackEditingGUI, ilLocalUnitConfigurationGUI, assFormulaQuestionGUI ilObjTestGUI: ilTestPassDetailsOverviewTableGUI ilObjTestGUI: ilTestCorrectionsGUI ilObjTestGUI: ilTestSettingsChangeConfirmationGUI ilObjTestGUI: ilTestSkillAdministrationGUI ilObjTestGUI: ilAssQuestionPreviewGUI ilObjTestGUI: ilTestQuestionBrowserTableGUI, ilTestInfoScreenToolbarGUI, ilLTIProviderObjectSettingGUI ilObjTestGUI: ilTestPageGUI
\
Definition at line 109 of file class.ilObjTestGUI.php.
|
static |
Redirect script to call a test with the test reference id.
integer | $a_target | The reference id of the test public |
Definition at line 2437 of file class.ilObjTestGUI.php.
References $DIC, $ilErr, ilObjectGUI\$lng, ilObjectGUI\_gotoRepositoryRoot(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ROOT_FOLDER_ID, and ilLanguage\txt().
Referenced by ILIAS\StaticURL\Handler\LegacyGotoHandler\handle().
ilObjTestGUI::addDefaultsObject | ( | ) |
Adds the defaults of this test to the defaults.
Definition at line 2147 of file class.ilObjTestGUI.php.
References defaultsObject(), getTestObject(), ILIAS\Repository\lng(), and protectByWritePermission().
ilObjTestGUI::addLocatorItems | ( | ) |
Definition at line 2315 of file class.ilObjTestGUI.php.
References ILIAS\Repository\ctrl(), getTestObject(), ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle(), and ILIAS\Repository\locator().
|
private |
Definition at line 1117 of file class.ilObjTestGUI.php.
References assQuestionGUI\setCopyToExistingPoolOnSave(), assQuestionGUI\setCopyToNewPoolOnSave(), and assQuestionGUI\setMoveAfterQuestionId().
Referenced by forwardCommandToQuestion().
|
private |
Definition at line 1856 of file class.ilObjTestGUI.php.
References getTestObject(), insertQuestionsObject(), ILIAS\Repository\lng(), and showQuestionsObject().
Referenced by showQuestionsObject().
|
private |
Definition at line 1045 of file class.ilObjTestGUI.php.
References ILIAS\Repository\refinery().
Referenced by executeCommand(), forwardCommandToQuestion(), and forwardCommandToQuestionPreview().
ilObjTestGUI::afterSave | ( | ilObject | $new_object | ) |
save object public
Definition at line 1412 of file class.ilObjTestGUI.php.
References $info, ILIAS\Repository\ctrl(), ilObjectGUI\getRefId(), ilObject\getRefId(), getSelectedPersonalDefaultsSettingsFromForm(), ILIAS\Repository\lng(), null, and ILIAS\Repository\user().
ilObjTestGUI::applyDefaultsObject | ( | $confirmed = false | ) |
Applies the selected test defaults.
Definition at line 2055 of file class.ilObjTestGUI.php.
References $info, ILIAS\Repository\ctrl(), defaultsObject(), getTestObject(), ILIAS\Repository\lng(), null, protectByWritePermission(), ilObjTest\QUESTION_SET_TYPE_FIXED, and ilObjTest\QUESTION_SET_TYPE_RANDOM.
Referenced by confirmedApplyDefaultsObject().
ilObjTestGUI::backToRepositoryObject | ( | ) |
Definition at line 1455 of file class.ilObjTestGUI.php.
References $path, ilObjectGUI\getReturnLocation(), getTestObject(), and ilUtil\redirect().
|
private |
Definition at line 1751 of file class.ilObjTestGUI.php.
References assQuestion\ADDITIONAL_CONTENT_EDITING_MODE_IPE, assQuestion\ADDITIONAL_CONTENT_EDITING_MODE_RTE, getTestObject(), ILIAS\Repository\lng(), ILIAS\UI\Implementation\Component\Input\withValue(), and ILIAS\UI\Component\Input\Input\withValue().
Referenced by buildQuestionCreationForm().
|
private |
Definition at line 1772 of file class.ilObjTestGUI.php.
References Vendor\Package\$f, ILIAS\UI\Implementation\Component\Input\$inputs, ilObjQuestionPool\_getAvailableQuestionpools(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\UI\Implementation\Component\Input\ViewControl\withAdditionalTransformation().
Referenced by buildQuestionCreationForm().
|
private |
Definition at line 1738 of file class.ilObjTestGUI.php.
References ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\UI\Implementation\Component\Input\ViewControl\withAdditionalTransformation().
Referenced by buildQuestionCreationForm().
|
private |
Definition at line 1724 of file class.ilObjTestGUI.php.
References ilObjectGUI\$data, and ILIAS\Repository\lng().
Referenced by buildQuestionCreationForm().
|
private |
Definition at line 1694 of file class.ilObjTestGUI.php.
References ILIAS\UI\Implementation\Component\Input\$inputs, buildInputEditingType(), buildInputPoolSelection(), buildInputPosition(), buildInputQuestionType(), ILIAS\Repository\ctrl(), getTestObject(), and ILIAS\Repository\lng().
Referenced by createQuestionPool().
ilObjTestGUI::cancelCreateQuestionObject | ( | ) |
Definition at line 1654 of file class.ilObjTestGUI.php.
References ILIAS\Repository\ctrl().
Referenced by ilObjTestGUITest\testCancelCreateQuestionObject().
ilObjTestGUI::certificateObject | ( | ) |
Shows the certificate editor.
Definition at line 2389 of file class.ilObjTestGUI.php.
References getTestObject().
ilObjTestGUI::confirmedApplyDefaultsObject | ( | ) |
Definition at line 2044 of file class.ilObjTestGUI.php.
References applyDefaultsObject(), and protectByWritePermission().
ilObjTestGUI::copyAndLinkQuestionsToPoolObject | ( | ?int | $ref_id = null , |
array | $question_ids = [] |
||
) |
Definition at line 2502 of file class.ilObjTestGUI.php.
References ilObjectGUI\$ref_id, copyQuestionsToPool(), ILIAS\Repository\ctrl(), assQuestion\instantiateQuestion(), ILIAS\Repository\lng(), null, assQuestion\saveOriginalId(), and showQuestionsObject().
Referenced by createQuestionPoolAndCopyObject().
ilObjTestGUI::copyQuestionsToPool | ( | array | $question_ids, |
int | $qpl_id | ||
) |
Definition at line 2477 of file class.ilObjTestGUI.php.
References copyQuestionToPool().
Referenced by copyAndLinkQuestionsToPoolObject(), and copyQuestionsToPoolObject().
ilObjTestGUI::copyQuestionsToPoolObject | ( | ) |
Definition at line 2467 of file class.ilObjTestGUI.php.
References copyQuestionsToPool(), and ILIAS\Repository\ctrl().
ilObjTestGUI::copyQuestionToPool | ( | assQuestionGUI | $source_question_gui, |
ilObjQuestionPool | $target_pool | ||
) |
Definition at line 2493 of file class.ilObjTestGUI.php.
References ilObjQuestionPool\appendCounterToQuestionTitleIfNecessary(), ilObject\getId(), and assQuestionGUI\getObject().
Referenced by copyQuestionsToPool(), and executeAfterQuestionCreationTasks().
ilObjTestGUI::copyToQuestionpoolObject | ( | ) |
Definition at line 2549 of file class.ilObjTestGUI.php.
References createQuestionpoolTargetObject().
Definition at line 1674 of file class.ilObjTestGUI.php.
References ILIAS\Repository\help(), and protectByWritePermission().
Referenced by createQuestionPool().
ilObjTestGUI::createQuestionPool | ( | $name = "dummy" , |
|
$description = "" |
|||
) |
Definition at line 1590 of file class.ilObjTestGUI.php.
References ilObjectGUI\$data, assQuestionGUI\_getQuestionGUI(), buildQuestionCreationForm(), createQuestionFormObject(), ILIAS\Repository\ctrl(), assQuestionGUI\EDIT_CONTEXT_AUTHORING, ILIAS\Survey\Mode\getId(), ilObjQuestionPool\getQuestionTypeByTypeId(), ilObjectGUI\getRefId(), getTestObject(), ILIAS\Repository\lng(), null, and protectByWritePermission().
Referenced by createQuestionPoolAndCopyObject(), and executeAfterQuestionCreationTasks().
ilObjTestGUI::createQuestionPoolAndCopyObject | ( | ) |
Definition at line 2554 of file class.ilObjTestGUI.php.
References ILIAS\Repository\access(), ilObjectGUI\checkPermissionBool(), copyAndLinkQuestionsToPoolObject(), createQuestionPool(), createQuestionpoolTargetObject(), ILIAS\Repository\lng(), and redirectAfterMissingWrite().
ilObjTestGUI::createQuestionpoolTargetObject | ( | string | $cmd | ) |
Called when a new question should be created from a test Important: $cmd may be overwritten if no question pool is available.
Definition at line 2583 of file class.ilObjTestGUI.php.
References getTargetQuestionpoolForm(), getTestObject(), and protectByWritePermission().
Referenced by copyToQuestionpoolObject(), createQuestionPoolAndCopyObject(), and showQuestionsObject().
ilObjTestGUI::defaultsObject | ( | ) |
Displays the settings page for test defaults.
Definition at line 2008 of file class.ilObjTestGUI.php.
References ILIAS\Repository\ctrl(), getTestObject(), ILIAS\Repository\lng(), protectByWritePermission(), and ILIAS\Repository\toolbar().
Referenced by addDefaultsObject(), applyDefaultsObject(), and deleteDefaultsObject().
ilObjTestGUI::deleteDefaultsObject | ( | ) |
Deletes selected test defaults.
Definition at line 2026 of file class.ilObjTestGUI.php.
References defaultsObject(), getTestObject(), ILIAS\Repository\lng(), null, and protectByWritePermission().
|
protected |
Definition at line 2677 of file class.ilObjTestGUI.php.
References $path, ilObject\_lookupObjId(), and ilLOSettings\isObjectiveTest().
Referenced by executeCommand().
ilObjTestGUI::download_paragraphObject | ( | ) |
download source code paragraph
Definition at line 1583 of file class.ilObjTestGUI.php.
References exit, and ilPageObject\sendParagraph().
ilObjTestGUI::downloadFileObject | ( | ) |
|
private |
Definition at line 1153 of file class.ilObjTestGUI.php.
References copyQuestionToPool(), createQuestionPool(), assQuestionGUI\getCopyToExistingPoolOnSave(), assQuestionGUI\getCopyToNewPoolOnSave(), assQuestionGUI\getMoveAfterQuestionId(), assQuestionGUI\getObject(), getTestObject(), null, ilObjTest\QUESTION_SET_TYPE_FIXED, assQuestion\saveOriginalId(), assQuestionGUI\setCopyToExistingPoolOnSave(), assQuestionGUI\setCopyToNewPoolOnSave(), and assQuestionGUI\setMoveAfterQuestionId().
Referenced by forwardCommandToQuestion().
|
private |
Definition at line 1140 of file class.ilObjTestGUI.php.
References assQuestionGUI\getObject(), ilObjectGUI\getRefId(), and getTestObject().
Referenced by forwardCommandToQuestion().
ilObjTestGUI::executeCommand | ( | ) |
execute command
2024-10-21: I've moved this down here, to avoid errors when initializing async-modals and to avoid an unnecessary redirect on errors.
Definition at line 252 of file class.ilObjTestGUI.php.
References ilObjectGUI\$access, $component_factory, ilObjectGUI\$ctrl, $data_factory, $db, $export_factory, ilObjectGUI\$lng, $participant_repository, ilObjectGUI\$refinery, $response_handler, $results_data_factory, $results_presentation_factory, $tabs_manager, $test_access, $test_pass_result_repository, $testrequest, ilObjectGUI\$toolbar, ilObjectGUI\$tpl, ilObjectGUI\$ui_factory, ilObjectGUI\$ui_renderer, $ui_service, assQuestionGUI\_getQuestionGUI(), ILIAS\Repository\access(), ilObjectGUI\addHeaderAction(), addQuestionTitleToObjectTitle(), ilAssQuestionPreviewGUI\CMD_SHOW, ILIAS\Repository\ctrl(), determineObjectiveOrientedContainer(), fetchAuthoringQuestionIdParameter(), forwardCommandToQuestion(), forwardCommandToQuestionPreview(), forwardToEvaluationGUI(), forwardToInfoScreen(), ilObjectGUI\getCreationMode(), ILIAS\Survey\Mode\getId(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), ilObjectGUI\getObject(), getObjectiveOrientedContainer(), ilObjectGUI\getRefId(), getTestAccess(), getTestObject(), getTestScreenGUIInstance(), ILIAS\Repository\help(), ILIAS\FileDelivery\http(), ilLearningProgressBaseGUI\LP_CONTEXT_REPOSITORY, ILIAS\Repository\object(), ilObjectGUI\prepareOutput(), prepareSubGuiOutput(), protectByWritePermission(), redirectAfterMissingRead(), redirectAfterMissingWrite(), ILIAS\Repository\settings(), showEditTestPageGUI(), trackTestObjectReadEvent(), and ILIAS\Repository\user().
ilObjTestGUI::exportLegacyLogsObject | ( | ) |
Definition at line 1977 of file class.ilObjTestGUI.php.
References ilUtil\deliverData(), ILIAS\Survey\Mode\getId(), getTestObject(), and protectByWritePermission().
|
protected |
Gateway for exports initiated from workspace, as there is a generic forward to {objTypeMainGUI}::export()
Definition at line 1227 of file class.ilObjTestGUI.php.
References ILIAS\Repository\ctrl().
|
protected |
ilTestException |
Definition at line 1236 of file class.ilObjTestGUI.php.
References getTestObject().
Referenced by executeCommand(), forwardCommandToQuestion(), and forwardCommandToQuestionPreview().
|
protected |
Definition at line 1054 of file class.ilObjTestGUI.php.
References Vendor\Package\$e, assQuestionGUI\_getQuestionGUI(), addPostCreationTasksToQuestionGUI(), addQuestionTitleToObjectTitle(), ILIAS\Repository\ctrl(), assQuestionGUI\EDIT_CONTEXT_AUTHORING, executeAfterQuestionCreationTasks(), executeAfterQuestionSaveTasks(), fetchAuthoringQuestionIdParameter(), ILIAS\Survey\Mode\getId(), getTestObject(), ILIAS\Repository\lng(), ilObjectGUI\prepareOutput(), showNextViewAfterQuestionSave(), showQuestionsObject(), and ilUtil\stripSlashes().
Referenced by executeCommand().
|
protected |
Definition at line 980 of file class.ilObjTestGUI.php.
References $global_screen, ilObjectGUI\$http, ilObjectGUI\$ref_id, ilObjectGUI\$refinery, ilAssQuestionPreviewGUI\addAdditionalCmd(), addQuestionTitleToObjectTitle(), ILIAS\Repository\ctrl(), fetchAuthoringQuestionIdParameter(), ILIAS\Survey\Mode\getId(), ilObjectGUI\getRefId(), getTestObject(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ILIAS\Repository\toolbar(), and ILIAS\Repository\user().
Referenced by executeCommand(), and showNextViewAfterQuestionSave().
|
private |
Definition at line 1294 of file class.ilObjTestGUI.php.
References ilObjectGUI\addHeaderAction(), ILIAS\Repository\ctrl(), getObjectiveOrientedContainer(), getTestAccess(), getTestObject(), and ilObjectGUI\prepareOutput().
Referenced by executeCommand().
|
private |
Definition at line 2176 of file class.ilObjTestGUI.php.
References ilObjectGUI\$access, ilObjectGUI\$ctrl, $db, $info, ilObjectGUI\$lng, ilObjectGUI\$toolbar, ilObjectGUI\$tpl, ilObjectGUI\$ui_factory, ilObjectGUI\$ui_renderer, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilDatePresentation\formatDate(), ILIAS\Survey\Mode\getId(), getTestObject(), ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle(), IL_CAL_UNIX, isCommandClassAnyInfoScreenChild(), null, redirectAfterMissingRead(), ILIAS\Repository\refinery(), ilObjTest\SCORE_BEST_PASS, ilToolbarGUI\setCloseFormTag(), trackTestObjectReadEvent(), and ILIAS\Repository\user().
Referenced by executeCommand().
ilObjTestGUI::fullscreenObject | ( | ) |
show fullscreen view
Definition at line 1571 of file class.ilObjTestGUI.php.
References ILIAS\Repository\ctrl(), and ilPageObjectGUI\setFileDownloadLink().
|
protected |
Definition at line 2698 of file class.ilObjTestGUI.php.
References $objective_oriented_container.
Referenced by executeCommand(), forwardToEvaluationGUI(), and getTabs().
|
protected |
Definition at line 2738 of file class.ilObjTestGUI.php.
References $table_actions, ILIAS\Repository\ctrl(), getQuestionsTableQuery(), getTestObject(), ILIAS\Repository\lng(), null, ILIAS\Repository\refinery(), ILIAS\Repository\toolbar(), and ILIAS\Repository\user().
Referenced by getTable(), and showQuestionsObject().
|
protected |
Definition at line 2724 of file class.ilObjTestGUI.php.
References ilObjectGUI\$id, $table_query, ILIAS\FileDelivery\http(), null, and ILIAS\Repository\refinery().
Referenced by getQuestionsTableActions(), getTargetQuestionpoolForm(), and showQuestionsObject().
|
private |
Definition at line 1445 of file class.ilObjTestGUI.php.
References ilObjectGUI\$data, ilObjectGUI\initCreateForm(), null, and ilObjectGUI\parseDidacticTemplateVar().
Referenced by afterSave().
|
protected |
Definition at line 2772 of file class.ilObjTestGUI.php.
References ilObjectGUI\$lng, ilObjectGUI\$object, $test_questions_repository, $title_builder, getQuestionsTableActions(), ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by showQuestionsObject().
ilObjTestGUI::getTabs | ( | ) |
adds tabs to tab gui object
ilTabsGUI | $tabs_gui |
Definition at line 2404 of file class.ilObjTestGUI.php.
References $DIC, getObjectiveOrientedContainer(), ilObjectGUI\getRefId(), ILIAS\Repository\help(), ILIAS\Repository\lng(), and null.
|
protected |
Definition at line 2619 of file class.ilObjTestGUI.php.
References ilObjectGUI\$id, $table_query, ILIAS\Repository\ctrl(), getQuestionsTableQuery(), ILIAS\Test\Questions\Presentation\QuestionsTableQuery\getRowIds(), ILIAS\Test\Questions\Presentation\QuestionsTableQuery\getTableAction(), ILIAS\Repository\lng(), null, ilFormPropertyGUI\setRequired(), and ilFormPropertyGUI\setTitle().
Referenced by createQuestionpoolTargetObject().
ilObjTestGUI::getTestAccess | ( | ) |
Definition at line 1284 of file class.ilObjTestGUI.php.
References $test_access.
Referenced by executeCommand(), and forwardToEvaluationGUI().
ilObjTestGUI::getTestObject | ( | ) |
Definition at line 1461 of file class.ilObjTestGUI.php.
References ilObjectGUI\$object.
Referenced by addDefaultsObject(), addLocatorItems(), addQuestion(), applyDefaultsObject(), backToRepositoryObject(), buildInputEditingType(), buildQuestionCreationForm(), certificateObject(), createQuestionPool(), createQuestionpoolTargetObject(), defaultsObject(), deleteDefaultsObject(), executeAfterQuestionCreationTasks(), executeAfterQuestionSaveTasks(), executeCommand(), exportLegacyLogsObject(), fetchAuthoringQuestionIdParameter(), forwardCommandToQuestion(), forwardCommandToQuestionPreview(), forwardToEvaluationGUI(), forwardToInfoScreen(), getQuestionsTableActions(), getTestScreenGUIInstance(), historyObject(), insertQuestionsObject(), questionsTabGatewayObject(), removeImportFailsObject(), setupToolBarAndMessage(), showEditTestPageGUI(), showQuestionsObject(), and trackTestObjectReadEvent().
|
private |
Definition at line 2703 of file class.ilObjTestGUI.php.
References ILIAS\Repository\access(), ILIAS\Repository\ctrl(), getTestObject(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\Repository\user().
Referenced by executeCommand().
ilObjTestGUI::historyObject | ( | ) |
Definition at line 1934 of file class.ilObjTestGUI.php.
References ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilObjectGUI\getRefId(), getTestObject(), ILIAS\Repository\lng(), redirectAfterMissingWrite(), SYSTEM_ROLE_ID, and ILIAS\Repository\toolbar().
|
protected |
Definition at line 1322 of file class.ilObjTestGUI.php.
References ILIAS\TestQuestionPool\Import\buildImportDirectoriesFromImportFile(), ILIAS\TestQuestionPool\Import\buildImportQuestionsSelectionForm(), ILIAS\TestQuestionPool\Import\buildResultsFilePath(), ilFileUtils\delDir(), ilObjectGUI\deleteUploadedImportFile(), exit, ILIAS\TestQuestionPool\Import\getImportTempDirectory(), ilQTIParser\IL_MO_VERIFY_QTI, importVerifiedFileObject(), ILIAS\Repository\lng(), null, ilObjTest\QUESTION_SET_TYPE_FIXED, and ilSession\set().
ilObjTestGUI::importVerifiedFileObject | ( | bool | $skip_retrieve_selected_questions = false | ) |
imports question(s) into the questionpool (after verification)
2025-03-22, sk: This is now only needed for legacy exports as now also exports with results do contain a manifest.xml.
Definition at line 1469 of file class.ilObjTestGUI.php.
References ILIAS\TestQuestionPool\Import\buildImportDirectoriesFromImportFile(), ilObjectGUI\checkPermissionBool(), ilSession\clear(), ILIAS\Repository\ctrl(), ilFileUtils\delDir(), ilObjectGUI\deleteUploadedImportFile(), ilSession\get(), ilImport\getMapping(), IL_INST_ID, ilImport\importObject(), ILIAS\Repository\lng(), ILIAS\TestQuestionPool\Import\retrieveSelectedQuestionsFromImportQuestionsSelectionForm(), ilSession\set(), and ILIAS\Repository\user().
Referenced by importFile().
|
private |
Definition at line 2169 of file class.ilObjTestGUI.php.
References ILIAS\Repository\ctrl().
|
private |
Definition at line 1659 of file class.ilObjTestGUI.php.
References ILIAS\Repository\ctrl(), getTestObject(), ILIAS\Repository\lng(), and protectByWritePermission().
Referenced by addQuestion().
|
private |
Definition at line 2160 of file class.ilObjTestGUI.php.
References ILIAS\Repository\ctrl().
Referenced by forwardToInfoScreen().
ilObjTestGUI::participantsActionObject | ( | ) |
Evaluates the actions on the participants page.
Definition at line 1992 of file class.ilObjTestGUI.php.
References ILIAS\Repository\ctrl().
|
private |
Definition at line 1899 of file class.ilObjTestGUI.php.
References ilToolbarGUI\addButton(), ilTestQuestionBrowserTableGUI\CMD_BROWSE_QUESTIONS, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilTestQuestionBrowserTableGUI\MODE_BROWSE_POOLS, ilTestQuestionBrowserTableGUI\MODE_BROWSE_TESTS, and ilTestQuestionBrowserTableGUI\MODE_PARAMETER.
Referenced by setupToolBarAndMessage().
|
private |
Definition at line 1310 of file class.ilObjTestGUI.php.
References ilObjectGUI\setLocator(), and ilObjectGUI\setTitleAndDescription().
Referenced by executeCommand().
|
protected |
Definition at line 2669 of file class.ilObjTestGUI.php.
References ILIAS\Repository\access(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by addDefaultsObject(), applyDefaultsObject(), confirmedApplyDefaultsObject(), createQuestionFormObject(), createQuestionPool(), createQuestionpoolTargetObject(), defaultsObject(), deleteDefaultsObject(), executeCommand(), exportLegacyLogsObject(), insertQuestionsObject(), and showQuestionsObject().
|
private |
Definition at line 1247 of file class.ilObjTestGUI.php.
References ILIAS\Repository\ctrl(), and getTestObject().
|
protected |
Definition at line 970 of file class.ilObjTestGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ROOT_FOLDER_ID.
Referenced by executeCommand(), and forwardToInfoScreen().
|
protected |
Definition at line 962 of file class.ilObjTestGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by createQuestionPoolAndCopyObject(), executeCommand(), and historyObject().
|
private |
Definition at line 1305 of file class.ilObjTestGUI.php.
References ILIAS\Repository\ctrl().
|
protected |
Definition at line 2305 of file class.ilObjTestGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Survey\Mode\getId(), and getTestObject().
ilObjTestGUI::retrieveAdditionalDidacticTemplateOptions | ( | ) |
Definition at line 1392 of file class.ilObjTestGUI.php.
References ILIAS\Repository\lng().
ilObjTestGUI::runObject | ( | ) |
Definition at line 1317 of file class.ilObjTestGUI.php.
References ILIAS\Repository\ctrl().
Referenced by ilObjTestGUITest\testRunObject().
ilObjTestGUI::setTestAccess | ( | ilTestAccess | $test_access | ) |
|
private |
Definition at line 1870 of file class.ilObjTestGUI.php.
References $message, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), getTestObject(), ILIAS\Repository\lng(), populateQuestionBrowserToolbarButtons(), and ILIAS\Repository\toolbar().
Referenced by showQuestionsObject().
|
private |
Definition at line 1256 of file class.ilObjTestGUI.php.
References ILIAS\Repository\ctrl(), getTestObject(), ilObjectGUI\prepareOutput(), and ILIAS\Repository\refinery().
Referenced by executeCommand().
|
private |
Definition at line 1191 of file class.ilObjTestGUI.php.
References ilAssQuestionPreviewGUI\CMD_SHOW, ILIAS\Repository\ctrl(), assQuestionGUI\editQuestion(), forwardCommandToQuestionPreview(), assQuestionGUI\getObject(), and ILIAS\Repository\lng().
Referenced by forwardCommandToQuestion().
ilObjTestGUI::showQuestionsObject | ( | ) |
Definition at line 1816 of file class.ilObjTestGUI.php.
References $table_query, addQuestion(), createQuestionpoolTargetObject(), ILIAS\Repository\ctrl(), getQuestionsTableActions(), getQuestionsTableQuery(), ILIAS\Test\Questions\Presentation\QuestionsTableQuery\getRowIds(), getTable(), ILIAS\Test\Questions\Presentation\QuestionsTableQuery\getTableAction(), getTestObject(), null, protectByWritePermission(), and setupToolBarAndMessage().
Referenced by addQuestion(), copyAndLinkQuestionsToPoolObject(), and forwardCommandToQuestion().
ilObjTestGUI::statisticsObject | ( | ) |
Definition at line 2382 of file class.ilObjTestGUI.php.
ilObjTestGUI::takenObject | ( | ) |
Definition at line 1930 of file class.ilObjTestGUI.php.
|
protected |
Definition at line 1213 of file class.ilObjTestGUI.php.
References ilChangeEvent\_recordReadEvent(), ILIAS\Survey\Mode\getId(), ilObjectGUI\getRefId(), getTestObject(), and ILIAS\Repository\user().
Referenced by executeCommand(), and forwardToInfoScreen().
|
private |
Definition at line 149 of file class.ilObjTestGUI.php.
|
protected |
Definition at line 140 of file class.ilObjTestGUI.php.
Referenced by executeCommand().
|
protected |
Definition at line 139 of file class.ilObjTestGUI.php.
|
private |
Definition at line 143 of file class.ilObjTestGUI.php.
|
protected |
Definition at line 161 of file class.ilObjTestGUI.php.
|
protected |
Definition at line 158 of file class.ilObjTestGUI.php.
Referenced by executeCommand().
|
protected |
Definition at line 141 of file class.ilObjTestGUI.php.
Referenced by executeCommand(), and forwardToInfoScreen().
|
private |
Definition at line 127 of file class.ilObjTestGUI.php.
Referenced by executeCommand().
|
private |
Definition at line 128 of file class.ilObjTestGUI.php.
|
protected |
Definition at line 145 of file class.ilObjTestGUI.php.
Referenced by forwardCommandToQuestionPreview().
|
protected |
Definition at line 144 of file class.ilObjTestGUI.php.
|
protected |
Definition at line 148 of file class.ilObjTestGUI.php.
|
protected |
Definition at line 138 of file class.ilObjTestGUI.php.
|
protected |
Definition at line 146 of file class.ilObjTestGUI.php.
|
private |
Definition at line 136 of file class.ilObjTestGUI.php.
Referenced by getObjectiveOrientedContainer().
|
private |
Definition at line 132 of file class.ilObjTestGUI.php.
|
protected |
Definition at line 152 of file class.ilObjTestGUI.php.
Referenced by executeCommand().
|
private |
Definition at line 133 of file class.ilObjTestGUI.php.
|
private |
Definition at line 130 of file class.ilObjTestGUI.php.
|
protected |
Definition at line 151 of file class.ilObjTestGUI.php.
Referenced by executeCommand().
|
protected |
Definition at line 153 of file class.ilObjTestGUI.php.
Referenced by executeCommand().
|
protected |
Definition at line 154 of file class.ilObjTestGUI.php.
Referenced by executeCommand().
|
protected |
Definition at line 147 of file class.ilObjTestGUI.php.
|
protected |
Definition at line 157 of file class.ilObjTestGUI.php.
Referenced by getQuestionsTableActions().
|
protected |
Definition at line 156 of file class.ilObjTestGUI.php.
Referenced by getQuestionsTableQuery(), getTargetQuestionpoolForm(), and showQuestionsObject().
|
protected |
Definition at line 135 of file class.ilObjTestGUI.php.
Referenced by executeCommand().
|
protected |
Definition at line 159 of file class.ilObjTestGUI.php.
|
protected |
Definition at line 137 of file class.ilObjTestGUI.php.
Referenced by executeCommand(), getTestAccess(), and setTestAccess().
|
protected |
Definition at line 155 of file class.ilObjTestGUI.php.
Referenced by executeCommand().
|
private |
Definition at line 125 of file class.ilObjTestGUI.php.
|
private |
Definition at line 124 of file class.ilObjTestGUI.php.
|
private |
Definition at line 129 of file class.ilObjTestGUI.php.
Referenced by getTable().
|
private |
Definition at line 126 of file class.ilObjTestGUI.php.
|
protected |
Definition at line 150 of file class.ilObjTestGUI.php.
Referenced by executeCommand().
|
private |
Definition at line 134 of file class.ilObjTestGUI.php.
Referenced by getTable().
|
private |
Definition at line 131 of file class.ilObjTestGUI.php.
|
protected |
Definition at line 142 of file class.ilObjTestGUI.php.
Referenced by executeCommand().
|
private |
Definition at line 116 of file class.ilObjTestGUI.php.
|
private |
Definition at line 122 of file class.ilObjTestGUI.php.
|
private |
Definition at line 121 of file class.ilObjTestGUI.php.
|
private |
Definition at line 120 of file class.ilObjTestGUI.php.
|
private |
Definition at line 114 of file class.ilObjTestGUI.php.
const ilObjTestGUI::SHOW_QUESTIONS_CMD = 'showQuestions' |
Definition at line 113 of file class.ilObjTestGUI.php.
Referenced by ilAssQuestionPageCommandForwarder\forward(), ILIAS\Test\Presentation\TabsManager\getBrowseForQuestionsTab(), ILIAS\Test\Presentation\TabsManager\getQuestionsSubTabs(), ILIAS\Test\Presentation\TabsManager\getRandomQuestionsTab(), ilTestQuestionBrowserTableGUI\handleTabs(), ilTestQuestionBrowserTableGUI\handleWriteAccess(), ilTestQuestionBrowserTableGUI\insertQuestionsCmd(), ILIAS\Test\Questions\Presentation\Printer\printAnswers(), ILIAS\Test\Questions\Presentation\Printer\printSelectedQuestions(), ILIAS\Test\Presentation\TabsManager\setupTabsGuiConfig(), and ilObjTestGUITest\testCancelCreateQuestionObject().