|
ILIAS
Release_3_10_x_branch Revision 61812
|
Basic GUI class for assessment questions. More...
Inheritance diagram for assQuestionGUI:
Collaboration diagram for assQuestionGUI:Public Member Functions | |
| assQuestionGUI () | |
| assQuestionGUI constructor | |
| & | executeCommand () |
| execute command | |
| getCommand ($cmd) | |
| getType () | |
| needed for page editor compliance | |
| outOtherQuestionData () | |
| Sets the extra fields i.e. | |
| writePostData () | |
| Evaluates a posted edit form and writes the form data in the question object. | |
| assessment () | |
| output assessment | |
| writeOtherPostData ($result=0) | |
| Sets the other data i.e. | |
| & | _getQuestionGUI ($question_type, $question_id=-1) |
| Creates a question gui representation. | |
| _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 | |
| apply () | |
| apply changes | |
| cancelExplorer () | |
| addSuggestedSolution () | |
| Handler for cmd[addSuggestedSolution] to add a suggested solution for the question. | |
| removeSuggestedSolution () | |
| addPG () | |
| addST () | |
| addGIT () | |
| getContextPath ($cont_obj, $a_endnode_id, $a_startnode_id=1) | |
| get context path in content object tree | |
| linkChilds () | |
| 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. | |
| getAnswerFeedbackOutput ($active_id, $pass) | |
| Returns the answer specific feedback depending on the results of the question. | |
| feedback () | |
| Creates the output of the feedback page for a question. | |
| outQuestionType () | |
Data Fields | |
| $object | |
| $tpl | |
| $lng | |
| $error | |
| $errormessage | |
| $sequence_no | |
| sequence number in test | |
| $question_count | |
| question count in test | |
Basic GUI class for assessment questions.
The assQuestionGUI class encapsulates basic GUI functions for assessment questions.
Definition at line 36 of file class.assQuestionGUI.php.
| assQuestionGUI::_getClassNameForQType | ( | $q_type | ) |
Definition at line 274 of file class.assQuestionGUI.php.
Referenced by _getGUIClassNameForId().
Here is the caller graph for this function:| assQuestionGUI::_getGUIClassNameForId | ( | $a_q_id | ) |
Definition at line 265 of file class.assQuestionGUI.php.
References _getClassNameForQType(), and assQuestion\getQuestionTypeFromDb().
Referenced by ilObjQuestionPoolGUI\questionsObject().
Here is the call graph for this function:
Here is the caller graph for this function:| & assQuestionGUI::_getQuestionGUI | ( | $question_type, | |
$question_id = -1 |
|||
| ) |
Creates a question gui representation.
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 247 of file class.assQuestionGUI.php.
References assQuestion\_includeClass(), and assQuestion\getQuestionTypeFromDb().
Referenced by ilObjQuestionPoolGUI\addLocatorItems(), ilObjQuestionPoolGUI\createQuestionForTestObject(), createQuestionGUI(), ilObjQuestionPoolGUI\createQuestionObject(), ilPCQuestionGUI\edit(), ilObjQuestionPoolGUI\editQuestionForTestObject(), ilObjQuestionPoolGUI\executeCommand(), and ilObjQuestionPoolGUI\setTitleAndDescription().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestionGUI::addErrorMessage | ( | $errormessage | ) |
Definition at line 966 of file class.assQuestionGUI.php.
References $errormessage.
Referenced by assClozeTestGUI\setGapAnswers(), and assClozeTestGUI\setGapBounds().
Here is the caller graph for this function:| assQuestionGUI::addGIT | ( | ) |
Definition at line 750 of file class.assQuestionGUI.php.
References $_GET, and ilUtil\sendInfo().
Here is the call graph for this function:| assQuestionGUI::addPG | ( | ) |
Definition at line 718 of file class.assQuestionGUI.php.
References $_GET, and ilUtil\sendInfo().
Here is the call graph for this function:| assQuestionGUI::addST | ( | ) |
Definition at line 734 of file class.assQuestionGUI.php.
References $_GET, and ilUtil\sendInfo().
Here is the call graph for this function:| assQuestionGUI::addSuggestedSolution | ( | ) |
Handler for cmd[addSuggestedSolution] to add a suggested solution for the question.
Handler for cmd[addSuggestedSolution] to add a suggested solution for the question
public
Reimplemented in assClozeTestGUI, assMatchingQuestionGUI, assImagemapQuestionGUI, assOrderingQuestionGUI, assMultipleChoiceGUI, assSingleChoiceGUI, assJavaAppletGUI, assTextSubsetGUI, assNumericGUI, assTextQuestionGUI, and assQuestionTypeTemplateGUI.
Definition at line 639 of file class.assQuestionGUI.php.
References $_GET, ilUtil\sendInfo(), and ilExplorer\setExpand().
Here is the call graph for this function:| assQuestionGUI::apply | ( | ) |
apply changes
Definition at line 616 of file class.assQuestionGUI.php.
References writePostData().
Here is the call graph for this function:| assQuestionGUI::assessment | ( | ) |
output assessment
Definition at line 145 of file class.assQuestionGUI.php.
References $_GET, $ref_id, and ilUtil\sendInfo().
Here is the call graph for this function:| assQuestionGUI::assQuestionGUI | ( | ) |
assQuestionGUI constructor
assQuestionGUI constructor
public
Definition at line 68 of file class.assQuestionGUI.php.
References $ilCtrl, $lng, and $tpl.
Referenced by assClozeTestGUI\assClozeTestGUI(), assImagemapQuestionGUI\assImagemapQuestionGUI(), assJavaAppletGUI\assJavaAppletGUI(), assMatchingQuestionGUI\assMatchingQuestionGUI(), assMultipleChoiceGUI\assMultipleChoiceGUI(), assNumericGUI\assNumericGUI(), assOrderingQuestionGUI\assOrderingQuestionGUI(), assQuestionTypeTemplateGUI\assQuestionTypeTemplateGUI(), assSingleChoiceGUI\assSingleChoiceGUI(), assTextQuestionGUI\assTextQuestionGUI(), and assTextSubsetGUI\assTextSubsetGUI().
Here is the caller graph for this function:| assQuestionGUI::cancel | ( | ) |
cancel action
Definition at line 399 of file class.assQuestionGUI.php.
References $_GET, and ilUtil\redirect().
Here is the call graph for this function:| assQuestionGUI::cancelExplorer | ( | ) |
Definition at line 624 of file class.assQuestionGUI.php.
| assQuestionGUI::cancelSync | ( | ) |
Definition at line 458 of file class.assQuestionGUI.php.
References $_GET, and ilUtil\redirect().
Here is the call graph for this function:| & 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 289 of file class.assQuestionGUI.php.
References _getQuestionGUI().
Here is the call graph for this function:| & assQuestionGUI::executeCommand | ( | ) |
execute command
Definition at line 86 of file class.assQuestionGUI.php.
References $cmd, $ret, and getCommand().
Here is the call graph for this function:| assQuestionGUI::feedback | ( | ) |
Creates the output of the feedback page for a question.
Creates the output of the feedback page for a question
public
Reimplemented in assClozeTestGUI, assMatchingQuestionGUI, assMultipleChoiceGUI, assImagemapQuestionGUI, assOrderingQuestionGUI, assSingleChoiceGUI, assJavaAppletGUI, assTextSubsetGUI, assNumericGUI, assTextQuestionGUI, and assQuestionTypeTemplateGUI.
Definition at line 1049 of file class.assQuestionGUI.php.
Referenced by saveFeedback().
Here is the caller graph for this function:| 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 1015 of file class.assQuestionGUI.php.
References $pass, and ilObjTest\getManualFeedback().
Referenced by assTextQuestionGUI\getSolutionOutput(), assNumericGUI\getSolutionOutput(), assJavaAppletGUI\getSolutionOutput(), assTextSubsetGUI\getSolutionOutput(), assOrderingQuestionGUI\getSolutionOutput(), assMultipleChoiceGUI\getSolutionOutput(), assSingleChoiceGUI\getSolutionOutput(), assMatchingQuestionGUI\getSolutionOutput(), assImagemapQuestionGUI\getSolutionOutput(), and assClozeTestGUI\getSolutionOutput().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestionGUI::getAsValueAttribute | ( | $a_value | ) |
Returns a HTML value attribute.
| mixed | $a_value | A given text or value |
Definition at line 995 of file class.assQuestionGUI.php.
References $result.
| assQuestionGUI::getCommand | ( | $cmd | ) |
Reimplemented in assQuestionTypeTemplateGUI, assClozeTestGUI, assImagemapQuestionGUI, assMultipleChoiceGUI, assSingleChoiceGUI, assNumericGUI, assOrderingQuestionGUI, assJavaAppletGUI, assMatchingQuestionGUI, and assTextSubsetGUI.
Definition at line 102 of file class.assQuestionGUI.php.
References $cmd.
Referenced by executeCommand().
Here is the caller graph for this function:| 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 772 of file class.assQuestionGUI.php.
Referenced by linkChilds().
Here is the caller graph for this function:| assQuestionGUI::getErrorMessage | ( | ) |
Definition at line 956 of file class.assQuestionGUI.php.
References $errormessage.
Referenced by assImagemapQuestionGUI\addArea(), assQuestionTypeTemplateGUI\addSuggestedSolution(), assTextQuestionGUI\addSuggestedSolution(), assNumericGUI\addSuggestedSolution(), assTextSubsetGUI\addSuggestedSolution(), assJavaAppletGUI\addSuggestedSolution(), assSingleChoiceGUI\addSuggestedSolution(), assMultipleChoiceGUI\addSuggestedSolution(), assOrderingQuestionGUI\addSuggestedSolution(), assImagemapQuestionGUI\addSuggestedSolution(), assMatchingQuestionGUI\addSuggestedSolution(), assClozeTestGUI\addSuggestedSolution(), assSingleChoiceGUI\deleteImage(), assMultipleChoiceGUI\deleteImage(), save(), and assSingleChoiceGUI\writePostData().
Here is the caller graph for this function:| assQuestionGUI::getILIASPage | ( | $html = "" | ) |
Returns the ILIAS Page around a question.
Returns the ILIAS Page around a question
Definition at line 313 of file class.assQuestionGUI.php.
References $_GET, and ilPageObjectGUI\setTemplateTargetVar().
Referenced by assTextQuestionGUI\getPreview(), assNumericGUI\getPreview(), assTextSubsetGUI\getPreview(), assJavaAppletGUI\getPreview(), assOrderingQuestionGUI\getPreview(), assMatchingQuestionGUI\getPreview(), assSingleChoiceGUI\getPreview(), assMultipleChoiceGUI\getPreview(), assClozeTestGUI\getPreview(), assImagemapQuestionGUI\getPreview(), assTextQuestionGUI\getSolutionOutput(), assNumericGUI\getSolutionOutput(), assJavaAppletGUI\getSolutionOutput(), assTextSubsetGUI\getSolutionOutput(), assOrderingQuestionGUI\getSolutionOutput(), assMultipleChoiceGUI\getSolutionOutput(), assSingleChoiceGUI\getSolutionOutput(), assMatchingQuestionGUI\getSolutionOutput(), assImagemapQuestionGUI\getSolutionOutput(), and assClozeTestGUI\getSolutionOutput().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestionGUI::getQuestionCount | ( | ) |
Definition at line 951 of file class.assQuestionGUI.php.
References $question_count.
Referenced by outQuestionPage().
Here is the caller graph for this function:| assQuestionGUI::getQuestionTemplate | ( | ) |
get question template
Definition at line 298 of file class.assQuestionGUI.php.
Referenced by assQuestionTypeTemplateGUI\addSuggestedSolution(), assTextQuestionGUI\addSuggestedSolution(), assNumericGUI\addSuggestedSolution(), assTextSubsetGUI\addSuggestedSolution(), assJavaAppletGUI\addSuggestedSolution(), assSingleChoiceGUI\addSuggestedSolution(), assMultipleChoiceGUI\addSuggestedSolution(), assOrderingQuestionGUI\addSuggestedSolution(), assImagemapQuestionGUI\addSuggestedSolution(), assMatchingQuestionGUI\addSuggestedSolution(), assClozeTestGUI\addSuggestedSolution(), assTextQuestionGUI\editQuestion(), assTextSubsetGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), assNumericGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assOrderingQuestionGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), and linkChilds().
Here is the caller graph for this function:| assQuestionGUI::getQuestionType | ( | ) |
Returns the question type string.
Returns the question type string
Definition at line 983 of file class.assQuestionGUI.php.
Referenced by getType().
Here is the caller graph for this function:| assQuestionGUI::getSequenceNumber | ( | ) |
Definition at line 941 of file class.assQuestionGUI.php.
References $sequence_no.
Referenced by outQuestionPage().
Here is the caller graph for this function:| assQuestionGUI::getType | ( | ) |
needed for page editor compliance
Definition at line 110 of file class.assQuestionGUI.php.
References getQuestionType().
Here is the call graph for this function:| assQuestionGUI::linkChilds | ( | ) |
Definition at line 792 of file class.assQuestionGUI.php.
References $_GET, getContextPath(), ilLMPageObject\getPageList(), getQuestionTemplate(), ilUtil\prepareFormOutput(), and ilUtil\sendInfo().
Here is the call graph for this function:| assQuestionGUI::originalSyncForm | ( | $return_to = "" | ) |
Definition at line 425 of file class.assQuestionGUI.php.
Referenced by save(), saveEdit(), and saveFeedback().
Here is the caller graph for this function:| assQuestionGUI::outAdditionalOutput | ( | ) |
| assQuestionGUI::outOtherQuestionData | ( | ) |
Sets the extra fields i.e.
estimated working time of a question from a posted create/edit form
Sets the extra fields i.e. estimated working time of a question from a posted create/edit form
private
Definition at line 122 of file class.assQuestionGUI.php.
References ilUtil\makeTimeSelect().
Referenced by assTextSubsetGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), assNumericGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assOrderingQuestionGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), and assClozeTestGUI\editQuestion().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestionGUI::outQuestionPage | ( | $a_temp_var, | |
$a_postponed = false, |
|||
$active_id = "", |
|||
$html = "" |
|||
| ) |
output question page
Definition at line 339 of file class.assQuestionGUI.php.
References $_GET, ilObjTest\_getTitleOutput(), getQuestionCount(), getSequenceNumber(), and ilPageObjectGUI\setTemplateTargetVar().
Referenced by assTextQuestionGUI\getTestOutput(), assNumericGUI\getTestOutput(), assTextSubsetGUI\getTestOutput(), assJavaAppletGUI\getTestOutput(), assOrderingQuestionGUI\getTestOutput(), assSingleChoiceGUI\getTestOutput(), assMultipleChoiceGUI\getTestOutput(), assMatchingQuestionGUI\getTestOutput(), assImagemapQuestionGUI\getTestOutput(), and assClozeTestGUI\getTestOutput().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestionGUI::outQuestionType | ( | ) |
Definition at line 1054 of file class.assQuestionGUI.php.
References $_GET, assQuestion\_getQuestionTypeName(), and ilUtil\getImagePath().
Referenced by assTextSubsetGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), assNumericGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assOrderingQuestionGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), and assClozeTestGUI\editQuestion().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestionGUI::removeSuggestedSolution | ( | ) |
Reimplemented in assClozeTestGUI.
Definition at line 711 of file class.assQuestionGUI.php.
| assQuestionGUI::save | ( | ) |
save question
Reimplemented in assTextSubsetGUI.
Definition at line 553 of file class.assQuestionGUI.php.
References $_GET, $_SESSION, $result, $test, assQuestion\_isWriteable(), getErrorMessage(), originalSyncForm(), ilUtil\redirect(), ilUtil\sendInfo(), and writePostData().
Referenced by assImagemapQuestionGUI\saveShape(), assImagemapQuestionGUI\uploadingImage(), and assImagemapQuestionGUI\uploadingImagemap().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestionGUI::saveEdit | ( | ) |
save question
Reimplemented in assTextSubsetGUI.
Definition at line 497 of file class.assQuestionGUI.php.
References $_GET, $_SESSION, $result, $test, assQuestion\_isWriteable(), originalSyncForm(), ilUtil\redirect(), ilUtil\sendInfo(), and writePostData().
Here is the call graph for this function:| assQuestionGUI::saveFeedback | ( | ) |
Saves the feedback for a single choice question.
Saves the feedback for a single choice question
public
Reimplemented in assClozeTestGUI, assMatchingQuestionGUI, assMultipleChoiceGUI, assImagemapQuestionGUI, assOrderingQuestionGUI, assSingleChoiceGUI, assJavaAppletGUI, assTextSubsetGUI, assNumericGUI, assTextQuestionGUI, and assQuestionTypeTemplateGUI.
Definition at line 478 of file class.assQuestionGUI.php.
References $_GET, assQuestion\_isWriteable(), feedback(), and originalSyncForm().
Here is the call graph for this function:| assQuestionGUI::setErrorMessage | ( | $errormessage | ) |
Definition at line 961 of file class.assQuestionGUI.php.
References $errormessage.
Referenced by assTextQuestionGUI\writePostData(), assNumericGUI\writePostData(), assJavaAppletGUI\writePostData(), assClozeTestGUI\writePostData(), assTextSubsetGUI\writePostData(), assOrderingQuestionGUI\writePostData(), assMultipleChoiceGUI\writePostData(), assSingleChoiceGUI\writePostData(), and assMatchingQuestionGUI\writePostData().
Here is the caller graph for this function:| assQuestionGUI::setQuestionCount | ( | $a_question_count | ) |
Definition at line 946 of file class.assQuestionGUI.php.
| assQuestionGUI::setSequenceNumber | ( | $nr | ) |
Definition at line 936 of file class.assQuestionGUI.php.
| assQuestionGUI::sync | ( | ) |
Definition at line 440 of file class.assQuestionGUI.php.
References $_GET, and ilUtil\redirect().
Here is the call graph for this function:| assQuestionGUI::writeOtherPostData | ( | $result = 0 | ) |
Sets the other data i.e.
estimated working time of a question from a posted create/edit form
Sets the other data i.e. estimated working time of a question from a posted create/edit form
Definition at line 224 of file class.assQuestionGUI.php.
References ilUtil\stripSlashes().
Referenced by assNumericGUI\writePostData(), assJavaAppletGUI\writePostData(), assClozeTestGUI\writePostData(), assTextSubsetGUI\writePostData(), assOrderingQuestionGUI\writePostData(), assMultipleChoiceGUI\writePostData(), assSingleChoiceGUI\writePostData(), assMatchingQuestionGUI\writePostData(), and assImagemapQuestionGUI\writePostData().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestionGUI::writePostData | ( | ) |
Evaluates a posted edit form and writes the form data in the question object.
Evaluates a posted edit form and writes the form data in the question object
Reimplemented in assImagemapQuestionGUI, assMatchingQuestionGUI, assSingleChoiceGUI, assMultipleChoiceGUI, assOrderingQuestionGUI, assTextSubsetGUI, assClozeTestGUI, assJavaAppletGUI, assNumericGUI, and assTextQuestionGUI.
Definition at line 138 of file class.assQuestionGUI.php.
Referenced by assQuestionTypeTemplateGUI\addSuggestedSolution(), apply(), save(), and saveEdit().
Here is the caller graph for this function:| assQuestionGUI::$error |
Definition at line 49 of file class.assQuestionGUI.php.
Referenced by assClozeTestGUI\setGapAnswers(), assClozeTestGUI\setGapBounds(), and assClozeTestGUI\writePostData().
| assQuestionGUI::$errormessage |
Definition at line 50 of file class.assQuestionGUI.php.
Referenced by addErrorMessage(), getErrorMessage(), and setErrorMessage().
| assQuestionGUI::$lng |
Definition at line 48 of file class.assQuestionGUI.php.
Referenced by assQuestionGUI().
| assQuestionGUI::$object |
Definition at line 45 of file class.assQuestionGUI.php.
| assQuestionGUI::$question_count |
question count in test
Definition at line 59 of file class.assQuestionGUI.php.
Referenced by getQuestionCount().
| assQuestionGUI::$sequence_no |
sequence number in test
Definition at line 55 of file class.assQuestionGUI.php.
Referenced by getSequenceNumber().
| assQuestionGUI::$tpl |
Definition at line 47 of file class.assQuestionGUI.php.
Referenced by assQuestionGUI().