ILIAS
trunk Revision v11.0_alpha-1851-ga8564da6fed
|
Public Member Functions | |
__construct (private readonly ilCtrl $ctrl, private readonly ilRbacSystem $rbac_system, private ilTabsGUI $tabs, private ilToolbarGUI $toolbar, private ilGlobalTemplateInterface $tpl, private readonly UIFactory $ui_factory, private readonly ilLanguage $lng, private readonly ilDBInterface $db, private readonly RandomGroup $random_group, private readonly GlobalScreen $global_screen, private readonly HTTPServices $http, private readonly Refinery $refinery, private readonly int $parent_obj_ref_id) | |
setInfoMessage (string $message) | |
setPrimaryCmd (string $label, string $cmd) | |
addAdditionalCmd (string $label, string $cmd) | |
getQuestion () | |
getObject () | |
initQuestion (assQuestionGUI $question_gui, int $parent_obj_id) | |
initPreviewSettings (int $parent_ref_id) | |
initPreviewSession (int $user_id, int $question_id) | |
initHintTracking () | |
initStyleSheets () | |
executeCommand () | |
showCmd (string $commands_panel_html='') | |
assessmentCmd () | |
handleInstantResponseRendering (ilTemplate $tpl) | |
resetCmd () | |
instantResponseCmd () | |
handleQuestionActionCmd () | |
saveQuestionSolution () | |
gatewayConfirmHintRequestCmd () | |
gatewayShowHintListCmd () | |
Data Fields | |
const | CMD_SHOW = 'show' |
const | CMD_RESET = 'reset' |
const | CMD_STATISTICS = 'assessment' |
const | CMD_INSTANT_RESPONSE = 'instantResponse' |
const | CMD_HANDLE_QUESTION_ACTION = 'handleQuestionAction' |
const | CMD_GATEWAY_CONFIRM_HINT_REQUEST = 'gatewayConfirmHintRequest' |
const | CMD_GATEWAY_SHOW_HINT_LIST = 'gatewayShowHintList' |
const | TAB_ID_QUESTION = 'question' |
const | FEEDBACK_FOCUS_ANCHOR = 'focus' |
Protected Member Functions | |
buildPreviewFormAction () | |
isCommentingRequired () | |
populateReachedPointsOutput (ilTemplate $tpl) | |
populateInstantResponseHeader (ilTemplate $tpl, $withFocusAnchor) | |
populateInstantResponseMessage (ilTemplate $tpl, string $a_message) | |
populateCommentsPanel (ilTemplate $tpl, string $comments_panel_html) | |
Protected Attributes | |
readonly RequestDataCollector | $request_data_collector |
Private Member Functions | |
populateToolbar () | |
populateQuestionOutput (ilTemplate $tpl) | |
populateSolutionOutput (ilTemplate $tpl) | |
getQuestionNavigationHtml () | |
populateGenericQuestionFeedback (ilTemplate $tpl) | |
Populate the block for an instant generic feedback. More... | |
populateSpecificQuestionFeedback (ilTemplate $tpl) | |
Populate the block for an instant specific feedback. More... | |
isShowBestSolutionRequired () | |
isShowGenericQuestionFeedbackRequired () | |
isShowSpecificQuestionFeedbackRequired () | |
isShowReachedPointsRequired () | |
getQuestionAnswerShuffler () | |
Private Attributes | |
assQuestionGUI | $question_gui = null |
assQuestion | $question_obj = null |
ilAssQuestionPreviewSettings | $preview_settings = null |
ilAssQuestionPreviewSession | $preview_session = null |
ilAssQuestionPreviewHintTracking | $hint_tracking = null |
string | $info_message = null |
array | $primary_cmd = [] |
array | $additional_cmds = [] |
Definition at line 45 of file class.ilAssQuestionPreviewGUI.php.
ilAssQuestionPreviewGUI::__construct | ( | private readonly ilCtrl | $ctrl, |
private readonly ilRbacSystem | $rbac_system, | ||
private ilTabsGUI | $tabs, | ||
private ilToolbarGUI | $toolbar, | ||
private ilGlobalTemplateInterface | $tpl, | ||
private readonly UIFactory | $ui_factory, | ||
private readonly ilLanguage | $lng, | ||
private readonly ilDBInterface | $db, | ||
private readonly RandomGroup | $random_group, | ||
private readonly GlobalScreen | $global_screen, | ||
private readonly HTTPServices | $http, | ||
private readonly Refinery | $refinery, | ||
private readonly int | $parent_obj_ref_id | ||
) |
Definition at line 79 of file class.ilAssQuestionPreviewGUI.php.
References ilObjStyleSheet\getContentStylePath(), and ilObjStyleSheet\getSyntaxStylePath().
ilAssQuestionPreviewGUI::addAdditionalCmd | ( | string | $label, |
string | $cmd | ||
) |
Definition at line 111 of file class.ilAssQuestionPreviewGUI.php.
ilAssQuestionPreviewGUI::assessmentCmd | ( | ) |
Definition at line 266 of file class.ilAssQuestionPreviewGUI.php.
References ILIAS\Repository\tabs().
|
protected |
Definition at line 230 of file class.ilAssQuestionPreviewGUI.php.
References ILIAS\Repository\ctrl().
Referenced by showCmd().
ilAssQuestionPreviewGUI::executeCommand | ( | ) |
Definition at line 187 of file class.ilAssQuestionPreviewGUI.php.
References $DIC, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), showCmd(), and ILIAS\Repository\tabs().
ilAssQuestionPreviewGUI::gatewayConfirmHintRequestCmd | ( | ) |
Definition at line 576 of file class.ilAssQuestionPreviewGUI.php.
References ilAssQuestionHintRequestGUI\CMD_CONFIRM_REQUEST, ILIAS\Repository\ctrl(), saveQuestionSolution(), and showCmd().
ilAssQuestionPreviewGUI::gatewayShowHintListCmd | ( | ) |
Definition at line 590 of file class.ilAssQuestionPreviewGUI.php.
References ilAssQuestionHintRequestGUI\CMD_SHOW_LIST, ILIAS\Repository\ctrl(), saveQuestionSolution(), and showCmd().
ilAssQuestionPreviewGUI::getObject | ( | ) |
Definition at line 121 of file class.ilAssQuestionPreviewGUI.php.
References $question_obj.
ilAssQuestionPreviewGUI::getQuestion | ( | ) |
Definition at line 116 of file class.ilAssQuestionPreviewGUI.php.
References $question_obj.
|
private |
Definition at line 607 of file class.ilAssQuestionPreviewGUI.php.
Referenced by populateQuestionOutput().
|
private |
Definition at line 455 of file class.ilAssQuestionPreviewGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by populateQuestionOutput().
ilAssQuestionPreviewGUI::handleInstantResponseRendering | ( | ilTemplate | $tpl | ) |
Definition at line 272 of file class.ilAssQuestionPreviewGUI.php.
References isShowBestSolutionRequired(), isShowGenericQuestionFeedbackRequired(), isShowReachedPointsRequired(), isShowSpecificQuestionFeedbackRequired(), ILIAS\Repository\lng(), populateGenericQuestionFeedback(), populateInstantResponseHeader(), populateInstantResponseMessage(), populateReachedPointsOutput(), populateSolutionOutput(), and populateSpecificQuestionFeedback().
Referenced by showCmd().
ilAssQuestionPreviewGUI::handleQuestionActionCmd | ( | ) |
Definition at line 355 of file class.ilAssQuestionPreviewGUI.php.
References ILIAS\Repository\ctrl().
ilAssQuestionPreviewGUI::initHintTracking | ( | ) |
Definition at line 171 of file class.ilAssQuestionPreviewGUI.php.
ilAssQuestionPreviewGUI::initPreviewSession | ( | int | $user_id, |
int | $question_id | ||
) |
Definition at line 165 of file class.ilAssQuestionPreviewGUI.php.
ilAssQuestionPreviewGUI::initPreviewSettings | ( | int | $parent_ref_id | ) |
Definition at line 158 of file class.ilAssQuestionPreviewGUI.php.
ilAssQuestionPreviewGUI::initQuestion | ( | assQuestionGUI | $question_gui, |
int | $parent_obj_id | ||
) |
Definition at line 126 of file class.ilAssQuestionPreviewGUI.php.
References $question_gui, ILIAS\Repository\ctrl(), assQuestionGUI\getObject(), assQuestionGUI\RENDER_PURPOSE_DEMOPLAY, and ILIAS\Repository\tabs().
ilAssQuestionPreviewGUI::initStyleSheets | ( | ) |
Definition at line 176 of file class.ilAssQuestionPreviewGUI.php.
References ilObjStyleSheet\getContentStylePath(), and ilObjStyleSheet\getSyntaxStylePath().
ilAssQuestionPreviewGUI::instantResponseCmd | ( | ) |
Definition at line 344 of file class.ilAssQuestionPreviewGUI.php.
References ILIAS\Repository\ctrl(), and saveQuestionSolution().
|
protected |
Definition at line 235 of file class.ilAssQuestionPreviewGUI.php.
Referenced by showCmd().
|
private |
Definition at line 535 of file class.ilAssQuestionPreviewGUI.php.
Referenced by handleInstantResponseRendering().
|
private |
Definition at line 544 of file class.ilAssQuestionPreviewGUI.php.
Referenced by handleInstantResponseRendering().
|
private |
Definition at line 562 of file class.ilAssQuestionPreviewGUI.php.
Referenced by handleInstantResponseRendering().
|
private |
Definition at line 553 of file class.ilAssQuestionPreviewGUI.php.
Referenced by handleInstantResponseRendering(), and populateQuestionOutput().
|
protected |
Definition at line 615 of file class.ilAssQuestionPreviewGUI.php.
References ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by showCmd().
|
private |
Populate the block for an instant generic feedback.
Definition at line 476 of file class.ilAssQuestionPreviewGUI.php.
References ilAssQuestionFeedback\CSS_CLASS_FEEDBACK_CORRECT, ilAssQuestionFeedback\CSS_CLASS_FEEDBACK_WRONG, ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by handleInstantResponseRendering().
|
protected |
Definition at line 515 of file class.ilAssQuestionPreviewGUI.php.
References ILIAS\Repository\lng(), ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by handleInstantResponseRendering().
|
protected |
Definition at line 528 of file class.ilAssQuestionPreviewGUI.php.
References ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by handleInstantResponseRendering().
|
private |
Definition at line 386 of file class.ilAssQuestionPreviewGUI.php.
References ILIAS\Repository\ctrl(), getQuestionAnswerShuffler(), getQuestionNavigationHtml(), isShowSpecificQuestionFeedbackRequired(), ilPageObjectGUI\setRenderPageContainer(), HTML_Template_IT\setVariable(), and ILIAS\Repository\tabs().
Referenced by showCmd().
|
protected |
Definition at line 416 of file class.ilAssQuestionPreviewGUI.php.
References ILIAS\Repository\lng(), ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by handleInstantResponseRendering().
|
private |
Definition at line 432 of file class.ilAssQuestionPreviewGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), null, ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), ilPageObjectGUI\setEditPreview(), and HTML_Template_IT\setVariable().
Referenced by handleInstantResponseRendering().
|
private |
Populate the block for an instant specific feedback.
Definition at line 500 of file class.ilAssQuestionPreviewGUI.php.
References ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by handleInstantResponseRendering().
|
private |
Definition at line 361 of file class.ilAssQuestionPreviewGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\toolbar().
Referenced by showCmd().
ilAssQuestionPreviewGUI::resetCmd | ( | ) |
Definition at line 332 of file class.ilAssQuestionPreviewGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and null.
ilAssQuestionPreviewGUI::saveQuestionSolution | ( | ) |
Definition at line 571 of file class.ilAssQuestionPreviewGUI.php.
Referenced by gatewayConfirmHintRequestCmd(), gatewayShowHintListCmd(), and instantResponseCmd().
ilAssQuestionPreviewGUI::setInfoMessage | ( | string | $message | ) |
Definition at line 101 of file class.ilAssQuestionPreviewGUI.php.
References $message.
Referenced by ilObjTestGUI\forwardCommandToQuestionPreview().
ilAssQuestionPreviewGUI::setPrimaryCmd | ( | string | $label, |
string | $cmd | ||
) |
Definition at line 106 of file class.ilAssQuestionPreviewGUI.php.
ilAssQuestionPreviewGUI::showCmd | ( | string | $commands_panel_html = '' | ) |
Definition at line 241 of file class.ilAssQuestionPreviewGUI.php.
References buildPreviewFormAction(), assQuestionGUI\CMD_SYNC_QUESTION_AND_RETURN, handleInstantResponseRendering(), isCommentingRequired(), null, populateCommentsPanel(), populateQuestionOutput(), and populateToolbar().
Referenced by executeCommand(), gatewayConfirmHintRequestCmd(), and gatewayShowHintListCmd().
|
private |
Definition at line 77 of file class.ilAssQuestionPreviewGUI.php.
|
private |
Definition at line 65 of file class.ilAssQuestionPreviewGUI.php.
|
private |
Definition at line 67 of file class.ilAssQuestionPreviewGUI.php.
|
private |
Definition at line 64 of file class.ilAssQuestionPreviewGUI.php.
|
private |
Definition at line 63 of file class.ilAssQuestionPreviewGUI.php.
|
private |
Definition at line 72 of file class.ilAssQuestionPreviewGUI.php.
|
private |
Definition at line 61 of file class.ilAssQuestionPreviewGUI.php.
Referenced by initQuestion().
|
private |
Definition at line 62 of file class.ilAssQuestionPreviewGUI.php.
Referenced by getObject(), and getQuestion().
|
protected |
Definition at line 59 of file class.ilAssQuestionPreviewGUI.php.
const ilAssQuestionPreviewGUI::CMD_GATEWAY_CONFIRM_HINT_REQUEST = 'gatewayConfirmHintRequest' |
Definition at line 52 of file class.ilAssQuestionPreviewGUI.php.
const ilAssQuestionPreviewGUI::CMD_GATEWAY_SHOW_HINT_LIST = 'gatewayShowHintList' |
Definition at line 53 of file class.ilAssQuestionPreviewGUI.php.
const ilAssQuestionPreviewGUI::CMD_HANDLE_QUESTION_ACTION = 'handleQuestionAction' |
Definition at line 51 of file class.ilAssQuestionPreviewGUI.php.
const ilAssQuestionPreviewGUI::CMD_INSTANT_RESPONSE = 'instantResponse' |
Definition at line 50 of file class.ilAssQuestionPreviewGUI.php.
const ilAssQuestionPreviewGUI::CMD_RESET = 'reset' |
Definition at line 48 of file class.ilAssQuestionPreviewGUI.php.
const ilAssQuestionPreviewGUI::CMD_SHOW = 'show' |
Definition at line 47 of file class.ilAssQuestionPreviewGUI.php.
Referenced by assQuestionGUI\addBackTab(), ILIAS\Test\StaticURLHandler\buildQuestionURL(), ilObjTestGUI\executeCommand(), ilQuestionBrowserTableGUI\fillRow(), ilAssQuestionPageGUI\finishEditing(), ilAssQuestionPageCommandForwarder\forward(), ILIAS\Test\Questions\Presentation\QuestionsTableActions\handleCommand(), assQuestionGUI\saveReturn(), and ilObjTestGUI\showNextViewAfterQuestionSave().
const ilAssQuestionPreviewGUI::CMD_STATISTICS = 'assessment' |
Definition at line 49 of file class.ilAssQuestionPreviewGUI.php.
Referenced by ilQuestionBrowserTableGUI\fillRow(), and ILIAS\Test\Questions\Presentation\QuestionsTableActions\handleCommand().
const ilAssQuestionPreviewGUI::FEEDBACK_FOCUS_ANCHOR = 'focus' |
Definition at line 57 of file class.ilAssQuestionPreviewGUI.php.
const ilAssQuestionPreviewGUI::TAB_ID_QUESTION = 'question' |
Definition at line 55 of file class.ilAssQuestionPreviewGUI.php.