| ILIAS
    Release_4_3_x_branch Revision 61807
    | 
SingleChoice survey question GUI representation. More...
 Inheritance diagram for SurveySingleChoiceQuestionGUI:
 Inheritance diagram for SurveySingleChoiceQuestionGUI: Collaboration diagram for SurveySingleChoiceQuestionGUI:
 Collaboration diagram for SurveySingleChoiceQuestionGUI:| Public Member Functions | |
| SurveySingleChoiceQuestionGUI ($id=-1) | |
| SurveySingleChoiceQuestionGUI constructor. | |
| writePostData ($always=false) | |
| Evaluates a posted edit form and writes the form data in the question object. | |
| editQuestion ($checkonly=FALSE) | |
| Creates an output of the edit form for the question. | |
| addanswers () | |
| Add a new answer. | |
| removeanswers () | |
| Remove an answer. | |
| upanswers () | |
| Move an answer up. | |
| downanswers () | |
| Move an answer down. | |
| wizardanswers ($save_post_data=true) | |
| Creates an output for the addition of phrases. | |
| cancelViewPhrase () | |
| Cancels the form adding a phrase. | |
| addSelectedPhrase () | |
| Adds a selected phrase. | |
| addStandardNumbers () | |
| Creates an output for the addition of standard numbers. | |
| cancelStandardNumbers () | |
| Cancels the form adding standard numbers. | |
| insertStandardNumbers () | |
| Insert standard numbers to the question. | |
| savePhraseanswers ($haserror=false) | |
| Creates an output to save the current answers as a phrase. | |
| cancelSavePhrase () | |
| Cancels the form saving a phrase. | |
| confirmSavePhrase () | |
| Save a new phrase to the database. | |
| getWorkingForm ($working_data="", $question_title=1, $show_questiontext=1, $error_message="", $survey_id=null) | |
| Creates the question output form for the learner. | |
| getPrintView ($question_title=1, $show_questiontext=1, $survey_id=null) | |
| Creates a HTML representation of the question. | |
| setQuestionTabs () | |
| getCumulatedResultsDetails ($survey_id, $counter) | |
| Creates the detailed output of the cumulated results for the question. | |
|  Public Member Functions inherited from SurveyQuestionGUI | |
| SurveyQuestionGUI () | |
| SurveyQuestion constructor. | |
| addErrorMessage ($errormessage) | |
| outErrorMessages () | |
| & | executeCommand () | 
| execute command | |
| getCommand ($cmd) | |
| _getGUIClassNameForId ($a_q_id) | |
| _getClassNameForQType ($q_type) | |
| originalSyncForm () | |
| sync () | |
| cancelSync () | |
| redirectAfterSaving ($a_return=false) | |
| Redirect to calling survey or to edit form. | |
| saveSync () | |
| save question and return to calling survey | |
| saveReturn () | |
| save question and return to calling survey | |
| save ($a_return=false, $a_sync=false) | |
| save question | |
| cancel () | |
| cancelDeleteCategory () | |
| Cancels the form adding a phrase. | |
| material ($checkonly=FALSE) | |
| Material tab of the survey questions. | |
| deleteMaterial () | |
| addMaterial () | |
| Add materials to a question. | |
| removeMaterial () | |
| cancelExplorer () | |
| addPG () | |
| addST () | |
| addGIT () | |
| linkChilds () | |
| getPrintView ($question_title=1, $show_questiontext=1) | |
| Creates a HTML representation of the question. | |
| setQuestionTabsForClass ($guiclass) | |
| getQuestionType () | |
| Returns the question type string. | |
| getCumulatedResultRow ($counter, $css_class, $survey_id) | |
| Creates a the cumulated results row for the question. | |
| editQuestion () | |
| isSaveCommand (array $a_cmds=array()) | |
| preview () | |
| Creates a preview of the question. | |
| Additional Inherited Members | |
|  Static Public Member Functions inherited from SurveyQuestionGUI | |
| static & | _getQuestionGUI ($questiontype, $question_id=-1) | 
| Creates a question gui representation. | |
|  Data Fields inherited from SurveyQuestionGUI | |
| $object | |
| $tpl | |
| $lng | |
| $cumulated | |
| An array containing the cumulated results of the question for a given survey. | |
|  Protected Member Functions inherited from SurveyQuestionGUI | |
| addCommandButtons ($a_form) | |
| getMaterialOutput () | |
| Creates the HTML output of the question material(s) | |
| outQuestionText ($template) | |
| renderChart ($a_id, $a_variables) | |
| copySyncForm () | |
| syncCopies () | |
SingleChoice survey question GUI representation.
The SurveySingleChoiceQuestionGUI class encapsulates the GUI representation for single choice survey question types.
Definition at line 38 of file class.SurveySingleChoiceQuestionGUI.php.
| SurveySingleChoiceQuestionGUI::addanswers | ( | ) | 
Add a new answer.
Definition at line 210 of file class.SurveySingleChoiceQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveySingleChoiceQuestionGUI::addSelectedPhrase | ( | ) | 
Adds a selected phrase.
public
Definition at line 312 of file class.SurveySingleChoiceQuestionGUI.php.
References $_POST, addStandardNumbers(), ilUtil\sendInfo(), ilUtil\sendSuccess(), and wizardanswers().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveySingleChoiceQuestionGUI::addStandardNumbers | ( | ) | 
Creates an output for the addition of standard numbers.
public
Definition at line 341 of file class.SurveySingleChoiceQuestionGUI.php.
References $_POST.
Referenced by addSelectedPhrase(), and insertStandardNumbers().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| SurveySingleChoiceQuestionGUI::cancelSavePhrase | ( | ) | 
Cancels the form saving a phrase.
public
Definition at line 453 of file class.SurveySingleChoiceQuestionGUI.php.
References ilUtil\sendInfo().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveySingleChoiceQuestionGUI::cancelStandardNumbers | ( | ) | 
Cancels the form adding standard numbers.
public
Definition at line 369 of file class.SurveySingleChoiceQuestionGUI.php.
References ilUtil\sendInfo().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveySingleChoiceQuestionGUI::cancelViewPhrase | ( | ) | 
Cancels the form adding a phrase.
public
Definition at line 301 of file class.SurveySingleChoiceQuestionGUI.php.
References ilUtil\sendInfo().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveySingleChoiceQuestionGUI::confirmSavePhrase | ( | ) | 
Save a new phrase to the database.
public
Definition at line 464 of file class.SurveySingleChoiceQuestionGUI.php.
References $_POST, savePhraseanswers(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveySingleChoiceQuestionGUI::downanswers | ( | ) | 
Move an answer down.
Definition at line 243 of file class.SurveySingleChoiceQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveySingleChoiceQuestionGUI::editQuestion | ( | $checkonly = FALSE | ) | 
Creates an output of the edit form for the question.
public
Definition at line 107 of file class.SurveySingleChoiceQuestionGUI.php.
References $errors, $title, ilObjAdvancedEditing\_getUsedHTMLTags(), SurveyQuestionGUI\addCommandButtons(), SurveyQuestionGUI\isSaveCommand(), ilFormPropertyGUI\setRequired(), ilTextInputGUI\setValue(), ilCheckboxInputGUI\setValue(), and ilTextAreaInputGUI\setValue().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveySingleChoiceQuestionGUI::getCumulatedResultsDetails | ( | $survey_id, | |
| $counter | |||
| ) | 
Creates the detailed output of the cumulated results for the question.
| integer | $survey_id | The database ID of the survey | 
| integer | $counter | The counter of the question position in the survey | 
Definition at line 849 of file class.SurveySingleChoiceQuestionGUI.php.
References ilObjSurvey\_getNrOfParticipants(), and SurveyQuestionGUI\renderChart().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveySingleChoiceQuestionGUI::getPrintView | ( | $question_title = 1, | |
| $show_questiontext = 1, | |||
| $survey_id = null | |||
| ) | 
Creates a HTML representation of the question.
private
Definition at line 675 of file class.SurveySingleChoiceQuestionGUI.php.
References ilUtil\getHtmlPath(), ilUtil\getImagePath(), SurveyQuestionGUI\outQuestionText(), and ilUtil\prepareFormOutput().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveySingleChoiceQuestionGUI::getWorkingForm | ( | $working_data = "", | |
| $question_title = 1, | |||
| $show_questiontext = 1, | |||
| $error_message = "", | |||
| $survey_id = null | |||
| ) | 
Creates the question output form for the learner.
public
Definition at line 491 of file class.SurveySingleChoiceQuestionGUI.php.
References SurveyQuestionGUI\getMaterialOutput(), SurveyQuestionGUI\outQuestionText(), and ilUtil\prepareFormOutput().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveySingleChoiceQuestionGUI::insertStandardNumbers | ( | ) | 
Insert standard numbers to the question.
public
Definition at line 380 of file class.SurveySingleChoiceQuestionGUI.php.
References $_POST, addStandardNumbers(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveySingleChoiceQuestionGUI::removeanswers | ( | ) | 
Remove an answer.
Definition at line 221 of file class.SurveySingleChoiceQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveySingleChoiceQuestionGUI::savePhraseanswers | ( | $haserror = false | ) | 
Creates an output to save the current answers as a phrase.
public
Definition at line 406 of file class.SurveySingleChoiceQuestionGUI.php.
References $_POST, $_SESSION, $data, $result, and writePostData().
Referenced by confirmSavePhrase().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| SurveySingleChoiceQuestionGUI::setQuestionTabs | ( | ) | 
Definition at line 773 of file class.SurveySingleChoiceQuestionGUI.php.
References $_GET, $_REQUEST, $_SESSION, $ref_id, $title, and SurveyQuestionGUI\getQuestionType().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveySingleChoiceQuestionGUI::SurveySingleChoiceQuestionGUI | ( | $id = -1 | ) | 
SurveySingleChoiceQuestionGUI constructor.
The constructor takes possible arguments an creates an instance of the SurveySingleChoiceQuestionGUI object.
| integer | $id | The database id of a single choice question object public | 
Definition at line 49 of file class.SurveySingleChoiceQuestionGUI.php.
References SurveyQuestionGUI\SurveyQuestionGUI().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveySingleChoiceQuestionGUI::upanswers | ( | ) | 
Move an answer up.
Definition at line 232 of file class.SurveySingleChoiceQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveySingleChoiceQuestionGUI::wizardanswers | ( | $save_post_data = true | ) | 
Creates an output for the addition of phrases.
public
Definition at line 256 of file class.SurveySingleChoiceQuestionGUI.php.
References $result, ilSurveyPhrases\_getAvailablePhrases(), ilSurveyPhrases\_getCategoriesForPhrase(), and writePostData().
Referenced by addSelectedPhrase().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| SurveySingleChoiceQuestionGUI::writePostData | ( | $always = false | ) | 
Evaluates a posted edit form and writes the form data in the question object.
Definition at line 69 of file class.SurveySingleChoiceQuestionGUI.php.
References $_POST, and SurveyQuestionGUI\editQuestion().
Referenced by addanswers(), downanswers(), removeanswers(), savePhraseanswers(), upanswers(), and wizardanswers().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function: