|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Basic class for all survey question types. More...
Inheritance diagram for SurveyQuestionGUI:
Collaboration diagram for SurveyQuestionGUI:Public Member Functions | |
| __construct ($a_id=-1) | |
| setQuestionTabs () | |
| & | executeCommand () |
| _getGUIClassNameForId ($a_q_id) | |
| _getClassNameForQType ($q_type) | |
| getQuestionType () | |
| Returns the question type string. More... | |
| setBackUrl ($a_url) | |
| setQuestionTabsForClass ($guiclass) | |
| getPrintView ($question_title=1, $show_questiontext=1) | |
| preview () | |
| Creates a preview of the question. More... | |
| getWorkingForm ($working_data="", $question_title=1, $show_questiontext=1, $error_message="", $survey_id=null) | |
| getCumulatedResultsDetails ($survey_id, $counter, $finished_ids) | |
| material ($checkonly=FALSE) | |
| Material tab of the survey questions. More... | |
| deleteMaterial () | |
| addMaterial () | |
| Add materials to a question. More... | |
| removeMaterial () | |
| cancelExplorer () | |
| addPG () | |
| addST () | |
| addGIT () | |
| linkChilds () | |
| savePhrase ($a_reload=false) | |
| Creates an output to save the current answers as a phrase. More... | |
| confirmSavePhrase () | |
| Save a new phrase to the database. More... | |
Static Public Member Functions | |
| static & | _getQuestionGUI ($questiontype, $question_id=-1) |
| Creates a question gui representation. More... | |
Data Fields | |
| $object | |
Protected Member Functions | |
| initObject () | |
| outQuestionText ($template) | |
| initEditForm () | |
| addCommandButtons ($a_form) | |
| editQuestion (ilPropertyFormGUI $a_form=null) | |
| saveSync () | |
| saveReturn () | |
| saveForm () | |
| save ($a_return=false, $a_sync=false) | |
| copySyncForm () | |
| syncCopies () | |
| originalSyncForm () | |
| sync () | |
| cancelSync () | |
| redirectAfterSaving ($a_return=false) | |
| Redirect to calling survey or to edit form. More... | |
| cancel () | |
| validateEditForm (ilPropertyFormGUI $a_form) | |
| addFieldsToEditForm (ilPropertyFormGUI $a_form) | |
| importEditFormValues (ilPropertyFormGUI $a_form) | |
| getPrintViewQuestionTitle ($question_title=1) | |
| getMaterialOutput () | |
| Creates the HTML output of the question material(s) More... | |
| renderChart ($a_id, $a_variables) | |
| initPhrasesForm () | |
| addPhrase (ilPropertyFormGUI $a_form=null) | |
| Creates an output for the addition of phrases. More... | |
| addSelectedPhrase () | |
| renderStatisticsDetailsTable (array $a_head, array $a_rows, array $a_foot=null) | |
Protected Attributes | |
| $tpl | |
| $lng | |
| $ctrl | |
| $cumulated | |
| $parent_url | |
Basic class for all survey question types.
The SurveyQuestionGUI class defines and encapsulates basic methods and attributes for survey question types to be used for all parent classes.
Definition at line 34 of file class.SurveyQuestionGUI.php.
| SurveyQuestionGUI::__construct | ( | $a_id = -1 | ) |
Definition at line 44 of file class.SurveyQuestionGUI.php.
References $_GET, $ilCtrl, $lng, $tpl, and initObject().
Here is the call graph for this function:| SurveyQuestionGUI::_getClassNameForQType | ( | $q_type | ) |
Definition at line 112 of file class.SurveyQuestionGUI.php.
Referenced by _getGUIClassNameForId().
Here is the caller graph for this function:| SurveyQuestionGUI::_getGUIClassNameForId | ( | $a_q_id | ) |
Definition at line 103 of file class.SurveyQuestionGUI.php.
References _getClassNameForQType().
Referenced by ilSurveyQuestionsTableGUI\fillRow().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
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 ASS_QuestionGUI |
Definition at line 90 of file class.SurveyQuestionGUI.php.
References SurveyQuestion\_includeClass().
Referenced by ilSurveyPageGUI\addQuestion(), ilObjSurveyQuestionPoolGUI\createQuestionObject(), ilSurveyEditorGUI\executeCommand(), ilObjSurveyQuestionPoolGUI\executeCommand(), ilSurveyEditorGUI\executeCreateQuestionObject(), ilObjSurvey\getQuestionGUI(), and ilObjSurveyQuestionPoolGUI\previewObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 278 of file class.SurveyQuestionGUI.php.
References ilObject\_lookupType().
Referenced by initEditForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstractprotected |
Reimplemented in SurveyMatrixQuestionGUI, SurveyMetricQuestionGUI, SurveyMultipleChoiceQuestionGUI, SurveySingleChoiceQuestionGUI, and SurveyTextQuestionGUI.
Referenced by initEditForm().
Here is the caller graph for this function:| SurveyQuestionGUI::addGIT | ( | ) |
Definition at line 872 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, and ilUtil\sendSuccess().
Here is the call graph for this function:| SurveyQuestionGUI::addMaterial | ( | ) |
Add materials to a question.
Definition at line 794 of file class.SurveyQuestionGUI.php.
References $_GET, $_POST, $_SESSION, ilPanelGUI\getInstance(), and material().
Here is the call graph for this function:| SurveyQuestionGUI::addPG | ( | ) |
Definition at line 854 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, and ilUtil\sendSuccess().
Here is the call graph for this function:
|
protected |
Creates an output for the addition of phrases.
Definition at line 1028 of file class.SurveyQuestionGUI.php.
References $result, initPhrasesForm(), and saveForm().
Referenced by addSelectedPhrase().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1048 of file class.SurveyQuestionGUI.php.
References $valid, addPhrase(), initPhrasesForm(), and ilUtil\sendSuccess().
Here is the call graph for this function:| SurveyQuestionGUI::addST | ( | ) |
Definition at line 863 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, and ilUtil\sendSuccess().
Here is the call graph for this function:
|
protected |
Definition at line 526 of file class.SurveyQuestionGUI.php.
References ilUtil\redirect().
Here is the call graph for this function:| SurveyQuestionGUI::cancelExplorer | ( | ) |
Definition at line 847 of file class.SurveyQuestionGUI.php.
References $_SESSION, and ilUtil\sendInfo().
Here is the call graph for this function:
|
protected |
Definition at line 483 of file class.SurveyQuestionGUI.php.
References $_REQUEST, redirectAfterSaving(), and ilUtil\sendInfo().
Here is the call graph for this function:| SurveyQuestionGUI::confirmSavePhrase | ( | ) |
Save a new phrase to the database.
@access public
Definition at line 1153 of file class.SurveyQuestionGUI.php.
References $_POST, $valid, savePhrase(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
Here is the call graph for this function:
|
protected |
Definition at line 390 of file class.SurveyQuestionGUI.php.
References $tbl.
Referenced by syncCopies().
Here is the caller graph for this function:| SurveyQuestionGUI::deleteMaterial | ( | ) |
Definition at line 777 of file class.SurveyQuestionGUI.php.
References $_POST, ilUtil\sendFailure(), and ilUtil\sendSuccess().
Here is the call graph for this function:
|
protected |
Definition at line 293 of file class.SurveyQuestionGUI.php.
References initEditForm().
Referenced by removeMaterial(), save(), and saveForm().
Here is the call graph for this function:
Here is the caller graph for this function:| & SurveyQuestionGUI::executeCommand | ( | ) |
Definition at line 66 of file class.SurveyQuestionGUI.php.
|
abstract |
|
protected |
Creates the HTML output of the question material(s)
Definition at line 610 of file class.SurveyQuestionGUI.php.
References $_GET, SurveyQuestion\_getInternalLinkHref(), and ilUtil\prepareFormOutput().
Referenced by SurveyMatrixQuestionGUI\getWorkingForm(), SurveyMetricQuestionGUI\getWorkingForm(), SurveyMultipleChoiceQuestionGUI\getWorkingForm(), SurveySingleChoiceQuestionGUI\getWorkingForm(), and SurveyTextQuestionGUI\getWorkingForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstract |
|
protected |
Definition at line 548 of file class.SurveyQuestionGUI.php.
References ilUtil\prepareFormOutput().
Referenced by SurveyMatrixQuestionGUI\getPrintView(), SurveyMetricQuestionGUI\getPrintView(), SurveyMultipleChoiceQuestionGUI\getPrintView(), SurveySingleChoiceQuestionGUI\getPrintView(), and SurveyTextQuestionGUI\getPrintView().
Here is the call graph for this function:
Here is the caller graph for this function:| SurveyQuestionGUI::getQuestionType | ( | ) |
Returns the question type string.
Definition at line 123 of file class.SurveyQuestionGUI.php.
Referenced by setQuestionTabsForClass().
Here is the caller graph for this function:
|
abstract |
Reimplemented in SurveyMatrixQuestionGUI, SurveyMetricQuestionGUI, SurveyMultipleChoiceQuestionGUI, SurveySingleChoiceQuestionGUI, and SurveyTextQuestionGUI.
Referenced by preview().
Here is the caller graph for this function:
|
abstractprotected |
Reimplemented in SurveyMatrixQuestionGUI, SurveyMetricQuestionGUI, SurveyMultipleChoiceQuestionGUI, SurveySingleChoiceQuestionGUI, and SurveyTextQuestionGUI.
Referenced by saveForm().
Here is the caller graph for this function:
|
protected |
Definition at line 212 of file class.SurveyQuestionGUI.php.
References ilObjAdvancedEditing\_getUsedHTMLTags(), addCommandButtons(), and addFieldsToEditForm().
Referenced by editQuestion(), and saveForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstractprotected |
Reimplemented in SurveyMatrixQuestionGUI, SurveyMetricQuestionGUI, SurveyMultipleChoiceQuestionGUI, SurveySingleChoiceQuestionGUI, and SurveyTextQuestionGUI.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Definition at line 984 of file class.SurveyQuestionGUI.php.
References ilSurveyPhrases\_getAvailablePhrases(), and ilSurveyPhrases\_getCategoriesForPhrase().
Referenced by addPhrase(), and addSelectedPhrase().
Here is the call graph for this function:
Here is the caller graph for this function:| SurveyQuestionGUI::linkChilds | ( | ) |
Definition at line 881 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, $tbl, ilLMPageObject\getPageList(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
Here is the call graph for this function:| SurveyQuestionGUI::material | ( | $checkonly = FALSE | ) |
Material tab of the survey questions.
Definition at line 711 of file class.SurveyQuestionGUI.php.
References $_GET, $data, $errors, SurveyQuestion\_getInternalLinkHref(), and ilUtil\prepareFormOutput().
Referenced by addMaterial().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 452 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 128 of file class.SurveyQuestionGUI.php.
Referenced by SurveyMatrixQuestionGUI\getPrintView(), SurveyMetricQuestionGUI\getPrintView(), SurveyMultipleChoiceQuestionGUI\getPrintView(), SurveySingleChoiceQuestionGUI\getPrintView(), SurveyTextQuestionGUI\getPrintView(), SurveyMatrixQuestionGUI\getWorkingForm(), SurveyMetricQuestionGUI\getWorkingForm(), SurveyMultipleChoiceQuestionGUI\getWorkingForm(), SurveySingleChoiceQuestionGUI\getWorkingForm(), and SurveyTextQuestionGUI\getWorkingForm().
Here is the caller graph for this function:| SurveyQuestionGUI::preview | ( | ) |
Creates a preview of the question.
@access private
Definition at line 576 of file class.SurveyQuestionGUI.php.
References $tpl, ilPanelGUI\getInstance(), and getWorkingForm().
Here is the call graph for this function:
|
protected |
Redirect to calling survey or to edit form.
| bool | $a_return |
Definition at line 494 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, and ilUtil\redirect().
Referenced by cancelSync(), save(), sync(), and syncCopies().
Here is the call graph for this function:
Here is the caller graph for this function:| SurveyQuestionGUI::removeMaterial | ( | ) |
Definition at line 840 of file class.SurveyQuestionGUI.php.
References editQuestion().
Here is the call graph for this function:
|
protected |
Reimplemented in SurveyMetricQuestionGUI.
Definition at line 642 of file class.SurveyQuestionGUI.php.
References $data, $legend, ilChartGrid\DATA_BARS, ilChart\getInstanceByType(), ilUtil\prepareFormOutput(), and ilChart\TYPE_GRID.
Referenced by SurveyMatrixQuestionGUI\getCumulatedResultsDetails(), SurveyMultipleChoiceQuestionGUI\getCumulatedResultsDetails(), and SurveySingleChoiceQuestionGUI\getCumulatedResultsDetails().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1180 of file class.SurveyQuestionGUI.php.
Referenced by SurveyMatrixQuestionGUI\getCumulatedResultsDetails(), SurveyMetricQuestionGUI\getCumulatedResultsDetails(), SurveyMultipleChoiceQuestionGUI\getCumulatedResultsDetails(), and SurveySingleChoiceQuestionGUI\getCumulatedResultsDetails().
Here is the caller graph for this function:
|
protected |
Definition at line 344 of file class.SurveyQuestionGUI.php.
References $ilUser, SurveyQuestion\_isComplete(), SurveyQuestion\_isWriteable(), editQuestion(), redirectAfterSaving(), saveForm(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
Referenced by saveReturn(), and saveSync().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 316 of file class.SurveyQuestionGUI.php.
References editQuestion(), importEditFormValues(), initEditForm(), and validateEditForm().
Referenced by addPhrase(), save(), and savePhrase().
Here is the call graph for this function:
Here is the caller graph for this function:| SurveyQuestionGUI::savePhrase | ( | $a_reload = false | ) |
Creates an output to save the current answers as a phrase.
@access public
Definition at line 1095 of file class.SurveyQuestionGUI.php.
References $_SESSION, $data, $result, $txt, and saveForm().
Referenced by confirmSavePhrase().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 311 of file class.SurveyQuestionGUI.php.
References save().
Here is the call graph for this function:
|
protected |
| SurveyQuestionGUI::setBackUrl | ( | $a_url | ) |
Definition at line 142 of file class.SurveyQuestionGUI.php.
|
abstract |
| SurveyQuestionGUI::setQuestionTabsForClass | ( | $guiclass | ) |
Definition at line 147 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, and getQuestionType().
Referenced by SurveyMatrixQuestionGUI\setQuestionTabs(), SurveyMetricQuestionGUI\setQuestionTabs(), SurveyMultipleChoiceQuestionGUI\setQuestionTabs(), SurveySingleChoiceQuestionGUI\setQuestionTabs(), and SurveyTextQuestionGUI\setQuestionTabs().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 471 of file class.SurveyQuestionGUI.php.
References $_REQUEST, redirectAfterSaving(), and ilUtil\sendSuccess().
Here is the call graph for this function:
|
protected |
Definition at line 402 of file class.SurveyQuestionGUI.php.
References $_POST, $_REQUEST, $lng, $ref_id, ilObject\_getAllReferences(), copySyncForm(), redirectAfterSaving(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
Here is the call graph for this function:
|
protected |
Reimplemented in SurveyMultipleChoiceQuestionGUI.
Definition at line 538 of file class.SurveyQuestionGUI.php.
Referenced by saveForm().
Here is the caller graph for this function:
|
protected |
Definition at line 38 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 39 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 37 of file class.SurveyQuestionGUI.php.
Referenced by __construct(), and syncCopies().
| SurveyQuestionGUI::$object |
Definition at line 42 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 40 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 36 of file class.SurveyQuestionGUI.php.
Referenced by __construct(), and preview().