ILIAS
release_4-3 Revision
|
Basic GUI class for assessment questions. More...
Public Member Functions | |
__construct () | |
assQuestionGUI constructor | |
& | executeCommand () |
execute command | |
getCommand ($cmd) | |
getType () | |
needed for page editor compliance | |
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="") | |
sync () | |
cancelSync () | |
saveFeedback () | |
Saves the feedback for a single choice question. | |
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. | |
setSelfAssessmentEditingMode ($a_selfassessmenteditingmode) | |
Set Self-Assessment Editing Mode. | |
getSelfAssessmentEditingMode () | |
Get Self-Assessment Editing Mode. | |
setPreventRteUsage ($a_val) | |
Set prevent rte usage. | |
getPreventRteUsage () | |
Get prevent rte usage. | |
setDefaultNrOfTries ($a_defaultnroftries) | |
Set Default Nr of Tries. | |
getDefaultNrOfTries () | |
Get Default Nr of Tries. | |
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. | |
feedback ($checkonly=false) | |
Creates the output of the feedback page for the question. | |
outQuestionType () | |
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 () |
Data Fields | |
$object | |
$tpl | |
$lng | |
$error | |
$errormessage | |
$sequence_no | |
sequence number in test | |
$question_count | |
question count in test | |
$prevent_rte_usage = false | |
do not use rte for editing |
Protected Member Functions | |
addTab_QuestionHints (ilTabsGUI $tabs) | |
adds the hints tab to ilTabsGUI |
Basic GUI class for assessment questions.
The assQuestionGUI class encapsulates basic GUI functions for assessment questions.
assQuestionGUI: ilPageObjectGUI
Definition at line 39 of file class.assQuestionGUI.php.
assQuestionGUI::__construct | ( | ) |
assQuestionGUI constructor
Definition at line 72 of file class.assQuestionGUI.php.
References $ilCtrl, $lng, and $tpl.
Referenced by assMatchingQuestionGUI\__construct(), assOrderingHorizontalGUI\__construct(), assErrorTextGUI\__construct(), assFileUploadGUI\__construct(), assTextSubsetGUI\__construct(), assJavaAppletGUI\__construct(), assTextQuestionGUI\__construct(), assFlashQuestionGUI\__construct(), assNumericGUI\__construct(), assClozeTestGUI\__construct(), assImagemapQuestionGUI\__construct(), assMultipleChoiceGUI\__construct(), assOrderingQuestionGUI\__construct(), and assSingleChoiceGUI\__construct().
assQuestionGUI::_getClassNameForQType | ( | $q_type | ) |
Definition at line 242 of file class.assQuestionGUI.php.
Referenced by _getGUIClassNameForId().
assQuestionGUI::_getGUIClassNameForId | ( | $a_q_id | ) |
Definition at line 233 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 assQuestion\_includeClass(), and assQuestion\getQuestionTypeFromDb().
Referenced by ilObjQuestionPoolGUI\addLocatorItems(), ilTestExpressPageObjectGUI\addPageOfQuestions(), ilObjQuestionPoolGUI\createQuestionForTestObject(), createQuestionGUI(), ilObjQuestionPoolGUI\createQuestionObject(), ilPCQuestionGUI\edit(), ilObjQuestionPoolGUI\editQuestionForTestObject(), ilTestExpressPageObjectGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilObjQuestionPoolGUI\executeCommand(), ilQuestionEditGUI\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.
Definition at line 911 of file class.assQuestionGUI.php.
References $title, ilObjAdvancedEditing\_getUsedHTMLTags(), getDefaultNrOfTries(), getSelfAssessmentEditingMode(), ilUtil\prepareFormOutput(), ilDurationInputGUI\setShowHours(), ilTextInputGUI\setValue(), ilNumberInputGUI\setValue(), and ilTextAreaInputGUI\setValue().
Referenced by assFileUploadGUI\editQuestion(), assOrderingHorizontalGUI\editQuestion(), assNumericGUI\editQuestion(), assTextSubsetGUI\editQuestion(), assErrorTextGUI\editQuestion(), assTextQuestionGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), assFlashQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), and assOrderingQuestionGUI\editQuestion().
assQuestionGUI::addErrorMessage | ( | $errormessage | ) |
Definition at line 759 of file class.assQuestionGUI.php.
References $errormessage.
assQuestionGUI::addGIT | ( | ) |
Definition at line 1682 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 803 of file class.assQuestionGUI.php.
assQuestionGUI::addPG | ( | ) |
Definition at line 1658 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 895 of file class.assQuestionGUI.php.
References getSelfAssessmentEditingMode().
Referenced by assFileUploadGUI\editQuestion(), assOrderingHorizontalGUI\editQuestion(), assNumericGUI\editQuestion(), assTextSubsetGUI\editQuestion(), assErrorTextGUI\editQuestion(), assTextQuestionGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), assFlashQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), and assOrderingQuestionGUI\editQuestion().
assQuestionGUI::addST | ( | ) |
Definition at line 1670 of file class.assQuestionGUI.php.
References $_GET, and ilUtil\sendSuccess().
|
protected |
adds the hints tab to ilTabsGUI
ilCtrl $ilCtrl
ilTabsGUI | $tabs |
Definition at line 1709 of file class.assQuestionGUI.php.
References $ilCtrl, ilTabsGUI\addTarget(), and ilAssQuestionHintsGUI\CMD_SHOW_LIST.
Referenced by assNumericGUI\setQuestionTabs(), assFileUploadGUI\setQuestionTabs(), assOrderingHorizontalGUI\setQuestionTabs(), assErrorTextGUI\setQuestionTabs(), assTextSubsetGUI\setQuestionTabs(), assFlashQuestionGUI\setQuestionTabs(), assTextQuestionGUI\setQuestionTabs(), assJavaAppletGUI\setQuestionTabs(), assSingleChoiceGUI\setQuestionTabs(), assImagemapQuestionGUI\setQuestionTabs(), assClozeTestGUI\setQuestionTabs(), assMultipleChoiceGUI\setQuestionTabs(), assOrderingQuestionGUI\setQuestionTabs(), and assMatchingQuestionGUI\setQuestionTabs().
assQuestionGUI::apply | ( | ) |
apply changes
Definition at line 695 of file class.assQuestionGUI.php.
References writePostData().
assQuestionGUI::assessment | ( | ) |
output assessment
Definition at line 139 of file class.assQuestionGUI.php.
References $_GET, and $ref_id.
assQuestionGUI::callNewIdListeners | ( | $a_new_id | ) |
Call the new id listeners.
Definition at line 815 of file class.assQuestionGUI.php.
References $object.
Referenced by save(), and saveReturn().
assQuestionGUI::cancel | ( | ) |
cancel action
Definition at line 381 of file class.assQuestionGUI.php.
References $_GET, and ilUtil\redirect().
assQuestionGUI::cancelExplorer | ( | ) |
Definition at line 1505 of file class.assQuestionGUI.php.
assQuestionGUI::cancelSync | ( | ) |
Definition at line 442 of file class.assQuestionGUI.php.
References $_GET, 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 257 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().
assQuestionGUI::feedback | ( | $checkonly = false | ) |
Creates the output of the feedback page for the question.
public
Reimplemented in assMatchingQuestionGUI, assClozeTestGUI, assMultipleChoiceGUI, assTextQuestionGUI, assImagemapQuestionGUI, assSingleChoiceGUI, and assErrorTextGUI.
Definition at line 1131 of file class.assQuestionGUI.php.
References $_GET, $errors, ilObjAdvancedEditing\_getUsedHTMLTags(), getPreventRteUsage(), getSelfAssessmentEditingMode(), and ilTextAreaInputGUI\setValue().
Referenced by assNumericGUI\saveFeedback(), assFileUploadGUI\saveFeedback(), assOrderingHorizontalGUI\saveFeedback(), assTextSubsetGUI\saveFeedback(), assFlashQuestionGUI\saveFeedback(), saveFeedback(), assJavaAppletGUI\saveFeedback(), and assOrderingQuestionGUI\saveFeedback().
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 1050 of file class.assQuestionGUI.php.
References $pass, and ilObjTest\getManualFeedback().
Referenced by assFileUploadGUI\getSolutionOutput(), assNumericGUI\getSolutionOutput(), assTextSubsetGUI\getSolutionOutput(), assJavaAppletGUI\getSolutionOutput(), assSingleChoiceGUI\getSolutionOutput(), assOrderingQuestionGUI\getSolutionOutput(), and assImagemapQuestionGUI\getSolutionOutput().
assQuestionGUI::getAsValueAttribute | ( | $a_value | ) |
Returns a HTML value attribute.
mixed | $a_value | A given text or value |
Definition at line 788 of file class.assQuestionGUI.php.
References $result.
assQuestionGUI::getCommand | ( | $cmd | ) |
Reimplemented in assImagemapQuestionGUI, assFlashQuestionGUI, assMultipleChoiceGUI, assOrderingQuestionGUI, assSingleChoiceGUI, assClozeTestGUI, assNumericGUI, assErrorTextGUI, assFileUploadGUI, assJavaAppletGUI, assOrderingHorizontalGUI, assTextSubsetGUI, and assMatchingQuestionGUI.
Definition at line 113 of file class.assQuestionGUI.php.
References $cmd.
Referenced by executeCommand().
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 709 of file class.assQuestionGUI.php.
References $path.
Referenced by outPageSelector().
assQuestionGUI::getDefaultNrOfTries | ( | ) |
Get Default Nr of Tries.
Definition at line 887 of file class.assQuestionGUI.php.
Referenced by addBasicQuestionFormProperties().
assQuestionGUI::getErrorMessage | ( | ) |
Definition at line 749 of file class.assQuestionGUI.php.
References $errormessage.
Referenced by assTextQuestionGUI\addSuggestedSolution(), and assFlashQuestionGUI\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 1086 of file class.assQuestionGUI.php.
References $pass, and ilObjTest\getManualFeedback().
Referenced by assErrorTextGUI\getSolutionOutput(), assTextQuestionGUI\getSolutionOutput(), assMatchingQuestionGUI\getSolutionOutput(), and assClozeTestGUI\getSolutionOutput().
assQuestionGUI::getILIASPage | ( | $html = "" | ) |
Returns the ILIAS Page around a question.
Definition at line 279 of file class.assQuestionGUI.php.
References $_GET, and ilPageObjectGUI\setTemplateTargetVar().
Referenced by assOrderingHorizontalGUI\getPreview(), assFileUploadGUI\getPreview(), assErrorTextGUI\getPreview(), assNumericGUI\getPreview(), assTextSubsetGUI\getPreview(), assFlashQuestionGUI\getPreview(), assClozeTestGUI\getPreview(), assTextQuestionGUI\getPreview(), assJavaAppletGUI\getPreview(), assSingleChoiceGUI\getPreview(), assOrderingQuestionGUI\getPreview(), assMultipleChoiceGUI\getPreview(), assImagemapQuestionGUI\getPreview(), assMatchingQuestionGUI\getPreview(), assMatchingQuestionGUI\getPreviewJS(), assOrderingHorizontalGUI\getTestOutput(), assFileUploadGUI\getTestOutput(), and assErrorTextGUI\getTestOutput().
assQuestionGUI::getPreventRteUsage | ( | ) |
Get prevent rte usage.
Definition at line 867 of file class.assQuestionGUI.php.
References $prevent_rte_usage.
Referenced by assErrorTextGUI\feedback(), assSingleChoiceGUI\feedback(), assImagemapQuestionGUI\feedback(), assTextQuestionGUI\feedback(), assMultipleChoiceGUI\feedback(), assClozeTestGUI\feedback(), feedback(), and assMatchingQuestionGUI\feedback().
assQuestionGUI::getQuestionCount | ( | ) |
Definition at line 744 of file class.assQuestionGUI.php.
References $question_count.
Referenced by outQuestionPage().
assQuestionGUI::getQuestionTemplate | ( | ) |
get question template
Definition at line 266 of file class.assQuestionGUI.php.
Referenced by assTextQuestionGUI\addSuggestedSolution(), assImagemapQuestionGUI\areaEditor(), assFileUploadGUI\editQuestion(), assOrderingHorizontalGUI\editQuestion(), assNumericGUI\editQuestion(), assTextSubsetGUI\editQuestion(), assErrorTextGUI\editQuestion(), assTextQuestionGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), assFlashQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), and assOrderingQuestionGUI\editQuestion().
assQuestionGUI::getQuestionType | ( | ) |
Returns the question type string.
Returns the question type string
Definition at line 776 of file class.assQuestionGUI.php.
Referenced by getType().
assQuestionGUI::getSelfAssessmentEditingMode | ( | ) |
Get Self-Assessment Editing Mode.
Definition at line 847 of file class.assQuestionGUI.php.
Referenced by addBasicQuestionFormProperties(), addQuestionFormCommandButtons(), assTextSubsetGUI\editQuestion(), assErrorTextGUI\editQuestion(), assTextQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), assOrderingQuestionGUI\editQuestion(), assErrorTextGUI\feedback(), assSingleChoiceGUI\feedback(), assImagemapQuestionGUI\feedback(), assTextQuestionGUI\feedback(), assMultipleChoiceGUI\feedback(), assClozeTestGUI\feedback(), feedback(), assMatchingQuestionGUI\feedback(), assMatchingQuestionGUI\writePostData(), assTextQuestionGUI\writePostData(), assErrorTextGUI\writePostData(), assOrderingHorizontalGUI\writePostData(), assTextSubsetGUI\writePostData(), assSingleChoiceGUI\writePostData(), assMultipleChoiceGUI\writePostData(), assClozeTestGUI\writePostData(), assImagemapQuestionGUI\writePostData(), and assOrderingQuestionGUI\writePostData().
assQuestionGUI::getSelfAssessmentTags | ( | ) |
Get tags allowed in question tags in self assessment mode.
Definition at line 1020 of file class.assQuestionGUI.php.
References ilUtil\getSecureTags().
Referenced by ilPCQuestion\copyPoolQuestionIntoPage().
assQuestionGUI::getSequenceNumber | ( | ) |
Definition at line 734 of file class.assQuestionGUI.php.
References $sequence_no.
Referenced by outQuestionPage().
|
abstract |
Reimplemented in assClozeTestGUI, assImagemapQuestionGUI, assMatchingQuestionGUI, assOrderingQuestionGUI, assMultipleChoiceGUI, assSingleChoiceGUI, assTextQuestionGUI, assJavaAppletGUI, assFlashQuestionGUI, assNumericGUI, assTextSubsetGUI, assErrorTextGUI, assFileUploadGUI, 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 assMatchingQuestionGUI, assClozeTestGUI, assOrderingQuestionGUI, assMultipleChoiceGUI, assImagemapQuestionGUI, assSingleChoiceGUI, assJavaAppletGUI, assTextQuestionGUI, assErrorTextGUI, assFlashQuestionGUI, assTextSubsetGUI, assOrderingHorizontalGUI, assFileUploadGUI, and assNumericGUI.
assQuestionGUI::getType | ( | ) |
needed for page editor compliance
Definition at line 121 of file class.assQuestionGUI.php.
References getQuestionType().
assQuestionGUI::isAutosaveable | ( | ) |
Definition at line 1754 of file class.assQuestionGUI.php.
assQuestionGUI::isSaveCommand | ( | ) |
Definition at line 1694 of file class.assQuestionGUI.php.
Referenced by assFileUploadGUI\editQuestion(), assOrderingHorizontalGUI\editQuestion(), assNumericGUI\editQuestion(), assTextSubsetGUI\editQuestion(), assErrorTextGUI\editQuestion(), assTextQuestionGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), assFlashQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), and assOrderingQuestionGUI\editQuestion().
assQuestionGUI::linkChilds | ( | ) |
Definition at line 1635 of file class.assQuestionGUI.php.
References $_GET, outChapterSelector(), outGlossarySelector(), outPageSelector(), and ilUtil\sendSuccess().
assQuestionGUI::originalSyncForm | ( | $return_to = "" | ) |
Definition at line 407 of file class.assQuestionGUI.php.
References $_REQUEST.
Referenced by saveFeedback(), and suggestedsolution().
assQuestionGUI::outAdditionalOutput | ( | ) |
assQuestionGUI::outChapterSelector | ( | ) |
Definition at line 1574 of file class.assQuestionGUI.php.
References $_GET.
Referenced by linkChilds().
assQuestionGUI::outGlossarySelector | ( | ) |
Definition at line 1607 of file class.assQuestionGUI.php.
References $_GET.
Referenced by linkChilds().
assQuestionGUI::outPageSelector | ( | ) |
Definition at line 1510 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 305 of file class.assQuestionGUI.php.
References $_GET, ilObjTest\_getTitleOutput(), getQuestionCount(), getSequenceNumber(), ilObjTest\isQuestionObligatory(), and ilPageObjectGUI\setTemplateTargetVar().
Referenced by assOrderingHorizontalGUI\getTestOutput(), assErrorTextGUI\getTestOutput(), assNumericGUI\getTestOutput(), assFileUploadGUI\getTestOutput(), assTextSubsetGUI\getTestOutput(), assFlashQuestionGUI\getTestOutput(), assTextQuestionGUI\getTestOutput(), assJavaAppletGUI\getTestOutput(), assSingleChoiceGUI\getTestOutput(), assImagemapQuestionGUI\getTestOutput(), assMultipleChoiceGUI\getTestOutput(), assOrderingQuestionGUI\getTestOutput(), assClozeTestGUI\getTestOutput(), assMatchingQuestionGUI\getTestOutput(), and assMatchingQuestionGUI\getTestOutputJS().
assQuestionGUI::outQuestionType | ( | ) |
Definition at line 1191 of file class.assQuestionGUI.php.
References $_GET, assQuestion\_getQuestionTypeName(), assQuestion\_questionExistsInPool(), and ilUtil\getImagePath().
Referenced by assFileUploadGUI\editQuestion(), assOrderingHorizontalGUI\editQuestion(), assNumericGUI\editQuestion(), assTextSubsetGUI\editQuestion(), assErrorTextGUI\editQuestion(), assTextQuestionGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), assFlashQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), and assOrderingQuestionGUI\editQuestion().
assQuestionGUI::outSolutionExplorer | ( | ) |
Definition at line 1429 of file class.assQuestionGUI.php.
References $_GET, ilUtil\sendInfo(), and ilExplorer\setExpand().
assQuestionGUI::save | ( | ) |
save question
in express mode, so add question to test directly
Definition at line 533 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::saveEdit | ( | ) |
save question
Definition at line 482 of file class.assQuestionGUI.php.
References $_GET, $_SESSION, $ilUser, $result, $test, assQuestion\_isWriteable(), ilUtil\redirect(), ilUtil\sendSuccess(), and writePostData().
assQuestionGUI::saveFeedback | ( | ) |
Saves the feedback for a single choice question.
Saves the feedback for a single choice question
public
Reimplemented in assMatchingQuestionGUI, assOrderingQuestionGUI, assClozeTestGUI, assMultipleChoiceGUI, assImagemapQuestionGUI, assJavaAppletGUI, assSingleChoiceGUI, assTextQuestionGUI, assFlashQuestionGUI, assTextSubsetGUI, assOrderingHorizontalGUI, assErrorTextGUI, assFileUploadGUI, and assNumericGUI.
Definition at line 462 of file class.assQuestionGUI.php.
References $_GET, $ilUser, assQuestion\_isWriteable(), feedback(), originalSyncForm(), and ilUtil\sendSuccess().
assQuestionGUI::saveReturn | ( | ) |
save question
Definition at line 623 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 1465 of file class.assQuestionGUI.php.
References $_POST, and suggestedsolution().
assQuestionGUI::setDefaultNrOfTries | ( | $a_defaultnroftries | ) |
Set Default Nr of Tries.
int | $a_defaultnroftries | Default Nr. of Tries |
Definition at line 877 of file class.assQuestionGUI.php.
assQuestionGUI::setErrorMessage | ( | $errormessage | ) |
Definition at line 754 of file class.assQuestionGUI.php.
References $errormessage.
Referenced by assMatchingQuestionGUI\__construct(), assOrderingHorizontalGUI\__construct(), assFileUploadGUI\__construct(), assErrorTextGUI\__construct(), and assFlashQuestionGUI\writePostData().
assQuestionGUI::setPreventRteUsage | ( | $a_val | ) |
Set prevent rte usage.
boolean | prevent rte usage |
Definition at line 857 of file class.assQuestionGUI.php.
assQuestionGUI::setQuestionCount | ( | $a_question_count | ) |
Definition at line 739 of file class.assQuestionGUI.php.
assQuestionGUI::setQuestionTabs | ( | ) |
Reimplemented in assMatchingQuestionGUI, assOrderingQuestionGUI, assMultipleChoiceGUI, assClozeTestGUI, assImagemapQuestionGUI, assSingleChoiceGUI, assJavaAppletGUI, assTextQuestionGUI, assFlashQuestionGUI, assTextSubsetGUI, assErrorTextGUI, assOrderingHorizontalGUI, assFileUploadGUI, and assNumericGUI.
Definition at line 1699 of file class.assQuestionGUI.php.
assQuestionGUI::setSelfAssessmentEditingMode | ( | $a_selfassessmenteditingmode | ) |
Set Self-Assessment Editing Mode.
boolean | $a_selfassessmenteditingmode | Self-Assessment Editing Mode |
Definition at line 837 of file class.assQuestionGUI.php.
assQuestionGUI::setSequenceNumber | ( | $nr | ) |
Definition at line 729 of file class.assQuestionGUI.php.
assQuestionGUI::showHints | ( | ) |
Definition at line 1759 of file class.assQuestionGUI.php.
References $ilCtrl, and ilAssQuestionHintsGUI\CMD_SHOW_LIST.
assQuestionGUI::suggestedsolution | ( | ) |
Allows to add suggested solutions for questions.
public
Definition at line 1217 of file class.assQuestionGUI.php.
References $_GET, $_POST, $file, $ilUser, $res, $title, assQuestion\_getInternalLinkHref(), assQuestion\_isWriteable(), getSolutionOutput(), ilUtil\makeDirParents(), ilUtil\moveUploadedFile(), originalSyncForm(), ilUtil\prepareFormOutput(), ilUtil\renameExecutables(), ilUtil\sendInfo(), ilUtil\sendSuccess(), ilRadioMatrixInputGUI\setOptions(), and ilTextAreaInputGUI\setValue().
Referenced by saveSuggestedSolution().
assQuestionGUI::sync | ( | ) |
Definition at line 424 of file class.assQuestionGUI.php.
References $_GET, and ilUtil\redirect().
assQuestionGUI::writePostData | ( | ) |
Evaluates a posted edit form and writes the form data in the question object.
Definition at line 132 of file class.assQuestionGUI.php.
Referenced by assOrderingQuestionGUI\addanswers(), assTextSubsetGUI\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\removeanswers(), assTextSubsetGUI\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(), saveReturn(), assFlashQuestionGUI\suggestRange(), assOrderingQuestionGUI\upanswers(), assOrderingQuestionGUI\uploadanswers(), assSingleChoiceGUI\uploadchoice(), assMultipleChoiceGUI\uploadchoice(), assMatchingQuestionGUI\uploaddefinitions(), and assMatchingQuestionGUI\uploadterms().
assQuestionGUI::$error |
Definition at line 52 of file class.assQuestionGUI.php.
assQuestionGUI::$errormessage |
Definition at line 53 of file class.assQuestionGUI.php.
Referenced by addErrorMessage(), getErrorMessage(), and setErrorMessage().
assQuestionGUI::$lng |
Definition at line 51 of file class.assQuestionGUI.php.
Referenced by __construct().
assQuestionGUI::$object |
Definition at line 48 of file class.assQuestionGUI.php.
Referenced by callNewIdListeners().
assQuestionGUI::$prevent_rte_usage = false |
do not use rte for editing
Definition at line 67 of file class.assQuestionGUI.php.
Referenced by getPreventRteUsage().
assQuestionGUI::$question_count |
question count in test
Definition at line 62 of file class.assQuestionGUI.php.
Referenced by getQuestionCount().
assQuestionGUI::$sequence_no |
sequence number in test
Definition at line 58 of file class.assQuestionGUI.php.
Referenced by getSequenceNumber().
assQuestionGUI::$tpl |
Definition at line 50 of file class.assQuestionGUI.php.
Referenced by __construct().