ILIAS
Release_4_4_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 (ilTestPlayerAbstractGUI $linkTargetGui) | |
setTargetGuiClass ($targetGuiClass) | |
getTargetGuiClass () | |
writePostData () | |
Evaluates a posted edit form and writes the form data in the question object. | |
assessment () | |
output assessment | |
& | _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. | |
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 () | |
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 () | |
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' |
$object | |
$tpl | |
$lng | |
$error | |
$errormessage | |
$sequence_no | |
sequence number in test | |
$question_count | |
question count in test |
Protected Member Functions | |
saveTaxonomyAssignments () | |
populateTaxonomyFormSection (ilPropertyFormGUI $form) | |
addTab_QuestionFeedback (ilTabsGUI $tabs) | |
adds the feedback tab to ilTabsGUI | |
addTab_QuestionHints (ilTabsGUI $tabs) | |
adds the hints tab to ilTabsGUI | |
writeQuestionGenericPostData () |
Private Attributes | |
$taxonomyIds = array() | |
$targetGuiClass = null |
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 54 of file class.assQuestionGUI.php.
References $ilCtrl, $lng, and $tpl.
Referenced by assFormulaQuestionGUI\__construct(), assOrderingHorizontalGUI\__construct(), assTextQuestionGUI\__construct(), assFileUploadGUI\__construct(), assTextSubsetGUI\__construct(), assJavaAppletGUI\__construct(), assSingleChoiceGUI\__construct(), assFlashQuestionGUI\__construct(), assMatchingQuestionGUI\__construct(), assErrorTextGUI\__construct(), assClozeTestGUI\__construct(), assNumericGUI\__construct(), assMultipleChoiceGUI\__construct(), assImagemapQuestionGUI\__construct(), and assOrderingQuestionGUI\__construct().
assQuestionGUI::_getClassNameForQType | ( | $q_type | ) |
Definition at line 266 of file class.assQuestionGUI.php.
Referenced by _getGUIClassNameForId().
assQuestionGUI::_getGUIClassNameForId | ( | $a_q_id | ) |
Definition at line 254 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 222 of file class.assQuestionGUI.php.
References $ilCtrl, $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(), ilObjQuestionPoolGUI\executeCommand(), ilTestExpressPageObjectGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilQuestionEditGUI\executeCommand(), ilPageObjectGUI\executeCommand(), ilSCORM2004Asset\exportHTMLPageObjects(), ilQuestionExporter\exportQuestion(), ilSCORM2004PageGUI\getQuestionHtmlOfPage(), ilTestExpressPageObjectGUI\handleToolbarCommand(), and ilObjQuestionPoolGUI\setTitleAndDescription().
assQuestionGUI::addBasicQuestionFormProperties | ( | $form | ) |
Add basic question form properties: assessment: title, author, description, question, working time.
Reimplemented in assClozeTestGUI.
Definition at line 894 of file class.assQuestionGUI.php.
References ilObjAdvancedEditing\_getUsedHTMLTags(), assQuestion\ADDITIONAL_CONTENT_EDITING_MODE_PAGE_OBJECT, ilUtil\prepareFormOutput(), ilDurationInputGUI\setShowHours(), ilTextInputGUI\setValue(), ilNumberInputGUI\setValue(), and ilTextAreaInputGUI\setValue().
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(), and assOrderingQuestionGUI\editQuestion().
assQuestionGUI::addErrorMessage | ( | $errormessage | ) |
Definition at line 802 of file class.assQuestionGUI.php.
References $errormessage.
Referenced by assFormulaQuestionGUI\checkInput(), and assFormulaQuestionGUI\writePostData().
assQuestionGUI::addGIT | ( | ) |
Definition at line 1636 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 846 of file class.assQuestionGUI.php.
assQuestionGUI::addPG | ( | ) |
Definition at line 1612 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 878 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::addST | ( | ) |
Definition at line 1624 of file class.assQuestionGUI.php.
References $_GET, and ilUtil\sendSuccess().
|
protected |
adds the feedback tab to ilTabsGUI
ilCtrl $ilCtrl
ilTabsGUI | $tabs |
Definition at line 1693 of file class.assQuestionGUI.php.
References $ilCtrl, ilTabsGUI\addTarget(), ilAssQuestionFeedbackEditingGUI\CMD_SHOW, and getCommandsFromClassConstants().
Referenced by assFormulaQuestionGUI\setQuestionTabs(), assTextSubsetGUI\setQuestionTabs(), assOrderingHorizontalGUI\setQuestionTabs(), assFileUploadGUI\setQuestionTabs(), assErrorTextGUI\setQuestionTabs(), assTextQuestionGUI\setQuestionTabs(), assFlashQuestionGUI\setQuestionTabs(), assSingleChoiceGUI\setQuestionTabs(), assMultipleChoiceGUI\setQuestionTabs(), assJavaAppletGUI\setQuestionTabs(), assImagemapQuestionGUI\setQuestionTabs(), assClozeTestGUI\setQuestionTabs(), assMatchingQuestionGUI\setQuestionTabs(), and assOrderingQuestionGUI\setQuestionTabs().
|
protected |
adds the hints tab to ilTabsGUI
ilCtrl $ilCtrl
ilTabsGUI | $tabs |
Definition at line 1724 of file class.assQuestionGUI.php.
References $ilCtrl, ilTabsGUI\addTarget(), ilAssQuestionHintsGUI\CMD_SHOW_LIST, and getCommandsFromClassConstants().
Referenced by assFormulaQuestionGUI\setQuestionTabs(), assTextSubsetGUI\setQuestionTabs(), assOrderingHorizontalGUI\setQuestionTabs(), assFileUploadGUI\setQuestionTabs(), assErrorTextGUI\setQuestionTabs(), assTextQuestionGUI\setQuestionTabs(), assFlashQuestionGUI\setQuestionTabs(), assSingleChoiceGUI\setQuestionTabs(), assMultipleChoiceGUI\setQuestionTabs(), assJavaAppletGUI\setQuestionTabs(), assImagemapQuestionGUI\setQuestionTabs(), assClozeTestGUI\setQuestionTabs(), assMatchingQuestionGUI\setQuestionTabs(), and assOrderingQuestionGUI\setQuestionTabs().
assQuestionGUI::apply | ( | ) |
apply changes
Definition at line 738 of file class.assQuestionGUI.php.
References writePostData().
assQuestionGUI::assessment | ( | ) |
output assessment
Definition at line 146 of file class.assQuestionGUI.php.
References $_GET, and $ref_id.
assQuestionGUI::callNewIdListeners | ( | $a_new_id | ) |
Call the new id listeners.
Definition at line 858 of file class.assQuestionGUI.php.
References $object.
Referenced by save(), saveReturn(), and assFormulaQuestionGUI\saveReturnFQ().
assQuestionGUI::cancel | ( | ) |
cancel action
Definition at line 386 of file class.assQuestionGUI.php.
References $_GET, and ilUtil\redirect().
assQuestionGUI::cancelExplorer | ( | ) |
Definition at line 1459 of file class.assQuestionGUI.php.
assQuestionGUI::cancelSync | ( | ) |
Definition at line 460 of file class.assQuestionGUI.php.
References $_GET, $_REQUEST, 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 283 of file class.assQuestionGUI.php.
References _getQuestionGUI().
& assQuestionGUI::executeCommand | ( | ) |
execute command
Definition at line 79 of file class.assQuestionGUI.php.
References $cmd, $ret, and getCommand().
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 1077 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 831 of file class.assQuestionGUI.php.
References $result.
assQuestionGUI::getCommand | ( | $cmd | ) |
Reimplemented in assFormulaQuestionGUI, assImagemapQuestionGUI, assFlashQuestionGUI, assNumericGUI, assClozeTestGUI, assJavaAppletGUI, and assOrderingHorizontalGUI.
Definition at line 95 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 1661 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 752 of file class.assQuestionGUI.php.
References $path.
Referenced by outPageSelector().
assQuestionGUI::getErrorMessage | ( | ) |
Definition at line 792 of file class.assQuestionGUI.php.
References $errormessage.
Referenced by assTextQuestionGUI\addSuggestedSolution(), assFlashQuestionGUI\suggestRange(), and assFormulaQuestionGUI\suggestRange().
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 1091 of file class.assQuestionGUI.php.
References $pass, and ilObjTest\getManualFeedback().
Referenced by getAnswerFeedbackOutput(), assOrderingHorizontalGUI\getSolutionOutput(), assTextQuestionGUI\getSolutionOutput(), assNumericGUI\getSolutionOutput(), assErrorTextGUI\getSolutionOutput(), assMatchingQuestionGUI\getSolutionOutput(), assOrderingQuestionGUI\getSolutionOutput(), and assClozeTestGUI\getSolutionOutput().
assQuestionGUI::getILIASPage | ( | $html = "" | ) |
Returns the ILIAS Page around a question.
Definition at line 305 of file class.assQuestionGUI.php.
References ilPageObjectGUI\setQuestionHTML().
Referenced by assOrderingHorizontalGUI\getPreview(), assTextSubsetGUI\getPreview(), assNumericGUI\getPreview(), assTextQuestionGUI\getPreview(), assFileUploadGUI\getPreview(), assErrorTextGUI\getPreview(), assFlashQuestionGUI\getPreview(), assSingleChoiceGUI\getPreview(), assMultipleChoiceGUI\getPreview(), assJavaAppletGUI\getPreview(), assImagemapQuestionGUI\getPreview(), assMatchingQuestionGUI\getPreview(), assClozeTestGUI\getPreview(), assOrderingQuestionGUI\getPreview(), assFormulaQuestionGUI\getPreview(), assMatchingQuestionGUI\getPreviewJS(), assOrderingQuestionGUI\getSolutionOutput(), assFormulaQuestionGUI\getSolutionOutput(), assOrderingHorizontalGUI\getTestOutput(), assFileUploadGUI\getTestOutput(), and assErrorTextGUI\getTestOutput().
assQuestionGUI::getQuestionCount | ( | ) |
Definition at line 787 of file class.assQuestionGUI.php.
References $question_count.
Referenced by outQuestionPage().
assQuestionGUI::getQuestionTemplate | ( | ) |
get question template
Definition at line 292 of file class.assQuestionGUI.php.
Referenced by assTextQuestionGUI\addSuggestedSolution(), assImagemapQuestionGUI\areaEditor(), 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 819 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 1047 of file class.assQuestionGUI.php.
References ilUtil\getSecureTags().
Referenced by ilPCQuestion\copyPoolQuestionIntoPage().
assQuestionGUI::getSequenceNumber | ( | ) |
Definition at line 777 of file class.assQuestionGUI.php.
References $sequence_no.
Referenced by outQuestionPage().
|
abstract |
Reimplemented in assFormulaQuestionGUI, assClozeTestGUI, assOrderingQuestionGUI, assImagemapQuestionGUI, assMatchingQuestionGUI, assJavaAppletGUI, assErrorTextGUI, assFlashQuestionGUI, assFileUploadGUI, assMultipleChoiceGUI, assSingleChoiceGUI, assNumericGUI, assTextQuestionGUI, 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 assOrderingQuestionGUI, assMatchingQuestionGUI, assClozeTestGUI, assFormulaQuestionGUI, assImagemapQuestionGUI, assJavaAppletGUI, assMultipleChoiceGUI, assSingleChoiceGUI, assFlashQuestionGUI, assTextQuestionGUI, assErrorTextGUI, assFileUploadGUI, assOrderingHorizontalGUI, assNumericGUI, and assTextSubsetGUI.
assQuestionGUI::getTargetGuiClass | ( | ) |
Definition at line 128 of file class.assQuestionGUI.php.
References $targetGuiClass.
Referenced by assImagemapQuestionGUI\getTestOutput().
assQuestionGUI::getTaxonomyIds | ( | ) |
Definition at line 113 of file class.assQuestionGUI.php.
References $taxonomyIds.
Referenced by populateTaxonomyFormSection(), and saveTaxonomyAssignments().
assQuestionGUI::getType | ( | ) |
needed for page editor compliance
Definition at line 103 of file class.assQuestionGUI.php.
References getQuestionType().
assQuestionGUI::isAutosaveable | ( | ) |
Definition at line 1765 of file class.assQuestionGUI.php.
assQuestionGUI::isSaveCommand | ( | ) |
Reimplemented in assFormulaQuestionGUI.
Definition at line 1648 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 1589 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 416 of file class.assQuestionGUI.php.
References $_REQUEST.
Referenced by suggestedsolution().
assQuestionGUI::outAdditionalOutput | ( | ) |
assQuestionGUI::outChapterSelector | ( | ) |
Definition at line 1528 of file class.assQuestionGUI.php.
References $_GET.
Referenced by linkChilds().
assQuestionGUI::outGlossarySelector | ( | ) |
Definition at line 1561 of file class.assQuestionGUI.php.
References $_GET.
Referenced by linkChilds().
assQuestionGUI::outPageSelector | ( | ) |
Definition at line 1464 of file class.assQuestionGUI.php.
References $_GET, getContextPath(), ilLMPageObject\getPageList(), and ilUtil\prepareFormOutput().
Referenced by linkChilds().
assQuestionGUI::outQuestionPage | ( | $a_temp_var, | |
$a_postponed = false , |
|||
$active_id = "" , |
|||
$html = "" |
|||
) |
output question page
Definition at line 319 of file class.assQuestionGUI.php.
References ilObjTest\_getTitleOutput(), getQuestionCount(), getSequenceNumber(), ilObjTest\isQuestionObligatory(), and ilPageObjectGUI\setTemplateTargetVar().
Referenced by assOrderingHorizontalGUI\getTestOutput(), assTextSubsetGUI\getTestOutput(), assNumericGUI\getTestOutput(), assFileUploadGUI\getTestOutput(), assTextQuestionGUI\getTestOutput(), assErrorTextGUI\getTestOutput(), assFlashQuestionGUI\getTestOutput(), assSingleChoiceGUI\getTestOutput(), assMultipleChoiceGUI\getTestOutput(), assJavaAppletGUI\getTestOutput(), assImagemapQuestionGUI\getTestOutput(), assClozeTestGUI\getTestOutput(), assOrderingQuestionGUI\getTestOutput(), assMatchingQuestionGUI\getTestOutput(), assFormulaQuestionGUI\getTestOutput(), and assMatchingQuestionGUI\getTestOutputJS().
assQuestionGUI::outQuestionType | ( | ) |
Definition at line 1131 of file class.assQuestionGUI.php.
References $_GET, assQuestion\_getQuestionTypeName(), assQuestion\_questionExistsInPool(), and ilUtil\getImagePath().
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::outSolutionExplorer | ( | ) |
Definition at line 1383 of file class.assQuestionGUI.php.
References $_GET, ilUtil\sendInfo(), and ilExplorer\setExpand().
|
protected |
Definition at line 1019 of file class.assQuestionGUI.php.
References ilPropertyFormGUI\addItem(), getTaxonomyIds(), and ilTaxAssignInputGUI\setCurrentValues().
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::save | ( | ) |
save question
in express mode, so add question to test directly
Definition at line 538 of file class.assQuestionGUI.php.
References $_GET, $_REQUEST, $_SESSION, $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 480 of file class.assQuestionGUI.php.
References $_GET, $_SESSION, $ilUser, $result, $test, assQuestion\_isWriteable(), ilUtil\redirect(), ilUtil\sendSuccess(), and writePostData().
assQuestionGUI::saveReturn | ( | ) |
save question
Definition at line 652 of file class.assQuestionGUI.php.
References $_GET, $_REQUEST, $_SESSION, $ilUser, $result, $test, assQuestion\_isWriteable(), assQuestion\_questionExistsInTest(), callNewIdListeners(), ilTestExpressPage\getReturnToPageLink(), ilUtil\redirect(), ilUtil\sendSuccess(), and writePostData().
assQuestionGUI::saveSuggestedSolution | ( | ) |
Definition at line 1419 of file class.assQuestionGUI.php.
References $_POST, and suggestedsolution().
|
protected |
Definition at line 1002 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(), and assOrderingQuestionGUI\writePostData().
assQuestionGUI::setErrorMessage | ( | $errormessage | ) |
Definition at line 797 of file class.assQuestionGUI.php.
References $errormessage.
Referenced by assOrderingHorizontalGUI\__construct(), assFileUploadGUI\__construct(), assMatchingQuestionGUI\__construct(), assErrorTextGUI\__construct(), and assFlashQuestionGUI\writeQuestionSpecificPostData().
assQuestionGUI::setQuestionCount | ( | $a_question_count | ) |
Definition at line 782 of file class.assQuestionGUI.php.
assQuestionGUI::setQuestionTabs | ( | ) |
Reimplemented in assOrderingQuestionGUI, assMatchingQuestionGUI, assClozeTestGUI, assImagemapQuestionGUI, assJavaAppletGUI, assMultipleChoiceGUI, assSingleChoiceGUI, assFlashQuestionGUI, assTextQuestionGUI, assErrorTextGUI, assFileUploadGUI, assOrderingHorizontalGUI, assTextSubsetGUI, and assFormulaQuestionGUI.
Definition at line 1683 of file class.assQuestionGUI.php.
assQuestionGUI::setSequenceNumber | ( | $nr | ) |
Definition at line 772 of file class.assQuestionGUI.php.
assQuestionGUI::setTargetGui | ( | ilTestPlayerAbstractGUI | $linkTargetGui | ) |
Definition at line 118 of file class.assQuestionGUI.php.
References setTargetGuiClass().
assQuestionGUI::setTargetGuiClass | ( | $targetGuiClass | ) |
Definition at line 123 of file class.assQuestionGUI.php.
References $targetGuiClass.
Referenced by setTargetGui().
assQuestionGUI::setTaxonomyIds | ( | $taxonomyIds | ) |
Definition at line 108 of file class.assQuestionGUI.php.
References $taxonomyIds.
assQuestionGUI::showHints | ( | ) |
Definition at line 1787 of file class.assQuestionGUI.php.
References $ilCtrl, and ilAssQuestionHintsGUI\CMD_SHOW_LIST.
assQuestionGUI::showSuggestedSolution | ( | ) |
Definition at line 1152 of file class.assQuestionGUI.php.
References suggestedsolution().
assQuestionGUI::suggestedsolution | ( | ) |
Allows to add suggested solutions for questions.
public
Definition at line 1162 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 438 of file class.assQuestionGUI.php.
References $_GET, $_REQUEST, and ilUtil\redirect().
assQuestionGUI::writePostData | ( | ) |
Evaluates a posted edit form and writes the form data in the question object.
Definition at line 139 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(), 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(), and assMatchingQuestionGUI\uploadterms().
|
protected |
Definition at line 1770 of file class.assQuestionGUI.php.
References $_POST, and ilUtil\stripOnlySlashes().
Referenced by assTextQuestionGUI\writePostData(), assTextSubsetGUI\writePostData(), assSingleChoiceGUI\writePostData(), assFileUploadGUI\writePostData(), assMultipleChoiceGUI\writePostData(), assMatchingQuestionGUI\writePostData(), assErrorTextGUI\writePostData(), assOrderingHorizontalGUI\writePostData(), assJavaAppletGUI\writePostData(), assNumericGUI\writePostData(), assClozeTestGUI\writePostData(), assImagemapQuestionGUI\writePostData(), assFlashQuestionGUI\writePostData(), and assOrderingQuestionGUI\writePostData().
assQuestionGUI::$error |
Definition at line 35 of file class.assQuestionGUI.php.
assQuestionGUI::$errormessage |
Definition at line 36 of file class.assQuestionGUI.php.
Referenced by addErrorMessage(), getErrorMessage(), and setErrorMessage().
assQuestionGUI::$lng |
Definition at line 34 of file class.assQuestionGUI.php.
Referenced by __construct(), _getQuestionGUI(), and assClozeTestGUI\getSpecificFeedbackOutput().
assQuestionGUI::$object |
Definition at line 31 of file class.assQuestionGUI.php.
Referenced by callNewIdListeners().
assQuestionGUI::$question_count |
question count in test
Definition at line 45 of file class.assQuestionGUI.php.
Referenced by getQuestionCount().
assQuestionGUI::$sequence_no |
sequence number in test
Definition at line 41 of file class.assQuestionGUI.php.
Referenced by getSequenceNumber().
|
private |
Definition at line 49 of file class.assQuestionGUI.php.
Referenced by getTargetGuiClass(), and setTargetGuiClass().
|
private |
Definition at line 47 of file class.assQuestionGUI.php.
Referenced by getTaxonomyIds(), and setTaxonomyIds().
assQuestionGUI::$tpl |
Definition at line 33 of file class.assQuestionGUI.php.
Referenced by __construct(), assClozeTestGUI\addBasicQuestionFormProperties(), assNumericGUI\getAggregatedAnswersView(), assTextSubsetGUI\getAggregatedAnswersView(), assOrderingHorizontalGUI\getAggregatedAnswersView(), assSingleChoiceGUI\getAggregatedAnswersView(), assMultipleChoiceGUI\getAggregatedAnswersView(), assClozeTestGUI\getAggregatedAnswersView(), assMatchingQuestionGUI\getAggregatedAnswersView(), assOrderingQuestionGUI\getAggregatedAnswersView(), assClozeTestGUI\getNumericGapAggregation(), assClozeTestGUI\getSelectGapAggregation(), assClozeTestGUI\getTextGapAggregation(), assNumericGUI\renderAggregateView(), assTextSubsetGUI\renderAggregateView(), assOrderingHorizontalGUI\renderAggregateView(), assSingleChoiceGUI\renderAggregateView(), assMultipleChoiceGUI\renderAggregateView(), assClozeTestGUI\renderAggregateView(), assOrderingQuestionGUI\renderAggregateView(), assMultipleChoiceGUI\renderVariantsView(), and assMatchingQuestionGUI\renderVariantsView().
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.