|
ILIAS
Release_3_10_x_branch Revision 61812
|
Single choice question GUI representation. More...
Inheritance diagram for assSingleChoiceGUI:
Collaboration diagram for assSingleChoiceGUI:Public Member Functions | |
| assSingleChoiceGUI ($id=-1) | |
| assSingleChoiceGUI constructor | |
| getCommand ($cmd) | |
| editQuestion () | |
| Creates an output of the edit form for the question. | |
| add () | |
| add an answer | |
| deleteAnswer () | |
| delete checked answers | |
| checkInput () | |
| check input fields | |
| writePostData () | |
| Evaluates a posted edit form and writes the form data in the question object. | |
| outQuestionForTest ($formaction, $active_id, $pass=NULL, $is_postponed=FALSE, $use_post_solutions=FALSE, $show_feedback=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, $use_post_solutions=FALSE, $show_feedback=FALSE) | |
| addSuggestedSolution () | |
| Handler for cmd[addSuggestedSolution] to add a suggested solution for the question. | |
| upload () | |
| upload an image | |
| deleteImage () | |
| 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. | |
| getChoiceKeys () | |
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 () | |
Data Fields | |
| $choiceKeys | |
Data Fields inherited from assQuestionGUI | |
| $object | |
| $tpl | |
| $lng | |
| $error | |
| $errormessage | |
| $sequence_no | |
| sequence number in test | |
| $question_count | |
| question count in test | |
Single choice question GUI representation.
The assSingleChoiceGUI class encapsulates the GUI representation for single choice questions.
Definition at line 37 of file class.assSingleChoiceGUI.php.
| assSingleChoiceGUI::add | ( | ) |
add an answer
Definition at line 323 of file class.assSingleChoiceGUI.php.
References checkInput(), editQuestion(), ilUtil\sendInfo(), and writePostData().
Here is the call graph for this function:| assSingleChoiceGUI::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 841 of file class.assSingleChoiceGUI.php.
References $_SESSION, checkInput(), editQuestion(), assQuestionGUI\getErrorMessage(), assQuestionGUI\getQuestionTemplate(), ilUtil\sendInfo(), and writePostData().
Here is the call graph for this function:| assSingleChoiceGUI::assSingleChoiceGUI | ( | $id = -1 | ) |
assSingleChoiceGUI constructor
The constructor takes possible arguments an creates an instance of the assSingleChoiceGUI object.
| integer | $id | The database id of a single choice question object public |
Definition at line 49 of file class.assSingleChoiceGUI.php.
References assQuestionGUI\assQuestionGUI().
Here is the call graph for this function:| assSingleChoiceGUI::checkInput | ( | ) |
check input fields
Definition at line 411 of file class.assSingleChoiceGUI.php.
References $cmd.
Referenced by add(), and addSuggestedSolution().
Here is the caller graph for this function:| assSingleChoiceGUI::deleteAnswer | ( | ) |
delete checked answers
Definition at line 393 of file class.assSingleChoiceGUI.php.
References editQuestion(), and writePostData().
Here is the call graph for this function:| assSingleChoiceGUI::deleteImage | ( | ) |
Definition at line 875 of file class.assSingleChoiceGUI.php.
References editQuestion(), assQuestionGUI\getErrorMessage(), ilUtil\sendInfo(), and writePostData().
Here is the call graph for this function:| assSingleChoiceGUI::editMode | ( | ) |
Definition at line 903 of file class.assSingleChoiceGUI.php.
References editQuestion(), and writePostData().
Here is the call graph for this function:| assSingleChoiceGUI::editQuestion | ( | ) |
Creates an output of the edit form for the question.
Creates an output of the edit form for the question
public
Definition at line 82 of file class.assSingleChoiceGUI.php.
References $_GET, assQuestion\_getInternalLinkHref(), ilRTE\_getRTEClassname(), ilObject\_lookupType(), ilUtil\getImagePath(), assQuestionGUI\getQuestionTemplate(), assQuestionGUI\outOtherQuestionData(), assQuestionGUI\outQuestionType(), and ilUtil\prepareFormOutput().
Referenced by add(), addSuggestedSolution(), deleteAnswer(), deleteImage(), editMode(), and upload().
Here is the call graph for this function:
Here is the caller graph for this function:| assSingleChoiceGUI::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.assSingleChoiceGUI.php.
References $_GET, ilRTE\_getRTEClassname(), ilObject\_lookupType(), and ilUtil\prepareFormOutput().
Here is the call graph for this function:| assSingleChoiceGUI::getChoiceKeys | ( | ) |
Definition at line 1079 of file class.assSingleChoiceGUI.php.
References $_GET, $_SESSION, and $choiceKeys.
Referenced by getPreview(), getSolutionOutput(), and getTestOutput().
Here is the caller graph for this function:| assSingleChoiceGUI::getCommand | ( | $cmd | ) |
Reimplemented from assQuestionGUI.
Definition at line 62 of file class.assSingleChoiceGUI.php.
References $cmd.
| assSingleChoiceGUI::getPreview | ( | $show_question_only = FALSE | ) |
Definition at line 731 of file class.assSingleChoiceGUI.php.
References getChoiceKeys(), assQuestionGUI\getILIASPage(), and ilUtil\prepareFormOutput().
Here is the call graph for this function:| assSingleChoiceGUI::getSolutionOutput | ( | $active_id, | |
$pass = NULL, |
|||
$graphicalOutput = FALSE, |
|||
$result_output = FALSE, |
|||
$show_question_only = TRUE, |
|||
$show_feedback = FALSE, |
|||
$show_correct_solution = FALSE |
|||
| ) |
Definition at line 582 of file class.assSingleChoiceGUI.php.
References $ok, $pass, assQuestionGUI\getAnswerFeedbackOutput(), getChoiceKeys(), ilUtil\getHtmlPath(), assQuestionGUI\getILIASPage(), ilUtil\getImagePath(), and ilUtil\prepareFormOutput().
Here is the call graph for this function:| assSingleChoiceGUI::getTestOutput | ( | $active_id, | |
$pass = NULL, |
|||
$is_postponed = FALSE, |
|||
$use_post_solutions = FALSE, |
|||
$show_feedback = FALSE |
|||
| ) |
Definition at line 771 of file class.assSingleChoiceGUI.php.
References $pass, ilObjTest\_getPass(), ilObjTest\_getUsePreviousAnswers(), getChoiceKeys(), assQuestionGUI\outQuestionPage(), and ilUtil\prepareFormOutput().
Referenced by outQuestionForTest().
Here is the call graph for this function:
Here is the caller graph for this function:| assSingleChoiceGUI::outQuestionForTest | ( | $formaction, | |
| $active_id, | |||
$pass = NULL, |
|||
$is_postponed = FALSE, |
|||
$use_post_solutions = FALSE, |
|||
$show_feedback = FALSE |
|||
| ) |
Definition at line 575 of file class.assSingleChoiceGUI.php.
References $pass, and getTestOutput().
Here is the call graph for this function:| assSingleChoiceGUI::saveFeedback | ( | ) |
Saves the feedback for a single choice question.
Saves the feedback for a single choice question
public
Reimplemented from assQuestionGUI.
Definition at line 920 of file class.assSingleChoiceGUI.php.
References ilObjAdvancedEditing\_getUsedHTMLTagsAsString(), and ilUtil\stripSlashes().
Here is the call graph for this function:| assSingleChoiceGUI::setQuestionTabs | ( | ) |
Sets the ILIAS tabs for this question type.
Sets the ILIAS tabs for this question type
public
Definition at line 984 of file class.assSingleChoiceGUI.php.
References $_GET, and $ref_id.
| assSingleChoiceGUI::upload | ( | ) |
upload an image
Definition at line 869 of file class.assSingleChoiceGUI.php.
References editQuestion(), and writePostData().
Here is the call graph for this function:| assSingleChoiceGUI::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 445 of file class.assSingleChoiceGUI.php.
References $result, ilObjAdvancedEditing\_getUsedHTMLTagsAsString(), assQuestionGUI\getErrorMessage(), ilUtil\sendInfo(), assQuestionGUI\setErrorMessage(), ilUtil\stripSlashes(), and assQuestionGUI\writeOtherPostData().
Referenced by add(), addSuggestedSolution(), deleteAnswer(), deleteImage(), editMode(), and upload().
Here is the call graph for this function:
Here is the caller graph for this function:| assSingleChoiceGUI::$choiceKeys |
Definition at line 39 of file class.assSingleChoiceGUI.php.
Referenced by getChoiceKeys().