ILIAS
Release_5_0_x_branch Revision 61816
|
Basic GUI class for assessment questions. More...
Public Member Functions | |
__construct () | |
assQuestionGUI constructor | |
& | executeCommand () |
execute command | |
getCommand ($cmd) | |
getType () | |
needed for page editor compliance | |
setTaxonomyIds ($taxonomyIds) | |
getTaxonomyIds () | |
setTargetGui ($linkTargetGui) | |
setTargetGuiClass ($targetGuiClass) | |
getTargetGuiClass () | |
setQuestionHeaderBlockBuilder ($questionHeaderBlockBuilder) | |
setQuestionActionCmd ($questionActionCmd) | |
getQuestionActionCmd () | |
& | _getQuestionGUI ($question_type, $question_id=-1) |
Creates a question gui representation and returns the alias to the question gui note: please do not use $this inside this method to allow static calls. | |
_getGUIClassNameForId ($a_q_id) | |
_getClassNameForQType ($q_type) | |
& | createQuestionGUI ($question_type, $question_id=-1) |
Creates a question gui representation. | |
getQuestionTemplate () | |
get question template | |
getILIASPage ($html="") | |
Returns the ILIAS Page around a question. | |
outQuestionPage ($a_temp_var, $a_postponed=false, $active_id="", $html="") | |
output question page | |
cancel () | |
cancel action | |
originalSyncForm ($return_to="", $return_to_feedback= '') | |
sync () | |
cancelSync () | |
saveEdit () | |
save question | |
save () | |
save question | |
saveReturn () | |
save question | |
apply () | |
apply changes | |
getContextPath ($cont_obj, $a_endnode_id, $a_startnode_id=1) | |
get context path in content object tree | |
setSequenceNumber ($nr) | |
getSequenceNumber () | |
setQuestionCount ($a_question_count) | |
getQuestionCount () | |
getErrorMessage () | |
setErrorMessage ($errormessage) | |
addErrorMessage ($errormessage) | |
outAdditionalOutput () | |
getQuestionType () | |
Returns the question type string. | |
getAsValueAttribute ($a_value) | |
Returns a HTML value attribute. | |
addNewIdListener (&$a_object, $a_method, $a_parameters="") | |
Add a listener that is notified with the new question ID, when a new question is saved. | |
callNewIdListeners ($a_new_id) | |
Call the new id listeners. | |
addQuestionFormCommandButtons ($form) | |
Add the command buttons of a question properties form. | |
addBasicQuestionFormProperties ($form) | |
Add basic question form properties: assessment: title, author, description, question, working time. | |
getSelfAssessmentTags () | |
Get tags allowed in question tags in self assessment mode. | |
getAnswerFeedbackOutput ($active_id, $pass) | |
Returns the answer generic feedback depending on the results of the question. | |
getGenericFeedbackOutput ($active_id, $pass) | |
Returns the answer specific feedback for the question. | |
getGenericFeedbackOutputForCorrectSolution () | |
getGenericFeedbackOutputForIncorrectSolution () | |
getSpecificFeedbackOutput ($active_id, $pass) | |
Returns the answer specific feedback for the question. | |
outQuestionType () | |
showSuggestedSolution () | |
suggestedsolution () | |
Allows to add suggested solutions for questions. | |
outSolutionExplorer () | |
saveSuggestedSolution () | |
cancelExplorer () | |
outPageSelector () | |
outChapterSelector () | |
outGlossarySelector () | |
linkChilds () | |
addPG () | |
addST () | |
addGIT () | |
isSaveCommand () | |
setQuestionTabs () | |
addTab_SuggestedSolution (ilTabsGUI $tabs, $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 ($formaction, $active_id, $pass=NULL, $is_question_postponed=FALSE, $user_post_solutions=FALSE, $show_specific_inline_feedback=FALSE) | |
setPreviewSession ($previewSession) | |
getPreviewSession () | |
showHints () |
Static Public Member Functions | |
static | getCommandsFromClassConstants ($guiClassName, $cmdConstantNameBegin= 'CMD_') |
extracts values of all constants of given class with given prefix as array can be used to get all possible commands in case of these commands are defined as constants |
Data Fields | |
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 | SESSION_PREVIEW_DATA_BASE_INDEX = 'ilAssQuestionPreviewAnswers' |
$object | |
$tpl | |
$lng | |
$error | |
$errormessage | |
$sequence_no | |
sequence number in test | |
$question_count | |
question count in test |
Protected Member Functions | |
writePostData () | |
Evaluates a posted edit form and writes the form data in the question object. | |
saveTaxonomyAssignments () | |
populateTaxonomyFormSection (ilPropertyFormGUI $form) | |
getBasicEditQuestionTabCommands () | |
getAdditionalEditQuestionCommands () | |
addTab_QuestionFeedback (ilTabsGUI $tabs) | |
adds the feedback tab to ilTabsGUI | |
addTab_QuestionHints (ilTabsGUI $tabs) | |
adds the hints tab to ilTabsGUI | |
addTab_QuestionPreview (ilTabsGUI $tabsGUI) | |
writeQuestionGenericPostData () | |
getFormEncodingType () | |
addBackTab (ilTabsGUI $ilTabs) | |
buildBasicEditFormObject () |
Private Attributes | |
$taxonomyIds = array() | |
$targetGuiClass = null | |
$questionActionCmd = 'handleQuestionAction' | |
$questionHeaderBlockBuilder | |
$previewSession |
Basic GUI class for assessment questions.
The assQuestionGUI class encapsulates basic GUI functions for assessment questions.
assQuestionGUI: ilAssQuestionPageGUI
Definition at line 19 of file class.assQuestionGUI.php.
assQuestionGUI::__construct | ( | ) |
assQuestionGUI constructor
Definition at line 66 of file class.assQuestionGUI.php.
References $ilCtrl, $lng, and $tpl.
Referenced by assKprimChoiceGUI\__construct(), assFormulaQuestionGUI\__construct(), assOrderingHorizontalGUI\__construct(), assTextQuestionGUI\__construct(), assFileUploadGUI\__construct(), assTextSubsetGUI\__construct(), assJavaAppletGUI\__construct(), assSingleChoiceGUI\__construct(), assMatchingQuestionGUI\__construct(), assFlashQuestionGUI\__construct(), assErrorTextGUI\__construct(), assMultipleChoiceGUI\__construct(), assNumericGUI\__construct(), assImagemapQuestionGUI\__construct(), assClozeTestGUI\__construct(), and assOrderingQuestionGUI\__construct().
assQuestionGUI::_getClassNameForQType | ( | $q_type | ) |
Definition at line 259 of file class.assQuestionGUI.php.
Referenced by _getGUIClassNameForId().
assQuestionGUI::_getGUIClassNameForId | ( | $a_q_id | ) |
Definition at line 247 of file class.assQuestionGUI.php.
References _getClassNameForQType(), and assQuestion\getQuestionTypeFromDb().
Referenced by ilQuestionBrowserTableGUI\fillRow().
& assQuestionGUI::_getQuestionGUI | ( | $question_type, | |
$question_id = -1 |
|||
) |
Creates a question gui representation and returns the alias to the question gui note: please do not use $this inside this method to allow static calls.
string | $question_type | The question type as it is used in the language database |
integer | $question_id | The database ID of an existing question to load it into assQuestionGUI |
Definition at line 215 of file class.assQuestionGUI.php.
References $ilCtrl, $ilDB, $lng, assQuestion\_includeClass(), assQuestion\getFeedbackClassNameByQuestionType(), assQuestion\getGuiClassNameByQuestionType(), and assQuestion\getQuestionTypeFromDb().
Referenced by ilObjQuestionPoolGUI\addLocatorItems(), ilTestExpressPageObjectGUI\addPageOfQuestions(), ilObjQuestionPoolGUI\createQuestionForTestObject(), createQuestionGUI(), ilObjQuestionPoolGUI\createQuestionObject(), ilPCQuestionGUI\edit(), ilObjQuestionPoolGUI\editQuestionForTestObject(), ilTestExpressPageObjectGUI\executeCommand(), ilObjQuestionPoolGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilQuestionEditGUI\executeCommand(), ilPageObjectGUI\executeCommand(), ilSCORM2004Asset\exportHTMLPageObjects(), ilQuestionExporter\exportQuestion(), ilSCORM2004PageGUI\getQuestionHtmlOfPage(), ilTestExpressPageObjectGUI\handleToolbarCommand(), ilPCQuestion\modifyPageContentPostXsl(), and ilObjQuestionPoolGUI\setTitleAndDescription().
|
protected |
ilTabsGUI | $ilTabs |
Definition at line 1968 of file class.assQuestionGUI.php.
References $_GET, $GLOBALS, $ref_id, ilLink\_getLink(), ilObjectFactory\getInstanceByRefId(), ilTestExpressPage\getReturnToPageLink(), and ilTabsGUI\setBackTarget().
Referenced by assFormulaQuestionGUI\setQuestionTabs(), assTextSubsetGUI\setQuestionTabs(), assOrderingHorizontalGUI\setQuestionTabs(), assErrorTextGUI\setQuestionTabs(), assFlashQuestionGUI\setQuestionTabs(), assTextQuestionGUI\setQuestionTabs(), assSingleChoiceGUI\setQuestionTabs(), assMultipleChoiceGUI\setQuestionTabs(), assJavaAppletGUI\setQuestionTabs(), assImagemapQuestionGUI\setQuestionTabs(), assMatchingQuestionGUI\setQuestionTabs(), assOrderingQuestionGUI\setQuestionTabs(), assClozeTestGUI\setQuestionTabs(), and setQuestionTabs().
assQuestionGUI::addBasicQuestionFormProperties | ( | $form | ) |
Add basic question form properties: assessment: title, author, description, question, working time.
Reimplemented in assClozeTestGUI.
Definition at line 918 of file class.assQuestionGUI.php.
References ilObjAdvancedEditing\_getUsedHTMLTags(), assQuestion\ADDITIONAL_CONTENT_EDITING_MODE_PAGE_OBJECT, ilUtil\prepareFormOutput(), ilTextInputGUI\setMaxLength(), ilDurationInputGUI\setShowHours(), ilTextInputGUI\setValue(), ilNumberInputGUI\setValue(), and ilTextAreaInputGUI\setValue().
Referenced by assKprimChoiceGUI\buildEditForm(), assTextSubsetGUI\editQuestion(), assTextQuestionGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assOrderingHorizontalGUI\editQuestion(), assFileUploadGUI\editQuestion(), assNumericGUI\editQuestion(), assErrorTextGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assFlashQuestionGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), and assOrderingQuestionGUI\editQuestion().
assQuestionGUI::addErrorMessage | ( | $errormessage | ) |
Definition at line 826 of file class.assQuestionGUI.php.
References $errormessage.
Referenced by assFormulaQuestionGUI\checkInput(), and assFormulaQuestionGUI\writePostData().
assQuestionGUI::addGIT | ( | ) |
Definition at line 1675 of file class.assQuestionGUI.php.
References $_GET, and ilUtil\sendSuccess().
assQuestionGUI::addNewIdListener | ( | & | $a_object, |
$a_method, | |||
$a_parameters = "" |
|||
) |
Add a listener that is notified with the new question ID, when a new question is saved.
Definition at line 870 of file class.assQuestionGUI.php.
assQuestionGUI::addPG | ( | ) |
Definition at line 1651 of file class.assQuestionGUI.php.
References $_GET, and ilUtil\sendSuccess().
assQuestionGUI::addQuestionFormCommandButtons | ( | $form | ) |
Add the command buttons of a question properties form.
Definition at line 902 of file class.assQuestionGUI.php.
Referenced by assKprimChoiceGUI\buildEditForm(), assTextSubsetGUI\editQuestion(), assTextQuestionGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assOrderingHorizontalGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assFileUploadGUI\editQuestion(), assNumericGUI\editQuestion(), assErrorTextGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assFlashQuestionGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), and assOrderingQuestionGUI\editQuestion().
assQuestionGUI::addST | ( | ) |
Definition at line 1663 of file class.assQuestionGUI.php.
References $_GET, and ilUtil\sendSuccess().
|
protected |
adds the feedback tab to ilTabsGUI
ilCtrl $ilCtrl
ilTabsGUI | $tabs |
Definition at line 1822 of file class.assQuestionGUI.php.
References $ilCtrl, ilTabsGUI\addTarget(), ilAssQuestionFeedbackEditingGUI\CMD_SHOW, and getCommandsFromClassConstants().
Referenced by assFormulaQuestionGUI\setQuestionTabs(), assTextSubsetGUI\setQuestionTabs(), assOrderingHorizontalGUI\setQuestionTabs(), assErrorTextGUI\setQuestionTabs(), assFileUploadGUI\setQuestionTabs(), assFlashQuestionGUI\setQuestionTabs(), assTextQuestionGUI\setQuestionTabs(), assSingleChoiceGUI\setQuestionTabs(), assMultipleChoiceGUI\setQuestionTabs(), assJavaAppletGUI\setQuestionTabs(), assImagemapQuestionGUI\setQuestionTabs(), assMatchingQuestionGUI\setQuestionTabs(), assOrderingQuestionGUI\setQuestionTabs(), assClozeTestGUI\setQuestionTabs(), and setQuestionTabs().
|
protected |
adds the hints tab to ilTabsGUI
ilCtrl $ilCtrl
ilTabsGUI | $tabs |
Definition at line 1853 of file class.assQuestionGUI.php.
References $ilCtrl, ilTabsGUI\addTarget(), ilAssQuestionHintsGUI\CMD_SHOW_LIST, and getCommandsFromClassConstants().
Referenced by assFormulaQuestionGUI\setQuestionTabs(), assTextSubsetGUI\setQuestionTabs(), assOrderingHorizontalGUI\setQuestionTabs(), assErrorTextGUI\setQuestionTabs(), assFileUploadGUI\setQuestionTabs(), assFlashQuestionGUI\setQuestionTabs(), assTextQuestionGUI\setQuestionTabs(), assSingleChoiceGUI\setQuestionTabs(), assMultipleChoiceGUI\setQuestionTabs(), assJavaAppletGUI\setQuestionTabs(), assImagemapQuestionGUI\setQuestionTabs(), assMatchingQuestionGUI\setQuestionTabs(), assOrderingQuestionGUI\setQuestionTabs(), assClozeTestGUI\setQuestionTabs(), and setQuestionTabs().
|
protected |
Definition at line 1882 of file class.assQuestionGUI.php.
References ilTabsGUI\addTarget(), ilAssQuestionPreviewGUI\CMD_SHOW, and ilAssQuestionPreviewGUI\TAB_ID_QUESTION_PREVIEW.
Referenced by assFormulaQuestionGUI\setQuestionTabs(), assTextSubsetGUI\setQuestionTabs(), assOrderingHorizontalGUI\setQuestionTabs(), assErrorTextGUI\setQuestionTabs(), assFileUploadGUI\setQuestionTabs(), assFlashQuestionGUI\setQuestionTabs(), assTextQuestionGUI\setQuestionTabs(), assSingleChoiceGUI\setQuestionTabs(), assMultipleChoiceGUI\setQuestionTabs(), assJavaAppletGUI\setQuestionTabs(), assImagemapQuestionGUI\setQuestionTabs(), assMatchingQuestionGUI\setQuestionTabs(), assOrderingQuestionGUI\setQuestionTabs(), assClozeTestGUI\setQuestionTabs(), and setQuestionTabs().
assQuestionGUI::addTab_SuggestedSolution | ( | ilTabsGUI | $tabs, |
$classname | |||
) |
Definition at line 1786 of file class.assQuestionGUI.php.
References $_GET, and ilTabsGUI\addTarget().
Referenced by assTextSubsetGUI\setQuestionTabs(), assOrderingHorizontalGUI\setQuestionTabs(), assErrorTextGUI\setQuestionTabs(), assFileUploadGUI\setQuestionTabs(), assFlashQuestionGUI\setQuestionTabs(), assTextQuestionGUI\setQuestionTabs(), assSingleChoiceGUI\setQuestionTabs(), assMultipleChoiceGUI\setQuestionTabs(), assJavaAppletGUI\setQuestionTabs(), assImagemapQuestionGUI\setQuestionTabs(), assMatchingQuestionGUI\setQuestionTabs(), assOrderingQuestionGUI\setQuestionTabs(), assClozeTestGUI\setQuestionTabs(), and setQuestionTabs().
assQuestionGUI::apply | ( | ) |
apply changes
Definition at line 762 of file class.assQuestionGUI.php.
References writePostData().
|
protected |
Definition at line 2029 of file class.assQuestionGUI.php.
References getType(), and outQuestionType().
Referenced by assKprimChoiceGUI\buildEditForm().
assQuestionGUI::callNewIdListeners | ( | $a_new_id | ) |
Call the new id listeners.
Definition at line 882 of file class.assQuestionGUI.php.
References $object.
Referenced by save(), saveReturn(), and assFormulaQuestionGUI\saveReturnFQ().
assQuestionGUI::cancel | ( | ) |
cancel action
Definition at line 388 of file class.assQuestionGUI.php.
References $_GET, and ilUtil\redirect().
assQuestionGUI::cancelExplorer | ( | ) |
Definition at line 1491 of file class.assQuestionGUI.php.
assQuestionGUI::cancelSync | ( | ) |
Definition at line 473 of file class.assQuestionGUI.php.
References $_GET, $_REQUEST, $ref_id, ilLink\_getLink(), ilObjectFactory\getInstanceByRefId(), and ilUtil\redirect().
& assQuestionGUI::createQuestionGUI | ( | $question_type, | |
$question_id = -1 |
|||
) |
Creates a question gui representation.
Creates a question gui representation and returns the alias to the question gui
string | $question_type | The question type as it is used in the language database |
integer | $question_id | The database ID of an existing question to load it into assQuestionGUI |
Definition at line 276 of file class.assQuestionGUI.php.
References _getQuestionGUI().
& assQuestionGUI::executeCommand | ( | ) |
execute command
Definition at line 97 of file class.assQuestionGUI.php.
References $cmd, $ret, and getCommand().
|
protected |
Reimplemented in assKprimChoiceGUI.
Definition at line 1811 of file class.assQuestionGUI.php.
Referenced by getEditQuestionTabCommands().
assQuestionGUI::getAnswerFeedbackOutput | ( | $active_id, | |
$pass | |||
) |
Returns the answer generic feedback depending on the results of the question.
integer | $active_id | Active ID of the user |
integer | $pass | Active pass |
Reimplemented in assClozeTestGUI.
Definition at line 1095 of file class.assQuestionGUI.php.
References $pass, and getGenericFeedbackOutput().
Referenced by assTextSubsetGUI\getSolutionOutput(), assSingleChoiceGUI\getSolutionOutput(), assMultipleChoiceGUI\getSolutionOutput(), assFileUploadGUI\getSolutionOutput(), assJavaAppletGUI\getSolutionOutput(), assImagemapQuestionGUI\getSolutionOutput(), and assOrderingQuestionGUI\getSolutionOutput().
assQuestionGUI::getAsValueAttribute | ( | $a_value | ) |
Returns a HTML value attribute.
mixed | $a_value | A given text or value |
Definition at line 855 of file class.assQuestionGUI.php.
References $result.
|
protected |
Definition at line 1806 of file class.assQuestionGUI.php.
Referenced by getEditQuestionTabCommands().
assQuestionGUI::getCommand | ( | $cmd | ) |
Reimplemented in assFormulaQuestionGUI, assImagemapQuestionGUI, assClozeTestGUI, assFlashQuestionGUI, assNumericGUI, assJavaAppletGUI, and assOrderingHorizontalGUI.
Definition at line 113 of file class.assQuestionGUI.php.
References $cmd.
Referenced by executeCommand().
|
static |
extracts values of all constants of given class with given prefix as array can be used to get all possible commands in case of these commands are defined as constants
string | $guiClassName | |
string | $cmdConstantNameBegin |
Definition at line 1700 of file class.assQuestionGUI.php.
Referenced by addTab_QuestionFeedback(), addTab_QuestionHints(), and ilPCQuestionGUI\setTabs().
assQuestionGUI::getContextPath | ( | $cont_obj, | |
$a_endnode_id, | |||
$a_startnode_id = 1 |
|||
) |
get context path in content object tree
int | $a_endnode_id | id of endnode |
int | $a_startnode_id | id of startnode |
Definition at line 776 of file class.assQuestionGUI.php.
References $path.
Referenced by outPageSelector().
|
final |
Definition at line 1801 of file class.assQuestionGUI.php.
References getAdditionalEditQuestionCommands(), and getBasicEditQuestionTabCommands().
Referenced by setQuestionTabs().
assQuestionGUI::getErrorMessage | ( | ) |
Definition at line 816 of file class.assQuestionGUI.php.
References $errormessage.
Referenced by assTextQuestionGUI\addSuggestedSolution(), assFlashQuestionGUI\suggestRange(), and assFormulaQuestionGUI\suggestRange().
|
protected |
Reimplemented in assFileUploadGUI.
Definition at line 1960 of file class.assQuestionGUI.php.
References FORM_ENCODING_URLENCODE.
Referenced by outQuestionForTest().
assQuestionGUI::getGenericFeedbackOutput | ( | $active_id, | |
$pass | |||
) |
Returns the answer specific feedback for the question.
integer | $active_id | Active ID of the user |
integer | $pass | Active pass |
Definition at line 1109 of file class.assQuestionGUI.php.
References $pass, and ilObjTest\getManualFeedback().
Referenced by getAnswerFeedbackOutput(), assOrderingHorizontalGUI\getSolutionOutput(), assNumericGUI\getSolutionOutput(), assTextQuestionGUI\getSolutionOutput(), assErrorTextGUI\getSolutionOutput(), assMatchingQuestionGUI\getSolutionOutput(), assOrderingQuestionGUI\getSolutionOutput(), assKprimChoiceGUI\getSolutionOutput(), assClozeTestGUI\getSolutionOutput(), and assFormulaQuestionGUI\getSolutionOutput().
assQuestionGUI::getGenericFeedbackOutputForCorrectSolution | ( | ) |
Definition at line 1136 of file class.assQuestionGUI.php.
assQuestionGUI::getGenericFeedbackOutputForIncorrectSolution | ( | ) |
Definition at line 1143 of file class.assQuestionGUI.php.
assQuestionGUI::getILIASPage | ( | $html = "" | ) |
Returns the ILIAS Page around a question.
Definition at line 298 of file class.assQuestionGUI.php.
References ilPageObjectGUI\setQuestionHTML().
Referenced by assOrderingHorizontalGUI\getPreview(), assTextSubsetGUI\getPreview(), assNumericGUI\getPreview(), assErrorTextGUI\getPreview(), assFileUploadGUI\getPreview(), assTextQuestionGUI\getPreview(), assSingleChoiceGUI\getPreview(), assFlashQuestionGUI\getPreview(), assMultipleChoiceGUI\getPreview(), assJavaAppletGUI\getPreview(), assKprimChoiceGUI\getPreview(), assMatchingQuestionGUI\getPreview(), assImagemapQuestionGUI\getPreview(), assOrderingQuestionGUI\getPreview(), assClozeTestGUI\getPreview(), assFormulaQuestionGUI\getPreview(), assOrderingHorizontalGUI\getSolutionOutput(), assTextSubsetGUI\getSolutionOutput(), assNumericGUI\getSolutionOutput(), assTextQuestionGUI\getSolutionOutput(), assSingleChoiceGUI\getSolutionOutput(), assMultipleChoiceGUI\getSolutionOutput(), assFileUploadGUI\getSolutionOutput(), assFlashQuestionGUI\getSolutionOutput(), assErrorTextGUI\getSolutionOutput(), assJavaAppletGUI\getSolutionOutput(), assMatchingQuestionGUI\getSolutionOutput(), assImagemapQuestionGUI\getSolutionOutput(), assOrderingQuestionGUI\getSolutionOutput(), assKprimChoiceGUI\getSolutionOutput(), assClozeTestGUI\getSolutionOutput(), assFormulaQuestionGUI\getSolutionOutput(), assOrderingHorizontalGUI\getTestOutput(), assErrorTextGUI\getTestOutput(), and assFileUploadGUI\getTestOutput().
|
abstract |
Reimplemented in assFormulaQuestionGUI, assClozeTestGUI, assOrderingQuestionGUI, assImagemapQuestionGUI, assMatchingQuestionGUI, assKprimChoiceGUI, assJavaAppletGUI, assMultipleChoiceGUI, assFlashQuestionGUI, assSingleChoiceGUI, assTextQuestionGUI, assFileUploadGUI, assErrorTextGUI, assNumericGUI, assTextSubsetGUI, and assOrderingHorizontalGUI.
assQuestionGUI::getPreviewSession | ( | ) |
Definition at line 2021 of file class.assQuestionGUI.php.
References $previewSession.
Referenced by assOrderingHorizontalGUI\getPreview(), assTextSubsetGUI\getPreview(), assNumericGUI\getPreview(), assErrorTextGUI\getPreview(), assFileUploadGUI\getPreview(), assTextQuestionGUI\getPreview(), assSingleChoiceGUI\getPreview(), assMultipleChoiceGUI\getPreview(), assKprimChoiceGUI\getPreview(), assMatchingQuestionGUI\getPreview(), assImagemapQuestionGUI\getPreview(), assOrderingQuestionGUI\getPreview(), assClozeTestGUI\getPreview(), assFormulaQuestionGUI\getPreview(), and assFormulaQuestionGUI\getSolutionOutput().
assQuestionGUI::getQuestionActionCmd | ( | ) |
Definition at line 169 of file class.assQuestionGUI.php.
References $questionActionCmd.
Referenced by assFileUploadGUI\getPreview(), assImagemapQuestionGUI\getPreview(), assFileUploadGUI\getTestOutput(), and assImagemapQuestionGUI\getTestOutput().
assQuestionGUI::getQuestionCount | ( | ) |
Definition at line 811 of file class.assQuestionGUI.php.
References $question_count.
Referenced by outQuestionPage().
assQuestionGUI::getQuestionTemplate | ( | ) |
get question template
Definition at line 285 of file class.assQuestionGUI.php.
Referenced by assTextQuestionGUI\addSuggestedSolution(), assImagemapQuestionGUI\areaEditor(), assKprimChoiceGUI\editQuestion(), assTextSubsetGUI\editQuestion(), assTextQuestionGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assOrderingHorizontalGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assFileUploadGUI\editQuestion(), assNumericGUI\editQuestion(), assErrorTextGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assFlashQuestionGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), and assOrderingQuestionGUI\editQuestion().
assQuestionGUI::getQuestionType | ( | ) |
Returns the question type string.
Returns the question type string
Definition at line 843 of file class.assQuestionGUI.php.
Referenced by ilScoringAdjustmentGUI\allowedInAdjustment(), and getType().
assQuestionGUI::getSelfAssessmentTags | ( | ) |
Get tags allowed in question tags in self assessment mode.
Definition at line 1065 of file class.assQuestionGUI.php.
References ilUtil\getSecureTags().
Referenced by ilPCQuestion\copyPoolQuestionIntoPage().
assQuestionGUI::getSequenceNumber | ( | ) |
Definition at line 801 of file class.assQuestionGUI.php.
References $sequence_no.
Referenced by outQuestionPage().
|
abstract |
Reimplemented in assFormulaQuestionGUI, assClozeTestGUI, assKprimChoiceGUI, assOrderingQuestionGUI, assImagemapQuestionGUI, assMatchingQuestionGUI, assJavaAppletGUI, assErrorTextGUI, assFlashQuestionGUI, assFileUploadGUI, assMultipleChoiceGUI, assSingleChoiceGUI, assTextQuestionGUI, assNumericGUI, assTextSubsetGUI, and assOrderingHorizontalGUI.
Referenced by suggestedsolution().
|
abstract |
Returns the answer specific feedback for the question.
This method should be overwritten by the actual question.
integer | $active_id | Active ID of the user |
integer | $pass | Active pass |
Reimplemented in assClozeTestGUI, assOrderingQuestionGUI, assFormulaQuestionGUI, assMatchingQuestionGUI, assImagemapQuestionGUI, assJavaAppletGUI, assMultipleChoiceGUI, assSingleChoiceGUI, assFlashQuestionGUI, assTextQuestionGUI, assFileUploadGUI, assErrorTextGUI, assOrderingHorizontalGUI, assTextSubsetGUI, assNumericGUI, and assKprimChoiceGUI.
assQuestionGUI::getTargetGuiClass | ( | ) |
Definition at line 146 of file class.assQuestionGUI.php.
References $targetGuiClass.
Referenced by assImagemapQuestionGUI\getPreview(), assFileUploadGUI\getSolutionOutput(), assErrorTextGUI\getTestOutput(), and assImagemapQuestionGUI\getTestOutput().
assQuestionGUI::getTaxonomyIds | ( | ) |
Definition at line 131 of file class.assQuestionGUI.php.
References $taxonomyIds.
Referenced by populateTaxonomyFormSection(), and saveTaxonomyAssignments().
assQuestionGUI::getType | ( | ) |
needed for page editor compliance
Definition at line 121 of file class.assQuestionGUI.php.
References getQuestionType().
Referenced by buildBasicEditFormObject().
assQuestionGUI::isAutosaveable | ( | ) |
Definition at line 1906 of file class.assQuestionGUI.php.
assQuestionGUI::isSaveCommand | ( | ) |
Reimplemented in assFormulaQuestionGUI.
Definition at line 1687 of file class.assQuestionGUI.php.
Referenced by assTextSubsetGUI\editQuestion(), assTextQuestionGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assOrderingHorizontalGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assFileUploadGUI\editQuestion(), assNumericGUI\editQuestion(), assErrorTextGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assFlashQuestionGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), and assOrderingQuestionGUI\editQuestion().
assQuestionGUI::linkChilds | ( | ) |
Definition at line 1628 of file class.assQuestionGUI.php.
References $_GET, outChapterSelector(), outGlossarySelector(), outPageSelector(), and ilUtil\sendSuccess().
assQuestionGUI::originalSyncForm | ( | $return_to = "" , |
|
$return_to_feedback = '' |
|||
) |
string | $return_to | |
string | $return_to_feedback | ilAssQuestionFeedbackEditingGUI |
Definition at line 418 of file class.assQuestionGUI.php.
References $_REQUEST.
Referenced by suggestedsolution().
assQuestionGUI::outAdditionalOutput | ( | ) |
assQuestionGUI::outChapterSelector | ( | ) |
Definition at line 1563 of file class.assQuestionGUI.php.
References $_GET, and ilUtil\stripSlashes().
Referenced by linkChilds().
assQuestionGUI::outGlossarySelector | ( | ) |
Definition at line 1598 of file class.assQuestionGUI.php.
References $_GET.
Referenced by linkChilds().
assQuestionGUI::outPageSelector | ( | ) |
Definition at line 1496 of file class.assQuestionGUI.php.
References $_GET, getContextPath(), ilLMPageObject\getPageList(), ilUtil\prepareFormOutput(), and ilUtil\stripSlashes().
Referenced by linkChilds().
assQuestionGUI::outQuestionForTest | ( | $formaction, | |
$active_id, | |||
$pass = NULL , |
|||
$is_question_postponed = FALSE , |
|||
$user_post_solutions = FALSE , |
|||
$show_specific_inline_feedback = FALSE |
|||
) |
string | $formaction | |
integer | $active_id | |
integer | null | $pass | |
bool | $is_question_postponed | |
bool | $user_post_solutions | |
bool | $show_specific_inline_feedback |
Reimplemented in assImagemapQuestionGUI.
Definition at line 1938 of file class.assQuestionGUI.php.
References $pass, and getFormEncodingType().
assQuestionGUI::outQuestionPage | ( | $a_temp_var, | |
$a_postponed = false , |
|||
$active_id = "" , |
|||
$html = "" |
|||
) |
output question page
Definition at line 312 of file class.assQuestionGUI.php.
References ilObjTest\_getTitleOutput(), getQuestionCount(), getSequenceNumber(), ilObjTest\isQuestionObligatory(), and ilPageObjectGUI\setTemplateTargetVar().
Referenced by assOrderingHorizontalGUI\getTestOutput(), assTextSubsetGUI\getTestOutput(), assNumericGUI\getTestOutput(), assErrorTextGUI\getTestOutput(), assFileUploadGUI\getTestOutput(), assKprimChoiceGUI\getTestOutput(), assTextQuestionGUI\getTestOutput(), assFlashQuestionGUI\getTestOutput(), assSingleChoiceGUI\getTestOutput(), assMultipleChoiceGUI\getTestOutput(), assJavaAppletGUI\getTestOutput(), assImagemapQuestionGUI\getTestOutput(), assMatchingQuestionGUI\getTestOutput(), assOrderingQuestionGUI\getTestOutput(), assFormulaQuestionGUI\getTestOutput(), and assClozeTestGUI\getTestOutput().
assQuestionGUI::outQuestionType | ( | ) |
Definition at line 1163 of file class.assQuestionGUI.php.
References $_GET, assQuestion\_getQuestionTypeName(), assQuestion\_questionExistsInPool(), and ilUtil\sendInfo().
Referenced by buildBasicEditFormObject(), assTextSubsetGUI\editQuestion(), assTextQuestionGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assOrderingHorizontalGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assFileUploadGUI\editQuestion(), assNumericGUI\editQuestion(), assErrorTextGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assFlashQuestionGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), and assOrderingQuestionGUI\editQuestion().
assQuestionGUI::outSolutionExplorer | ( | ) |
Definition at line 1415 of file class.assQuestionGUI.php.
References $_GET, ilUtil\sendInfo(), and ilExplorer\setExpand().
|
protected |
Definition at line 1037 of file class.assQuestionGUI.php.
References ilPropertyFormGUI\addItem(), getTaxonomyIds(), and ilTaxAssignInputGUI\setCurrentValues().
Referenced by assKprimChoiceGUI\buildEditForm(), assTextSubsetGUI\editQuestion(), assTextQuestionGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assOrderingHorizontalGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assFileUploadGUI\editQuestion(), assNumericGUI\editQuestion(), assErrorTextGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assFlashQuestionGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), and assOrderingQuestionGUI\editQuestion().
assQuestionGUI::save | ( | ) |
save question
in express mode, so add question to test directly
Definition at line 562 of file class.assQuestionGUI.php.
References $_GET, $_REQUEST, $_SESSION, $ilDB, $ilUser, $result, $test, assQuestion\_isWriteable(), assQuestion\_questionExistsInTest(), callNewIdListeners(), ilTestExpressPage\getReturnToPageLink(), ilUtil\redirect(), ilUtil\sendSuccess(), and writePostData().
Referenced by assFormulaQuestionGUI\saveFQ().
assQuestionGUI::saveEdit | ( | ) |
save question
Definition at line 504 of file class.assQuestionGUI.php.
References $_GET, $_SESSION, $ilDB, $ilUser, $result, $test, assQuestion\_isWriteable(), ilUtil\redirect(), ilUtil\sendSuccess(), and writePostData().
assQuestionGUI::saveReturn | ( | ) |
save question
Definition at line 676 of file class.assQuestionGUI.php.
References $_GET, $_REQUEST, $_SESSION, $ilDB, $ilUser, $result, $test, assQuestion\_isWriteable(), assQuestion\_questionExistsInTest(), callNewIdListeners(), ilTestExpressPage\getReturnToPageLink(), ilUtil\redirect(), ilUtil\sendSuccess(), and writePostData().
assQuestionGUI::saveSuggestedSolution | ( | ) |
Definition at line 1451 of file class.assQuestionGUI.php.
References $_POST, and suggestedsolution().
|
protected |
Definition at line 1020 of file class.assQuestionGUI.php.
References getTaxonomyIds().
Referenced by assFormulaQuestionGUI\saveFQ(), assFormulaQuestionGUI\saveReturnFQ(), assTextQuestionGUI\writePostData(), assTextSubsetGUI\writePostData(), assFileUploadGUI\writePostData(), assSingleChoiceGUI\writePostData(), assMatchingQuestionGUI\writePostData(), assMultipleChoiceGUI\writePostData(), assErrorTextGUI\writePostData(), assOrderingHorizontalGUI\writePostData(), assJavaAppletGUI\writePostData(), assNumericGUI\writePostData(), assClozeTestGUI\writePostData(), assImagemapQuestionGUI\writePostData(), assFlashQuestionGUI\writePostData(), assKprimChoiceGUI\writePostData(), and assOrderingQuestionGUI\writePostData().
assQuestionGUI::setErrorMessage | ( | $errormessage | ) |
Definition at line 821 of file class.assQuestionGUI.php.
References $errormessage.
Referenced by assOrderingHorizontalGUI\__construct(), assFileUploadGUI\__construct(), assMatchingQuestionGUI\__construct(), assErrorTextGUI\__construct(), and assFlashQuestionGUI\writeQuestionSpecificPostData().
assQuestionGUI::setPreviewSession | ( | $previewSession | ) |
\ilAssQuestionPreviewSession | $previewSession |
Definition at line 2013 of file class.assQuestionGUI.php.
References $previewSession.
assQuestionGUI::setQuestionActionCmd | ( | $questionActionCmd | ) |
Definition at line 159 of file class.assQuestionGUI.php.
References $questionActionCmd.
assQuestionGUI::setQuestionCount | ( | $a_question_count | ) |
Definition at line 806 of file class.assQuestionGUI.php.
assQuestionGUI::setQuestionHeaderBlockBuilder | ( | $questionHeaderBlockBuilder | ) |
\ilQuestionHeaderBlockBuilder | $questionHeaderBlockBuilder |
Definition at line 154 of file class.assQuestionGUI.php.
References $questionHeaderBlockBuilder.
assQuestionGUI::setQuestionTabs | ( | ) |
Reimplemented in assClozeTestGUI, assOrderingQuestionGUI, assMatchingQuestionGUI, assImagemapQuestionGUI, assJavaAppletGUI, assMultipleChoiceGUI, assSingleChoiceGUI, assTextQuestionGUI, assFlashQuestionGUI, assFileUploadGUI, assErrorTextGUI, assOrderingHorizontalGUI, assTextSubsetGUI, and assFormulaQuestionGUI.
Definition at line 1722 of file class.assQuestionGUI.php.
References $_GET, addBackTab(), addTab_QuestionFeedback(), addTab_QuestionHints(), addTab_QuestionPreview(), addTab_SuggestedSolution(), and getEditQuestionTabCommands().
assQuestionGUI::setSequenceNumber | ( | $nr | ) |
Definition at line 796 of file class.assQuestionGUI.php.
assQuestionGUI::setTargetGui | ( | $linkTargetGui | ) |
Definition at line 136 of file class.assQuestionGUI.php.
References setTargetGuiClass().
assQuestionGUI::setTargetGuiClass | ( | $targetGuiClass | ) |
Definition at line 141 of file class.assQuestionGUI.php.
References $targetGuiClass.
Referenced by setTargetGui().
assQuestionGUI::setTaxonomyIds | ( | $taxonomyIds | ) |
Definition at line 126 of file class.assQuestionGUI.php.
References $taxonomyIds.
assQuestionGUI::showHints | ( | ) |
Definition at line 2046 of file class.assQuestionGUI.php.
References $ilCtrl, and ilAssQuestionHintsGUI\CMD_SHOW_LIST.
assQuestionGUI::showSuggestedSolution | ( | ) |
Definition at line 1179 of file class.assQuestionGUI.php.
References suggestedsolution().
assQuestionGUI::suggestedsolution | ( | ) |
Allows to add suggested solutions for questions.
public
Definition at line 1189 of file class.assQuestionGUI.php.
References $_GET, $_POST, $file, $ilUser, $options, $res, assQuestion\_getInternalLinkHref(), assQuestion\_isWriteable(), ilRadioGroupInputGUI\addOption(), getSolutionOutput(), ilUtil\makeDirParents(), ilUtil\moveUploadedFile(), originalSyncForm(), ilUtil\prepareFormOutput(), ilUtil\renameExecutables(), ilUtil\sendInfo(), ilUtil\sendSuccess(), ilCustomInputGUI\setHtml(), and ilTextAreaInputGUI\setValue().
Referenced by saveSuggestedSolution(), and showSuggestedSolution().
assQuestionGUI::sync | ( | ) |
Definition at line 440 of file class.assQuestionGUI.php.
References $_GET, $_REQUEST, $ref_id, ilLink\_getLink(), ilObjectFactory\getInstanceByRefId(), and ilUtil\redirect().
|
protected |
Evaluates a posted edit form and writes the form data in the question object.
Definition at line 180 of file class.assQuestionGUI.php.
Referenced by assTextSubsetGUI\addanswers(), assOrderingQuestionGUI\addanswers(), assSingleChoiceGUI\addchoice(), assMultipleChoiceGUI\addchoice(), assMatchingQuestionGUI\adddefinitions(), assClozeTestGUI\addgap(), assJavaAppletGUI\addkvp(), assMatchingQuestionGUI\addpairs(), assTextQuestionGUI\addSuggestedSolution(), assMatchingQuestionGUI\addterms(), assErrorTextGUI\analyze(), apply(), assOrderingQuestionGUI\changeToPictures(), assOrderingQuestionGUI\changeToText(), assClozeTestGUI\createGaps(), assImagemapQuestionGUI\deleteImage(), assOrderingQuestionGUI\downanswers(), assFlashQuestionGUI\flashAddParam(), assOrderingQuestionGUI\orderNestedPictures(), assOrderingQuestionGUI\orderNestedTerms(), assFormulaQuestionGUI\parseQuestion(), assTextSubsetGUI\removeanswers(), assOrderingQuestionGUI\removeanswers(), assImagemapQuestionGUI\removeArea(), assSingleChoiceGUI\removechoice(), assMultipleChoiceGUI\removechoice(), assMatchingQuestionGUI\removedefinitions(), assClozeTestGUI\removegap(), assOrderingQuestionGUI\removeimageanswers(), assSingleChoiceGUI\removeimagechoice(), assMultipleChoiceGUI\removeimagechoice(), assMatchingQuestionGUI\removeimagedefinitions(), assMatchingQuestionGUI\removeimageterms(), assJavaAppletGUI\removekvp(), assMatchingQuestionGUI\removepairs(), assMatchingQuestionGUI\removeterms(), save(), saveEdit(), assFormulaQuestionGUI\saveFQ(), saveReturn(), assFormulaQuestionGUI\saveReturnFQ(), assFlashQuestionGUI\suggestRange(), assFormulaQuestionGUI\suggestRange(), assOrderingQuestionGUI\upanswers(), assOrderingQuestionGUI\uploadanswers(), assSingleChoiceGUI\uploadchoice(), assMultipleChoiceGUI\uploadchoice(), assMatchingQuestionGUI\uploaddefinitions(), assKprimChoiceGUI\uploadImage(), and assMatchingQuestionGUI\uploadterms().
|
protected |
Definition at line 1911 of file class.assQuestionGUI.php.
References $_POST, and ilUtil\stripOnlySlashes().
Referenced by assTextQuestionGUI\writePostData(), assTextSubsetGUI\writePostData(), assSingleChoiceGUI\writePostData(), assFileUploadGUI\writePostData(), assMatchingQuestionGUI\writePostData(), assMultipleChoiceGUI\writePostData(), assErrorTextGUI\writePostData(), assOrderingHorizontalGUI\writePostData(), assJavaAppletGUI\writePostData(), assNumericGUI\writePostData(), assClozeTestGUI\writePostData(), assImagemapQuestionGUI\writePostData(), assFlashQuestionGUI\writePostData(), assKprimChoiceGUI\writePostData(), and assOrderingQuestionGUI\writePostData().
assQuestionGUI::$error |
Definition at line 40 of file class.assQuestionGUI.php.
assQuestionGUI::$errormessage |
Definition at line 41 of file class.assQuestionGUI.php.
Referenced by addErrorMessage(), getErrorMessage(), and setErrorMessage().
assQuestionGUI::$lng |
Definition at line 39 of file class.assQuestionGUI.php.
Referenced by __construct(), _getQuestionGUI(), and assClozeTestGUI\getSpecificFeedbackOutput().
assQuestionGUI::$object |
Definition at line 36 of file class.assQuestionGUI.php.
Referenced by callNewIdListeners().
|
private |
Definition at line 2008 of file class.assQuestionGUI.php.
Referenced by getPreviewSession(), and setPreviewSession().
assQuestionGUI::$question_count |
question count in test
Definition at line 50 of file class.assQuestionGUI.php.
Referenced by getQuestionCount().
|
private |
Definition at line 56 of file class.assQuestionGUI.php.
Referenced by getQuestionActionCmd(), and setQuestionActionCmd().
|
private |
Definition at line 61 of file class.assQuestionGUI.php.
Referenced by setQuestionHeaderBlockBuilder().
assQuestionGUI::$sequence_no |
sequence number in test
Definition at line 46 of file class.assQuestionGUI.php.
Referenced by getSequenceNumber().
|
private |
Definition at line 54 of file class.assQuestionGUI.php.
Referenced by getTargetGuiClass(), and setTargetGuiClass().
|
private |
Definition at line 52 of file class.assQuestionGUI.php.
Referenced by getTaxonomyIds(), and setTaxonomyIds().
assQuestionGUI::$tpl |
Definition at line 38 of file class.assQuestionGUI.php.
Referenced by __construct(), assOrderingQuestionGUI\getPreview(), assOrderingQuestionGUI\getTestOutput(), assClozeTestGUI\populateQuestionSpecificFormPart(), assNumericGUI\renderAggregateView(), assTextSubsetGUI\renderAggregateView(), assOrderingHorizontalGUI\renderAggregateView(), assSingleChoiceGUI\renderAggregateView(), assKprimChoiceGUI\renderAggregateView(), assMultipleChoiceGUI\renderAggregateView(), and assOrderingQuestionGUI\renderAggregateView().
const assQuestionGUI::FORM_ENCODING_MULTIPART = 'multipart/form-data' |
Definition at line 25 of file class.assQuestionGUI.php.
Referenced by assFileUploadGUI\getFormEncodingType().
const assQuestionGUI::FORM_ENCODING_URLENCODE = 'application/x-www-form-urlencoded' |
Definition at line 24 of file class.assQuestionGUI.php.
Referenced by getFormEncodingType().
const assQuestionGUI::FORM_MODE_ADJUST = 'adjust' |
Definition at line 22 of file class.assQuestionGUI.php.
const assQuestionGUI::FORM_MODE_EDIT = 'edit' |
Definition at line 21 of file class.assQuestionGUI.php.
const assQuestionGUI::SESSION_PREVIEW_DATA_BASE_INDEX = 'ilAssQuestionPreviewAnswers' |
Definition at line 27 of file class.assQuestionGUI.php.