ILIAS
Release_4_2_x_branch Revision 61807
|
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 specific feedback depending on the results of 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 () |
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 |
Basic GUI class for assessment questions.
The assQuestionGUI class encapsulates basic GUI functions for assessment questions.
assQuestionGUI: ilPageObjectGUI
Definition at line 38 of file class.assQuestionGUI.php.
assQuestionGUI::__construct | ( | ) |
assQuestionGUI constructor
Definition at line 71 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(), assOrderingQuestionGUI\__construct(), assFlashQuestionGUI\__construct(), assClozeTestGUI\__construct(), assNumericGUI\__construct(), assMultipleChoiceGUI\__construct(), assImagemapQuestionGUI\__construct(), and assSingleChoiceGUI\__construct().
assQuestionGUI::_getClassNameForQType | ( | $q_type | ) |
Definition at line 241 of file class.assQuestionGUI.php.
Referenced by _getGUIClassNameForId().
assQuestionGUI::_getGUIClassNameForId | ( | $a_q_id | ) |
Definition at line 232 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 214 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(), ilObjTestGUI\executeCommand(), ilTestExpressPageObjectGUI\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 894 of file class.assQuestionGUI.php.
References $title, ilObjAdvancedEditing\_getUsedHTMLTags(), getDefaultNrOfTries(), getSelfAssessmentEditingMode(), ilUtil\prepareFormOutput(), ilDurationInputGUI\setShowHours(), ilTextInputGUI\setValue(), ilNumberInputGUI\setValue(), and ilTextAreaInputGUI\setValue().
Referenced by assTextQuestionGUI\editQuestion(), assFileUploadGUI\editQuestion(), assOrderingHorizontalGUI\editQuestion(), assNumericGUI\editQuestion(), assTextSubsetGUI\editQuestion(), assErrorTextGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), assFlashQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assOrderingQuestionGUI\editQuestion(), and assMatchingQuestionGUI\editQuestion().
assQuestionGUI::addErrorMessage | ( | $errormessage | ) |
Definition at line 742 of file class.assQuestionGUI.php.
References $errormessage.
assQuestionGUI::addGIT | ( | ) |
Definition at line 1613 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 786 of file class.assQuestionGUI.php.
assQuestionGUI::addPG | ( | ) |
Definition at line 1589 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.
References getSelfAssessmentEditingMode().
Referenced by assTextQuestionGUI\editQuestion(), assFileUploadGUI\editQuestion(), assOrderingHorizontalGUI\editQuestion(), assNumericGUI\editQuestion(), assTextSubsetGUI\editQuestion(), assErrorTextGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), assFlashQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assOrderingQuestionGUI\editQuestion(), and assMatchingQuestionGUI\editQuestion().
assQuestionGUI::addST | ( | ) |
Definition at line 1601 of file class.assQuestionGUI.php.
References $_GET, and ilUtil\sendSuccess().
assQuestionGUI::apply | ( | ) |
apply changes
Definition at line 678 of file class.assQuestionGUI.php.
References writePostData().
assQuestionGUI::assessment | ( | ) |
output assessment
Definition at line 138 of file class.assQuestionGUI.php.
References $_GET, and $ref_id.
assQuestionGUI::callNewIdListeners | ( | $a_new_id | ) |
Call the new id listeners.
Definition at line 798 of file class.assQuestionGUI.php.
References $object.
Referenced by save(), and saveReturn().
assQuestionGUI::cancel | ( | ) |
cancel action
Definition at line 364 of file class.assQuestionGUI.php.
References $_GET, and ilUtil\redirect().
assQuestionGUI::cancelExplorer | ( | ) |
Definition at line 1436 of file class.assQuestionGUI.php.
assQuestionGUI::cancelSync | ( | ) |
Definition at line 425 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 256 of file class.assQuestionGUI.php.
References _getQuestionGUI().
& assQuestionGUI::executeCommand | ( | ) |
execute command
Definition at line 96 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 assImagemapQuestionGUI, assMultipleChoiceGUI, and assSingleChoiceGUI.
Definition at line 1066 of file class.assQuestionGUI.php.
References $_GET, $errors, ilObjAdvancedEditing\_getUsedHTMLTags(), getPreventRteUsage(), getSelfAssessmentEditingMode(), and ilTextAreaInputGUI\setValue().
Referenced by assNumericGUI\saveFeedback(), assErrorTextGUI\saveFeedback(), assFileUploadGUI\saveFeedback(), assOrderingHorizontalGUI\saveFeedback(), assTextQuestionGUI\saveFeedback(), assTextSubsetGUI\saveFeedback(), assFlashQuestionGUI\saveFeedback(), saveFeedback(), assJavaAppletGUI\saveFeedback(), assClozeTestGUI\saveFeedback(), assOrderingQuestionGUI\saveFeedback(), and assMatchingQuestionGUI\saveFeedback().
assQuestionGUI::getAnswerFeedbackOutput | ( | $active_id, | |
$pass | |||
) |
Returns the answer specific feedback depending on the results of the question.
Returns the answer specific feedback depending on the results of the question
integer | $active_id | Active ID of the user |
integer | $pass | Active pass |
Definition at line 1034 of file class.assQuestionGUI.php.
References $pass, and ilObjTest\getManualFeedback().
Referenced by assFileUploadGUI\getSolutionOutput(), assTextQuestionGUI\getSolutionOutput(), assNumericGUI\getSolutionOutput(), assTextSubsetGUI\getSolutionOutput(), assJavaAppletGUI\getSolutionOutput(), assSingleChoiceGUI\getSolutionOutput(), assMultipleChoiceGUI\getSolutionOutput(), assOrderingQuestionGUI\getSolutionOutput(), assMatchingQuestionGUI\getSolutionOutput(), assClozeTestGUI\getSolutionOutput(), and assImagemapQuestionGUI\getSolutionOutput().
assQuestionGUI::getAsValueAttribute | ( | $a_value | ) |
Returns a HTML value attribute.
mixed | $a_value | A given text or value |
Definition at line 771 of file class.assQuestionGUI.php.
References $result.
assQuestionGUI::getCommand | ( | $cmd | ) |
Reimplemented in assImagemapQuestionGUI, assFlashQuestionGUI, assMultipleChoiceGUI, assSingleChoiceGUI, assClozeTestGUI, assNumericGUI, assOrderingQuestionGUI, assErrorTextGUI, assFileUploadGUI, assJavaAppletGUI, assOrderingHorizontalGUI, assTextSubsetGUI, and assMatchingQuestionGUI.
Definition at line 112 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 692 of file class.assQuestionGUI.php.
References $path.
Referenced by outPageSelector().
assQuestionGUI::getDefaultNrOfTries | ( | ) |
Get Default Nr of Tries.
Definition at line 870 of file class.assQuestionGUI.php.
Referenced by addBasicQuestionFormProperties().
assQuestionGUI::getErrorMessage | ( | ) |
Definition at line 732 of file class.assQuestionGUI.php.
References $errormessage.
Referenced by assTextQuestionGUI\addSuggestedSolution(), and assFlashQuestionGUI\suggestRange().
assQuestionGUI::getILIASPage | ( | $html = "" | ) |
Returns the ILIAS Page around a question.
Definition at line 278 of file class.assQuestionGUI.php.
References $_GET, and ilPageObjectGUI\setTemplateTargetVar().
Referenced by assErrorTextGUI\getPreview(), assOrderingHorizontalGUI\getPreview(), assNumericGUI\getPreview(), assTextQuestionGUI\getPreview(), assFileUploadGUI\getPreview(), assTextSubsetGUI\getPreview(), assFlashQuestionGUI\getPreview(), assClozeTestGUI\getPreview(), assJavaAppletGUI\getPreview(), assSingleChoiceGUI\getPreview(), assMultipleChoiceGUI\getPreview(), assOrderingQuestionGUI\getPreview(), assImagemapQuestionGUI\getPreview(), assMatchingQuestionGUI\getPreview(), assMatchingQuestionGUI\getPreviewJS(), assOrderingHorizontalGUI\getSolutionOutput(), assFileUploadGUI\getSolutionOutput(), assTextQuestionGUI\getSolutionOutput(), assNumericGUI\getSolutionOutput(), assErrorTextGUI\getSolutionOutput(), assTextSubsetGUI\getSolutionOutput(), assFlashQuestionGUI\getSolutionOutput(), assJavaAppletGUI\getSolutionOutput(), assSingleChoiceGUI\getSolutionOutput(), assMultipleChoiceGUI\getSolutionOutput(), assOrderingQuestionGUI\getSolutionOutput(), assMatchingQuestionGUI\getSolutionOutput(), assClozeTestGUI\getSolutionOutput(), assImagemapQuestionGUI\getSolutionOutput(), assErrorTextGUI\getTestOutput(), assOrderingHorizontalGUI\getTestOutput(), and assFileUploadGUI\getTestOutput().
assQuestionGUI::getPreventRteUsage | ( | ) |
Get prevent rte usage.
Definition at line 850 of file class.assQuestionGUI.php.
References $prevent_rte_usage.
Referenced by assSingleChoiceGUI\feedback(), assMultipleChoiceGUI\feedback(), assImagemapQuestionGUI\feedback(), and feedback().
assQuestionGUI::getQuestionCount | ( | ) |
Definition at line 727 of file class.assQuestionGUI.php.
References $question_count.
Referenced by outQuestionPage().
assQuestionGUI::getQuestionTemplate | ( | ) |
get question template
Definition at line 265 of file class.assQuestionGUI.php.
Referenced by assTextQuestionGUI\addSuggestedSolution(), assImagemapQuestionGUI\areaEditor(), assTextQuestionGUI\editQuestion(), assFileUploadGUI\editQuestion(), assOrderingHorizontalGUI\editQuestion(), assNumericGUI\editQuestion(), assTextSubsetGUI\editQuestion(), assErrorTextGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), assFlashQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assOrderingQuestionGUI\editQuestion(), and assMatchingQuestionGUI\editQuestion().
assQuestionGUI::getQuestionType | ( | ) |
Returns the question type string.
Returns the question type string
Definition at line 759 of file class.assQuestionGUI.php.
Referenced by getType().
assQuestionGUI::getSelfAssessmentEditingMode | ( | ) |
Get Self-Assessment Editing Mode.
Definition at line 830 of file class.assQuestionGUI.php.
Referenced by addBasicQuestionFormProperties(), addQuestionFormCommandButtons(), assTextQuestionGUI\editQuestion(), assTextSubsetGUI\editQuestion(), assErrorTextGUI\editQuestion(), assClozeTestGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assOrderingQuestionGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), assSingleChoiceGUI\feedback(), assMultipleChoiceGUI\feedback(), assImagemapQuestionGUI\feedback(), feedback(), assMatchingQuestionGUI\writePostData(), assTextQuestionGUI\writePostData(), assTextSubsetGUI\writePostData(), assErrorTextGUI\writePostData(), assOrderingHorizontalGUI\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 1003 of file class.assQuestionGUI.php.
References ilUtil\getSecureTags().
Referenced by ilPCQuestion\copyPoolQuestionIntoPage().
assQuestionGUI::getSequenceNumber | ( | ) |
Definition at line 717 of file class.assQuestionGUI.php.
References $sequence_no.
Referenced by outQuestionPage().
assQuestionGUI::getType | ( | ) |
needed for page editor compliance
Definition at line 120 of file class.assQuestionGUI.php.
References getQuestionType().
assQuestionGUI::isSaveCommand | ( | ) |
Definition at line 1625 of file class.assQuestionGUI.php.
Referenced by assTextQuestionGUI\editQuestion(), assFileUploadGUI\editQuestion(), assOrderingHorizontalGUI\editQuestion(), assNumericGUI\editQuestion(), assTextSubsetGUI\editQuestion(), assErrorTextGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), assFlashQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assOrderingQuestionGUI\editQuestion(), and assMatchingQuestionGUI\editQuestion().
assQuestionGUI::linkChilds | ( | ) |
Definition at line 1566 of file class.assQuestionGUI.php.
References $_GET, outChapterSelector(), outGlossarySelector(), outPageSelector(), and ilUtil\sendSuccess().
assQuestionGUI::originalSyncForm | ( | $return_to = "" | ) |
Definition at line 390 of file class.assQuestionGUI.php.
References $_REQUEST.
Referenced by saveFeedback(), and suggestedsolution().
assQuestionGUI::outAdditionalOutput | ( | ) |
assQuestionGUI::outChapterSelector | ( | ) |
Definition at line 1505 of file class.assQuestionGUI.php.
References $_GET.
Referenced by linkChilds().
assQuestionGUI::outGlossarySelector | ( | ) |
Definition at line 1538 of file class.assQuestionGUI.php.
References $_GET.
Referenced by linkChilds().
assQuestionGUI::outPageSelector | ( | ) |
Definition at line 1441 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 304 of file class.assQuestionGUI.php.
References $_GET, ilObjTest\_getTitleOutput(), getQuestionCount(), getSequenceNumber(), and ilPageObjectGUI\setTemplateTargetVar().
Referenced by assErrorTextGUI\getTestOutput(), assOrderingHorizontalGUI\getTestOutput(), assNumericGUI\getTestOutput(), assFileUploadGUI\getTestOutput(), assTextQuestionGUI\getTestOutput(), assTextSubsetGUI\getTestOutput(), assFlashQuestionGUI\getTestOutput(), assSingleChoiceGUI\getTestOutput(), assJavaAppletGUI\getTestOutput(), assMultipleChoiceGUI\getTestOutput(), assImagemapQuestionGUI\getTestOutput(), assClozeTestGUI\getTestOutput(), assOrderingQuestionGUI\getTestOutput(), assMatchingQuestionGUI\getTestOutput(), and assMatchingQuestionGUI\getTestOutputJS().
assQuestionGUI::outQuestionType | ( | ) |
Definition at line 1126 of file class.assQuestionGUI.php.
References $_GET, assQuestion\_getQuestionTypeName(), assQuestion\_questionExistsInPool(), and ilUtil\getImagePath().
Referenced by assTextQuestionGUI\editQuestion(), assFileUploadGUI\editQuestion(), assOrderingHorizontalGUI\editQuestion(), assNumericGUI\editQuestion(), assTextSubsetGUI\editQuestion(), assErrorTextGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), assFlashQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assOrderingQuestionGUI\editQuestion(), and assMatchingQuestionGUI\editQuestion().
assQuestionGUI::outSolutionExplorer | ( | ) |
Definition at line 1360 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 516 of file class.assQuestionGUI.php.
References $_GET, $_REQUEST, $_SESSION, $result, $test, assQuestion\_isWriteable(), assQuestion\_questionExistsInTest(), callNewIdListeners(), ilTestExpressPage\getReturnToPageLink(), ilUtil\redirect(), ilUtil\sendSuccess(), and writePostData().
assQuestionGUI::saveEdit | ( | ) |
save question
Definition at line 465 of file class.assQuestionGUI.php.
References $_GET, $_SESSION, $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, assImagemapQuestionGUI, assJavaAppletGUI, assMultipleChoiceGUI, assSingleChoiceGUI, assFlashQuestionGUI, assTextSubsetGUI, assTextQuestionGUI, assOrderingHorizontalGUI, assFileUploadGUI, assErrorTextGUI, and assNumericGUI.
Definition at line 445 of file class.assQuestionGUI.php.
References $_GET, assQuestion\_isWriteable(), feedback(), originalSyncForm(), and ilUtil\sendSuccess().
assQuestionGUI::saveReturn | ( | ) |
save question
Definition at line 606 of file class.assQuestionGUI.php.
References $_GET, $_REQUEST, $_SESSION, $result, $test, assQuestion\_isWriteable(), assQuestion\_questionExistsInTest(), callNewIdListeners(), ilTestExpressPage\getReturnToPageLink(), ilUtil\redirect(), ilUtil\sendSuccess(), and writePostData().
assQuestionGUI::saveSuggestedSolution | ( | ) |
Definition at line 1396 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 860 of file class.assQuestionGUI.php.
assQuestionGUI::setErrorMessage | ( | $errormessage | ) |
Definition at line 737 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 840 of file class.assQuestionGUI.php.
assQuestionGUI::setQuestionCount | ( | $a_question_count | ) |
Definition at line 722 of file class.assQuestionGUI.php.
assQuestionGUI::setSelfAssessmentEditingMode | ( | $a_selfassessmenteditingmode | ) |
Set Self-Assessment Editing Mode.
boolean | $a_selfassessmenteditingmode | Self-Assessment Editing Mode |
Definition at line 820 of file class.assQuestionGUI.php.
assQuestionGUI::setSequenceNumber | ( | $nr | ) |
Definition at line 712 of file class.assQuestionGUI.php.
assQuestionGUI::suggestedsolution | ( | ) |
Allows to add suggested solutions for questions.
public
Definition at line 1152 of file class.assQuestionGUI.php.
References $_GET, $_POST, $file, $res, $title, assQuestion\_getInternalLinkHref(), assQuestion\_isWriteable(), ilUtil\makeDirParents(), ilUtil\moveUploadedFile(), originalSyncForm(), ilUtil\prepareFormOutput(), ilUtil\sendInfo(), ilUtil\sendSuccess(), ilRadioMatrixInputGUI\setOptions(), and ilTextAreaInputGUI\setValue().
Referenced by saveSuggestedSolution().
assQuestionGUI::sync | ( | ) |
Definition at line 407 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 131 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 51 of file class.assQuestionGUI.php.
assQuestionGUI::$errormessage |
Definition at line 52 of file class.assQuestionGUI.php.
Referenced by addErrorMessage(), getErrorMessage(), and setErrorMessage().
assQuestionGUI::$lng |
Definition at line 50 of file class.assQuestionGUI.php.
Referenced by __construct().
assQuestionGUI::$object |
Definition at line 47 of file class.assQuestionGUI.php.
Referenced by callNewIdListeners().
assQuestionGUI::$prevent_rte_usage = false |
do not use rte for editing
Definition at line 66 of file class.assQuestionGUI.php.
Referenced by getPreventRteUsage().
assQuestionGUI::$question_count |
question count in test
Definition at line 61 of file class.assQuestionGUI.php.
Referenced by getQuestionCount().
assQuestionGUI::$sequence_no |
sequence number in test
Definition at line 57 of file class.assQuestionGUI.php.
Referenced by getSequenceNumber().
assQuestionGUI::$tpl |
Definition at line 49 of file class.assQuestionGUI.php.
Referenced by __construct().