|
ILIAS
Release_3_10_x_branch Revision 61812
|
Ordering question GUI representation. More...
Inheritance diagram for assOrderingQuestionGUI:
Collaboration diagram for assOrderingQuestionGUI:Public Member Functions | |
| assOrderingQuestionGUI ($id=-1) | |
| assOrderingQuestionGUI constructor | |
| getCommand ($cmd) | |
| editQuestion ($ok=true) | |
| Creates an output of the edit form for the question. | |
| addItem () | |
| delete () | |
| delete matching pair | |
| upload () | |
| upload matching picture | |
| writePostData () | |
| Evaluates a posted edit form and writes the form data in the question object. | |
| outQuestionForTest ($formaction, $active_id, $pass=NULL, $is_postponed=FALSE, $user_post_solution=FALSE) | |
| getSolutionOutput ($active_id, $pass=NULL, $graphicalOutput=FALSE, $result_output=FALSE, $show_question_only=TRUE, $show_feedback=FALSE, $show_correct_solution=FALSE) | |
| getPreview ($show_question_only=FALSE) | |
| getTestOutput ($active_id, $pass=NULL, $is_postponed=FALSE, $user_post_solution=FALSE) | |
| checkInput () | |
| check input fields | |
| addSuggestedSolution () | |
| Handler for cmd[addSuggestedSolution] to add a suggested solution for the question. | |
| editMode () | |
| saveFeedback () | |
| Saves the feedback for a single choice question. | |
| feedback () | |
| Creates the output of the feedback page for a single choice question. | |
| setQuestionTabs () | |
| Sets the ILIAS tabs for this question type. | |
Public Member Functions inherited from assQuestionGUI | |
| assQuestionGUI () | |
| assQuestionGUI constructor | |
| & | executeCommand () |
| execute command | |
| getType () | |
| needed for page editor compliance | |
| outOtherQuestionData () | |
| Sets the extra fields i.e. | |
| 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 () | |
| saveEdit () | |
| save question | |
| save () | |
| save question | |
| apply () | |
| apply changes | |
| cancelExplorer () | |
| 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. | |
| outQuestionType () | |
Additional Inherited Members | |
Data Fields inherited from assQuestionGUI | |
| $object | |
| $tpl | |
| $lng | |
| $error | |
| $errormessage | |
| $sequence_no | |
| sequence number in test | |
| $question_count | |
| question count in test | |
Ordering question GUI representation.
The assOrderingQuestionGUI class encapsulates the GUI representation for ordering questions.
Definition at line 37 of file class.assOrderingQuestionGUI.php.
| assOrderingQuestionGUI::addItem | ( | ) |
Definition at line 352 of file class.assOrderingQuestionGUI.php.
References $ok, checkInput(), editQuestion(), OQ_PICTURES, OQ_TERMS, and writePostData().
Here is the call graph for this function:| assOrderingQuestionGUI::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 from assQuestionGUI.
Definition at line 879 of file class.assOrderingQuestionGUI.php.
References $_SESSION, checkInput(), editQuestion(), assQuestionGUI\getErrorMessage(), assQuestionGUI\getQuestionTemplate(), ilUtil\sendInfo(), and writePostData().
Here is the call graph for this function:| assOrderingQuestionGUI::assOrderingQuestionGUI | ( | $id = -1 | ) |
assOrderingQuestionGUI constructor
The constructor takes possible arguments an creates an instance of the assOrderingQuestionGUI object.
| integer | $id | The database id of a ordering question object public |
Definition at line 48 of file class.assOrderingQuestionGUI.php.
References assQuestionGUI\assQuestionGUI().
Here is the call graph for this function:| assOrderingQuestionGUI::checkInput | ( | ) |
check input fields
Definition at line 870 of file class.assOrderingQuestionGUI.php.
Referenced by addItem(), and addSuggestedSolution().
Here is the caller graph for this function:| assOrderingQuestionGUI::delete | ( | ) |
delete matching pair
Definition at line 393 of file class.assOrderingQuestionGUI.php.
References editQuestion(), and writePostData().
Here is the call graph for this function:| assOrderingQuestionGUI::editMode | ( | ) |
Definition at line 904 of file class.assOrderingQuestionGUI.php.
References editQuestion(), OQ_TERMS, and writePostData().
Here is the call graph for this function:| assOrderingQuestionGUI::editQuestion | ( | $ok = true | ) |
Creates an output of the edit form for the question.
Creates an output of the edit form for the question
public
Definition at line 83 of file class.assOrderingQuestionGUI.php.
References $_GET, $filename, $ok, assQuestion\_getInternalLinkHref(), ilRTE\_getRTEClassname(), ilObject\_lookupType(), assQuestionGUI\getQuestionTemplate(), OQ_PICTURES, OQ_TERMS, assQuestionGUI\outOtherQuestionData(), assQuestionGUI\outQuestionType(), ilUtil\prepareFormOutput(), and ilUtil\sendInfo().
Referenced by addItem(), addSuggestedSolution(), delete(), editMode(), and upload().
Here is the call graph for this function:
Here is the caller graph for this function:| assOrderingQuestionGUI::feedback | ( | ) |
Creates the output of the feedback page for a single choice question.
Creates the output of the feedback page for a single choice question
public
Reimplemented from assQuestionGUI.
Definition at line 940 of file class.assOrderingQuestionGUI.php.
References $_GET, ilRTE\_getRTEClassname(), ilObject\_lookupType(), and ilUtil\prepareFormOutput().
Here is the call graph for this function:| assOrderingQuestionGUI::getCommand | ( | $cmd | ) |
Reimplemented from assQuestionGUI.
Definition at line 61 of file class.assOrderingQuestionGUI.php.
References $cmd.
| assOrderingQuestionGUI::getPreview | ( | $show_question_only = FALSE | ) |
Definition at line 640 of file class.assOrderingQuestionGUI.php.
References assQuestionGUI\getILIASPage(), and OQ_PICTURES.
Here is the call graph for this function:| assOrderingQuestionGUI::getSolutionOutput | ( | $active_id, | |
$pass = NULL, |
|||
$graphicalOutput = FALSE, |
|||
$result_output = FALSE, |
|||
$show_question_only = TRUE, |
|||
$show_feedback = FALSE, |
|||
$show_correct_solution = FALSE |
|||
| ) |
Definition at line 519 of file class.assOrderingQuestionGUI.php.
References $ok, $pass, assQuestionGUI\getAnswerFeedbackOutput(), assQuestionGUI\getILIASPage(), ilUtil\getImagePath(), and OQ_PICTURES.
Here is the call graph for this function:| assOrderingQuestionGUI::getTestOutput | ( | $active_id, | |
$pass = NULL, |
|||
$is_postponed = FALSE, |
|||
$user_post_solution = FALSE |
|||
| ) |
Definition at line 689 of file class.assOrderingQuestionGUI.php.
References $_SESSION, $pass, ilObjTest\_getPass(), ilObjTest\_getUsePreviousAnswers(), ilUtil\getImagePath(), ilUtil\getStyleSheetLocation(), OQ_PICTURES, OUTPUT_JAVASCRIPT, and assQuestionGUI\outQuestionPage().
Referenced by outQuestionForTest().
Here is the call graph for this function:
Here is the caller graph for this function:| assOrderingQuestionGUI::outQuestionForTest | ( | $formaction, | |
| $active_id, | |||
$pass = NULL, |
|||
$is_postponed = FALSE, |
|||
$user_post_solution = FALSE |
|||
| ) |
Definition at line 512 of file class.assOrderingQuestionGUI.php.
References $pass, and getTestOutput().
Here is the call graph for this function:| assOrderingQuestionGUI::saveFeedback | ( | ) |
Saves the feedback for a single choice question.
Saves the feedback for a single choice question
public
Reimplemented from assQuestionGUI.
Definition at line 924 of file class.assOrderingQuestionGUI.php.
References ilObjAdvancedEditing\_getUsedHTMLTagsAsString(), and ilUtil\stripSlashes().
Here is the call graph for this function:| assOrderingQuestionGUI::setQuestionTabs | ( | ) |
Sets the ILIAS tabs for this question type.
Sets the ILIAS tabs for this question type
public
Definition at line 974 of file class.assOrderingQuestionGUI.php.
References $_GET, and $ref_id.
| assOrderingQuestionGUI::upload | ( | ) |
upload matching picture
Definition at line 412 of file class.assOrderingQuestionGUI.php.
References editQuestion(), and writePostData().
Here is the call graph for this function:| assOrderingQuestionGUI::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 from assQuestionGUI.
Definition at line 426 of file class.assOrderingQuestionGUI.php.
References $result, ilObjAdvancedEditing\_getUsedHTMLTagsAsString(), OQ_PICTURES, OQ_TERMS, assQuestionGUI\setErrorMessage(), ilUtil\stripSlashes(), and assQuestionGUI\writeOtherPostData().
Referenced by addItem(), addSuggestedSolution(), delete(), editMode(), and upload().
Here is the call graph for this function:
Here is the caller graph for this function: