ILIAS
release_8 Revision v8.19
|
Public Member Functions | |
__construct ($id=-1) | |
getCommand ($cmd) | |
writeQuestionSpecificPostData (ilPropertyFormGUI $form) | |
Extracts the question specific values from $_POST and applies them to the data object. More... | |
populateQuestionSpecificFormPart (ilPropertyFormGUI $form) | |
populateAnswerSpecificFormPart (ilPropertyFormGUI $form) | |
getSolutionOutput ( $active_id, $pass=null, $graphicalOutput=false, $result_output=false, $show_question_only=true, $show_feedback=false, $show_correct_solution=false, $show_manual_scoring=false, $show_question_text=true) | |
Get the question solution output. More... | |
getPreview ($show_question_only=false, $showInlineFeedback=false) | |
getTestOutput ( $active_id, $pass, $is_postponed=false, $use_post_solutions=false, $show_feedback=false) | |
getSpecificFeedbackOutput (array $userSolution) | |
getAfterParticipationSuppressionQuestionPostVars () | |
Returns a list of postvars which will be suppressed in the form output when used in scoring adjustment. More... | |
getAggregatedAnswersView (array $relevant_answers) | |
Returns an html string containing a question specific representation of the answers so far given in the test for use in the right column in the scoring adjustment user interface. More... | |
getLongMenuTextWithInputFieldsInsteadOfGaps ($user_solution=array(), $solution=false, $graphical=false) | |
getSubQuestionsIndex () | |
getAnswersFrequency ($relevantAnswers, $questionIndex) | |
getAnswerFrequencyTableGUI ($parentGui, $parentCmd, $relevantAnswers, $questionIndex) | |
populateCorrectionsFormProperties (ilPropertyFormGUI $form) | |
saveCorrectionsFormProperties (ilPropertyFormGUI $form) | |
![]() | |
hasInlineFeedback () | |
addHeaderAction () | |
redrawHeaderAction () | |
getHeaderAction () | |
getNotesHTML () | |
executeCommand () | |
getType () | |
needed for page editor compliance More... | |
getPresentationContext () | |
setPresentationContext (string $presentationContext) | |
isTestPresentationContext () | |
isPreviousSolutionPrefilled () | |
setPreviousSolutionPrefilled (bool $previousSolutionPrefilled) | |
getRenderPurpose () | |
setRenderPurpose (string $renderPurpose) | |
isRenderPurposePrintPdf () | |
isRenderPurposePreview () | |
isRenderPurposeInputValue () | |
isRenderPurposePlayback () | |
isRenderPurposeDemoplay () | |
renderPurposeSupportsFormHtml () | |
getEditContext () | |
setEditContext (string $editContext) | |
isAuthoringEditContext () | |
isAdjustmentEditContext () | |
setAdjustmentEditContext () | |
getNavigationGUI () | |
setNavigationGUI (?ilTestQuestionNavigationGUI $navigationGUI) | |
setTaxonomyIds (array $taxonomyIds) | |
getTaxonomyIds () | |
setTargetGui ($linkTargetGui) | |
setTargetGuiClass ($targetGuiClass) | |
getTargetGuiClass () | |
setQuestionHeaderBlockBuilder (\ilQuestionHeaderBlockBuilder $questionHeaderBlockBuilder) | |
getQuestionHeaderBlockBuilder () | |
setQuestionActionCmd (string $questionActionCmd) | |
getQuestionActionCmd () | |
assessment () | |
populateJavascriptFilesRequiredForWorkForm (ilGlobalTemplateInterface $tpl) | |
getPresentationJavascripts () | |
getQuestionTemplate () | |
getILIASPage (string $html="") | |
Returns the ILIAS Page around a question. More... | |
outQuestionPage ($a_temp_var, $a_postponed=false, $active_id="", $html="", $inlineFeedbackEnabled=false) | |
cancel () | |
originalSyncForm (string $return_to="", string $return_to_feedback='') | |
sync () | |
cancelSync () | |
saveEdit () | |
save () | |
saveReturn () | |
apply () | |
getContextPath ($cont_obj, int $a_endnode_id, int $a_startnode_id=1) | |
get context path in content object tree More... | |
setSequenceNumber (int $nr) | |
getSequenceNumber () | |
setQuestionCount (int $a_question_count) | |
getQuestionCount () | |
getErrorMessage () | |
setErrorMessage (string $errormessage) | |
addErrorMessage (string $errormessage) | |
outAdditionalOutput () | |
Why are you here? Some magic for plugins? More... | |
getQuestionType () | |
getAsValueAttribute (string $a_value) | |
addNewIdListener ($a_object, string $a_method, string $a_parameters="") | |
Add a listener that is notified with the new question ID, when a new question is saved. More... | |
callNewIdListeners (int $a_new_id) | |
addQuestionFormCommandButtons (ilPropertyFormGUI $form) | |
addBasicQuestionFormProperties (ilPropertyFormGUI $form) | |
getGenericFeedbackOutput (int $active_id, ?int $pass) | |
getGenericFeedbackOutputForCorrectSolution () | |
getGenericFeedbackOutputForIncorrectSolution () | |
getSpecificFeedbackOutput (array $userSolution) | |
Returns the answer specific feedback for the question. More... | |
outQuestionType () | |
suggestedsolution () | |
outSolutionExplorer () | |
saveSuggestedSolutionType () | |
cancelExplorer () | |
outPageSelector () | |
outChapterSelector () | |
outGlossarySelector () | |
linkChilds () | |
addPG () | |
addST () | |
addGIT () | |
isSaveCommand () | |
setQuestionTabs () | |
addTab_SuggestedSolution (ilTabsGUI $tabs, string $classname) | |
getEditQuestionTabCommands () | |
getSolutionOutput ( $active_id, $pass=null, $graphicalOutput=false, $result_output=false, $show_question_only=true, $show_feedback=false, $show_correct_solution=false, $show_manual_scoring=false, $show_question_text=true) | |
isAutosaveable () | |
getPreview ($show_question_only=false, $showInlineFeedback=false) | |
outQuestionForTest (string $formaction, int $active_id, ?int $pass, bool $is_question_postponed=false, $user_post_solutions=false, bool $show_specific_inline_feedback=false) | |
magicAfterTestOutput () | |
getTestOutput ( $active_id, $pass, $is_question_postponed, $user_post_solutions, $show_specific_inline_feedback) | |
getFormEncodingType () | |
setPreviewSession (ilAssQuestionPreviewSession $previewSession) | |
getPreviewSession () | |
showHints () | |
buildFocusAnchorHtml () | |
isAnswerFrequencyStatisticSupported () | |
getSubQuestionsIndex () | |
getAnswersFrequency ($relevantAnswers, $questionIndex) | |
getAnswerFrequencyTableGUI ($parentGui, $parentCmd, $relevantAnswers, $questionIndex) | |
prepareReprintableCorrectionsForm (ilPropertyFormGUI $form) | |
populateCorrectionsFormProperties (ilPropertyFormGUI $form) | |
saveCorrectionsFormProperties (ilPropertyFormGUI $form) | |
Private Member Functions | |
verifyAnswerOptions () | |
stripSlashesRecursive (array $data) | |
trimArrayRecursive (array $data) | |
getTextGapTemplate ($key, $value, $solution, $ok=false, $graphical=false) | |
getSelectGapTemplate ($key, $answers, $user_value, $solution, $ok=false, $graphical=false) | |
Private Attributes | |
$ilTabs | |
Additional Inherited Members | |
![]() | |
static | _getQuestionGUI (string $question_type='', int $question_id=-1) |
Creates a question gui representation and returns the alias to the question gui. More... | |
static | _getGUIClassNameForId ($a_q_id) |
static | _getClassNameForQType ($q_type) |
static | getCommandsFromClassConstants (string $guiClassName, string $cmdConstantNameBegin='CMD_') |
static | prepareTextareaOutput ($txt_output, $prepare_for_latex_output=false, $omitNl2BrWhenTextArea=false) |
Prepares a string for a text area output where latex code may be in it If the text is HTML-free, CHR(13) will be converted to a line break. More... | |
![]() | |
const | FORM_MODE_EDIT = 'edit' |
const | FORM_MODE_ADJUST = 'adjust' |
const | FORM_ENCODING_URLENCODE = 'application/x-www-form-urlencoded' |
const | FORM_ENCODING_MULTIPART = 'multipart/form-data' |
const | CORRECTNESS_NOT_OK = 0 |
const | CORRECTNESS_MOSTLY_OK = 1 |
const | CORRECTNESS_OK = 2 |
const | ALLOWED_PLAIN_TEXT_TAGS = "<em>, <strong>" |
sk - 12.05.2023: This const is also used in ilKprimChoiceWizardInputGUI. More... | |
const | SESSION_PREVIEW_DATA_BASE_INDEX = 'ilAssQuestionPreviewAnswers' |
assQuestion | $object |
ilGlobalPageTemplate | $tpl |
ilLanguage | $lng |
$error | |
string | $errormessage |
int | $sequence_no |
sequence number in test More... | |
int | $question_count |
question count in test More... | |
const | PRESENTATION_CONTEXT_TEST = 'pContextTest' |
const | PRESENTATION_CONTEXT_RESULTS = 'pContextResults' |
const | RENDER_PURPOSE_PLAYBACK = 'renderPurposePlayback' |
const | RENDER_PURPOSE_DEMOPLAY = 'renderPurposeDemoplay' |
const | RENDER_PURPOSE_PREVIEW = 'renderPurposePreview' |
const | RENDER_PURPOSE_PRINT_PDF = 'renderPurposePrintPdf' |
const | RENDER_PURPOSE_INPUT_VALUE = 'renderPurposeInputValue' |
const | EDIT_CONTEXT_AUTHORING = 'authoring' |
const | EDIT_CONTEXT_ADJUSTMENT = 'adjustment' |
![]() | |
const | SUGGESTED_SOLUTION_COMMANDS |
const | HAS_SPECIAL_QUESTION_COMMANDS = false |
ILIAS Notes GUIService | $notes_gui |
ilCtrl | $ctrl |
ilPropertyFormGUI | $editForm |
ILIAS TestQuestionPool InternalRequestService | $request |
Definition at line 28 of file class.assLongMenuGUI.php.
assLongMenuGUI::__construct | ( | $id = -1 | ) |
Definition at line 32 of file class.assLongMenuGUI.php.
References $DIC, $id, $ilTabs, assQuestionGUI\$lng, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\lng().
|
protected |
Definition at line 171 of file class.assLongMenuGUI.php.
References assQuestionGUI\addBasicQuestionFormProperties(), assQuestionGUI\addQuestionFormCommandButtons(), assQuestionGUI\buildBasicEditFormObject(), populateQuestionSpecificFormPart(), and assQuestionGUI\populateTaxonomyFormSection().
Referenced by editQuestion(), and writePostData().
|
protected |
Definition at line 158 of file class.assLongMenuGUI.php.
References buildEditForm(), ILIAS\Repository\ctrl(), and assQuestionGUI\getQuestionTemplate().
Referenced by writePostData().
assLongMenuGUI::getAfterParticipationSuppressionQuestionPostVars | ( | ) |
Returns a list of postvars which will be suppressed in the form output when used in scoring adjustment.
The form elements will be shown disabled, so the users see the usual form but can only edit the settings, which make sense in the given context.
E.g. array('cloze_type', 'image_filename')
Implements ilGuiQuestionScoringAdjustable.
Definition at line 476 of file class.assLongMenuGUI.php.
assLongMenuGUI::getAggregatedAnswersView | ( | array | $relevant_answers | ) |
Returns an html string containing a question specific representation of the answers so far given in the test for use in the right column in the scoring adjustment user interface.
array | $relevant_answers |
Implements ilGuiQuestionScoringAdjustable.
Definition at line 487 of file class.assLongMenuGUI.php.
References ILIAS\LTI\ToolProvider\$key, assQuestionGUI\$tpl, ilGlobalPageTemplate\get(), ILIAS\Repository\object(), ilGlobalPageTemplate\parseCurrentBlock(), and ilGlobalPageTemplate\setVariable().
assLongMenuGUI::getAnswerFrequencyTableGUI | ( | $parentGui, | |
$parentCmd, | |||
$relevantAnswers, | |||
$questionIndex | |||
) |
assLongMenuGUI::getAnswersFrequency | ( | $relevantAnswers, | |
$questionIndex | |||
) |
Definition at line 620 of file class.assLongMenuGUI.php.
assLongMenuGUI::getCommand | ( | $cmd | ) |
Definition at line 66 of file class.assLongMenuGUI.php.
assLongMenuGUI::getLongMenuTextWithInputFieldsInsteadOfGaps | ( | $user_solution = array() , |
|
$solution = false , |
|||
$graphical = false |
|||
) |
Definition at line 519 of file class.assLongMenuGUI.php.
References ILIAS\LTI\ToolProvider\$key, assLongMenu\ANSWER_TYPE_SELECT_VAL, assLongMenu\ANSWER_TYPE_TEXT_VAL, assLongMenu\GAP_PLACEHOLDER, getSelectGapTemplate(), getTextGapTemplate(), ILIAS\Repository\lng(), and ILIAS\Repository\object().
Referenced by getSolutionOutput(), and getTemplateForPreviewAndTest().
assLongMenuGUI::getPreview | ( | $show_question_only = false , |
|
$showInlineFeedback = false |
|||
) |
Definition at line 389 of file class.assLongMenuGUI.php.
References assQuestionGUI\getILIASPage(), assQuestionGUI\getPreviewSession(), and getTemplateForPreviewAndTest().
|
private |
Definition at line 580 of file class.assLongMenuGUI.php.
References ILIAS\LTI\ToolProvider\$key, assQuestionGUI\$tpl, assQuestionGUI\generateCorrectnessIconsForCorrectness(), ilGlobalPageTemplate\get(), ILIAS\Repository\lng(), ilGlobalPageTemplate\parseCurrentBlock(), ilGlobalPageTemplate\setCurrentBlock(), and ilGlobalPageTemplate\setVariable().
Referenced by getLongMenuTextWithInputFieldsInsteadOfGaps().
assLongMenuGUI::getSolutionOutput | ( | $active_id, | |
$pass = null , |
|||
$graphicalOutput = false , |
|||
$result_output = false , |
|||
$show_question_only = true , |
|||
$show_feedback = false , |
|||
$show_correct_solution = false , |
|||
$show_manual_scoring = false , |
|||
$show_question_text = true |
|||
) |
Get the question solution output.
integer | $active_id | The active user id |
integer | $pass | The test pass |
boolean | $graphicalOutput | Show visual feedback for right/wrong answers |
boolean | $result_output | Show the reached points for parts of the question |
boolean | $show_question_only | Show the question without the ILIAS content around |
boolean | $show_feedback | Show the question feedback |
boolean | $show_correct_solution | Show the correct solution instead of the user solution |
boolean | $show_manual_scoring | Show specific information for the manual scoring output |
Definition at line 334 of file class.assLongMenuGUI.php.
References ilAssQuestionFeedback\CSS_CLASS_FEEDBACK_CORRECT, ilAssQuestionFeedback\CSS_CLASS_FEEDBACK_WRONG, assQuestionGUI\getGenericFeedbackOutput(), assQuestionGUI\getILIASPage(), getLongMenuTextWithInputFieldsInsteadOfGaps(), getSpecificFeedbackOutput(), getUserSolution(), assQuestionGUI\hasCorrectSolution(), assQuestionGUI\isTestPresentationContext(), and ILIAS\Repository\object().
assLongMenuGUI::getSpecificFeedbackOutput | ( | array | $userSolution | ) |
Definition at line 441 of file class.assLongMenuGUI.php.
References $index, assLongMenu\GAP_PLACEHOLDER, and ILIAS\Repository\object().
Referenced by getSolutionOutput().
assLongMenuGUI::getSubQuestionsIndex | ( | ) |
Definition at line 615 of file class.assLongMenuGUI.php.
References ILIAS\Repository\object().
|
protected |
Definition at line 427 of file class.assLongMenuGUI.php.
References getLongMenuTextWithInputFieldsInsteadOfGaps(), and ILIAS\Repository\object().
Referenced by getPreview(), and getTestOutput().
assLongMenuGUI::getTestOutput | ( | $active_id, | |
$pass, | |||
$is_postponed = false , |
|||
$use_post_solutions = false , |
|||
$show_feedback = false |
|||
) |
Definition at line 403 of file class.assLongMenuGUI.php.
References getTemplateForPreviewAndTest(), and assQuestionGUI\outQuestionPage().
|
private |
Definition at line 557 of file class.assLongMenuGUI.php.
References ILIAS\LTI\ToolProvider\$key, assQuestionGUI\$tpl, assQuestionGUI\generateCorrectnessIconsForCorrectness(), ilGlobalPageTemplate\get(), and ilGlobalPageTemplate\setVariable().
Referenced by getLongMenuTextWithInputFieldsInsteadOfGaps().
|
protected |
$active_id | |
$pass |
Definition at line 52 of file class.assLongMenuGUI.php.
Referenced by getSolutionOutput().
assLongMenuGUI::populateAnswerSpecificFormPart | ( | ilPropertyFormGUI | $form | ) |
ilPropertyFormGUI | $form |
Definition at line 317 of file class.assLongMenuGUI.php.
assLongMenuGUI::populateCorrectionsFormProperties | ( | ilPropertyFormGUI | $form | ) |
Definition at line 664 of file class.assLongMenuGUI.php.
References ilPropertyFormGUI\addItem(), ILIAS\Repository\lng(), ILIAS\Repository\object(), and ilFormPropertyGUI\setRequired().
assLongMenuGUI::populateQuestionSpecificFormPart | ( | ilPropertyFormGUI | $form | ) |
ilPropertyFormGUI | $form |
Implements ilGuiQuestionScoringAdjustable.
Definition at line 190 of file class.assLongMenuGUI.php.
References assQuestionGUI\$tpl, ilObjAdvancedEditing\_getUsedHTMLTags(), ilPropertyFormGUI\addItem(), assQuestion\ADDITIONAL_CONTENT_EDITING_MODE_RTE, assLongMenu\GAP_PLACEHOLDER, ilGlobalPageTemplate\get(), ilModalGUI\getInstance(), ilAssSelfAssessmentQuestionFormatter\getSelfAssessmentTags(), ILIAS\Repository\lng(), assLongMenu\MAX_INPUT_FIELDS, assLongMenu\MIN_LENGTH_AUTOCOMPLETE, ILIAS\Repository\object(), ilGlobalPageTemplate\parseCurrentBlock(), ilFormPropertyGUI\setRequired(), ilCheckboxInputGUI\setValue(), and ilGlobalPageTemplate\setVariable().
Referenced by buildEditForm().
assLongMenuGUI::saveCorrectionsFormProperties | ( | ilPropertyFormGUI | $form | ) |
ilPropertyFormGUI | $form |
Definition at line 706 of file class.assLongMenuGUI.php.
References ilPropertyFormGUI\getInput(), and ILIAS\Repository\object().
|
private |
Definition at line 132 of file class.assLongMenuGUI.php.
References $data, and ilUtil\stripSlashes().
Referenced by verifyAnswerOptions(), and writeQuestionSpecificPostData().
|
private |
Definition at line 145 of file class.assLongMenuGUI.php.
References $data.
Referenced by writeQuestionSpecificPostData().
|
private |
Definition at line 114 of file class.assLongMenuGUI.php.
References assLongMenu\GAP_PLACEHOLDER, ILIAS\Repository\lng(), and stripSlashesRecursive().
Referenced by writePostData().
|
protected |
{}
Definition at line 74 of file class.assLongMenuGUI.php.
References $check, buildEditForm(), editQuestion(), ILIAS\Repository\lng(), assQuestionGUI\saveTaxonomyAssignments(), verifyAnswerOptions(), assQuestionGUI\writeQuestionGenericPostData(), and writeQuestionSpecificPostData().
assLongMenuGUI::writeQuestionSpecificPostData | ( | ilPropertyFormGUI | $form | ) |
Extracts the question specific values from $_POST and applies them to the data object.
Implements ilGuiQuestionScoringAdjustable.
Definition at line 96 of file class.assLongMenuGUI.php.
References assQuestionGUI\saveTaxonomyAssignments(), ilUtil\stripSlashes(), ilArrayUtil\stripSlashesRecursive(), stripSlashesRecursive(), and trimArrayRecursive().
Referenced by writePostData().
|
private |
Definition at line 30 of file class.assLongMenuGUI.php.
Referenced by __construct().