ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Basic class for all survey question types. More...
Public Member Functions | |
__construct ($a_id=-1) | |
setQuestionTabs () | |
& | executeCommand () |
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) | |
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... | |
static | _getGUIClassNameForId ($a_q_id) |
static | _getClassNameForQType ($q_type) |
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... | |
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 | |
$rbacsystem | |
$user | |
$access | |
$tree | |
$toolbar | |
$tabs | |
$tpl | |
$lng | |
$ctrl | |
$cumulated | |
$parent_url | |
$log | |
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 79 of file class.SurveyQuestionGUI.php.
References $_GET, $DIC, $ilCtrl, $lng, $tpl, ilLoggerFactory\getLogger(), initObject(), and user().
|
static |
Definition at line 152 of file class.SurveyQuestionGUI.php.
Referenced by _getGUIClassNameForId().
|
static |
Definition at line 145 of file class.SurveyQuestionGUI.php.
References _getClassNameForQType().
Referenced by ilSurveyQuestionsTableGUI\fillRow().
|
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 134 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().
|
protected |
Definition at line 314 of file class.SurveyQuestionGUI.php.
References ilObject\_lookupType().
Referenced by initEditForm().
|
abstractprotected |
Reimplemented in SurveyMatrixQuestionGUI, SurveyMetricQuestionGUI, SurveyMultipleChoiceQuestionGUI, SurveySingleChoiceQuestionGUI, and SurveyTextQuestionGUI.
Referenced by initEditForm().
SurveyQuestionGUI::addGIT | ( | ) |
Definition at line 797 of file class.SurveyQuestionGUI.php.
SurveyQuestionGUI::addMaterial | ( | ) |
Add materials to a question.
Definition at line 720 of file class.SurveyQuestionGUI.php.
References $_GET, $_POST, $_SESSION, $tabs, $toolbar, $tree, ilPanelGUI\getInstance(), and material().
SurveyQuestionGUI::addPG | ( | ) |
Definition at line 779 of file class.SurveyQuestionGUI.php.
|
protected |
Creates an output for the addition of phrases.
Definition at line 932 of file class.SurveyQuestionGUI.php.
References $result, $tabs, initPhrasesForm(), and saveForm().
Referenced by addSelectedPhrase().
|
protected |
Definition at line 950 of file class.SurveyQuestionGUI.php.
References $valid, addPhrase(), and initPhrasesForm().
SurveyQuestionGUI::addST | ( | ) |
Definition at line 788 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 535 of file class.SurveyQuestionGUI.php.
References ilUtil\redirect().
SurveyQuestionGUI::cancelExplorer | ( | ) |
Definition at line 772 of file class.SurveyQuestionGUI.php.
References $_SESSION, and ilUtil\sendInfo().
|
protected |
Definition at line 497 of file class.SurveyQuestionGUI.php.
References redirectAfterSaving(), and ilUtil\sendInfo().
SurveyQuestionGUI::confirmSavePhrase | ( | ) |
Save a new phrase to the database.
@access public
Definition at line 1040 of file class.SurveyQuestionGUI.php.
References $_POST, $valid, savePhrase(), and ilUtil\sendFailure().
|
protected |
Definition at line 413 of file class.SurveyQuestionGUI.php.
References $tabs.
Referenced by syncCopies().
SurveyQuestionGUI::deleteMaterial | ( | ) |
Definition at line 706 of file class.SurveyQuestionGUI.php.
References $_POST, and ilUtil\sendFailure().
|
protected |
Definition at line 327 of file class.SurveyQuestionGUI.php.
References $tabs, and initEditForm().
Referenced by removeMaterial(), save(), and saveForm().
& SurveyQuestionGUI::executeCommand | ( | ) |
Definition at line 111 of file class.SurveyQuestionGUI.php.
References $ret.
|
protected |
Creates the HTML output of the question material(s)
Definition at line 613 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().
|
abstract |
|
protected |
Definition at line 554 of file class.SurveyQuestionGUI.php.
References ilUtil\prepareFormOutput(), ilObjSurvey\PRINT_HIDE_LABELS, and ilObjSurvey\PRINT_SHOW_LABELS.
Referenced by SurveyMatrixQuestionGUI\getPrintView(), SurveyMetricQuestionGUI\getPrintView(), SurveyMultipleChoiceQuestionGUI\getPrintView(), SurveySingleChoiceQuestionGUI\getPrintView(), and SurveyTextQuestionGUI\getPrintView().
SurveyQuestionGUI::getQuestionType | ( | ) |
Returns the question type string.
Definition at line 163 of file class.SurveyQuestionGUI.php.
Referenced by setQuestionTabsForClass().
|
abstract |
Reimplemented in SurveyMatrixQuestionGUI, SurveyMetricQuestionGUI, SurveyMultipleChoiceQuestionGUI, SurveySingleChoiceQuestionGUI, and SurveyTextQuestionGUI.
Referenced by preview().
|
abstractprotected |
Reimplemented in SurveyMatrixQuestionGUI, SurveyMetricQuestionGUI, SurveyMultipleChoiceQuestionGUI, SurveySingleChoiceQuestionGUI, and SurveyTextQuestionGUI.
Referenced by saveForm().
|
protected |
Definition at line 248 of file class.SurveyQuestionGUI.php.
References ilObjAdvancedEditing\_getRichTextEditor(), ilObjAdvancedEditing\_getUsedHTMLTags(), addCommandButtons(), and addFieldsToEditForm().
Referenced by editQuestion(), and saveForm().
|
abstractprotected |
Reimplemented in SurveyMatrixQuestionGUI, SurveyMetricQuestionGUI, SurveyMultipleChoiceQuestionGUI, SurveySingleChoiceQuestionGUI, and SurveyTextQuestionGUI.
Referenced by __construct().
|
protected |
Definition at line 892 of file class.SurveyQuestionGUI.php.
References ilSurveyPhrases\_getAvailablePhrases(), and ilSurveyPhrases\_getCategoriesForPhrase().
Referenced by addPhrase(), and addSelectedPhrase().
SurveyQuestionGUI::linkChilds | ( | ) |
Definition at line 806 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, $tabs, ilLMPageObject\getPageList(), and ilUtil\sendFailure().
SurveyQuestionGUI::material | ( | $checkonly = false | ) |
Material tab of the survey questions.
Definition at line 642 of file class.SurveyQuestionGUI.php.
References $_GET, $data, $errors, $rbacsystem, $tabs, $type, SurveyQuestion\_getInternalLinkHref(), and ilUtil\prepareFormOutput().
Referenced by addMaterial().
|
protected |
Definition at line 468 of file class.SurveyQuestionGUI.php.
References $tabs.
|
protected |
Definition at line 168 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().
SurveyQuestionGUI::preview | ( | ) |
Creates a preview of the question.
@access private
Definition at line 581 of file class.SurveyQuestionGUI.php.
References $tabs, $tpl, ilPanelGUI\getInstance(), and getWorkingForm().
|
protected |
Redirect to calling survey or to edit form.
bool | $a_return |
Definition at line 508 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, and ilUtil\redirect().
Referenced by cancelSync(), save(), sync(), and syncCopies().
SurveyQuestionGUI::removeMaterial | ( | ) |
Definition at line 765 of file class.SurveyQuestionGUI.php.
References editQuestion().
|
protected |
Definition at line 1063 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 375 of file class.SurveyQuestionGUI.php.
References $ilUser, $user, SurveyQuestion\_isComplete(), SurveyQuestion\_isWriteable(), SurveyQuestion\_questionExists(), editQuestion(), redirectAfterSaving(), saveForm(), and ilUtil\sendFailure().
Referenced by saveReturn(), and saveSync().
|
protected |
Definition at line 349 of file class.SurveyQuestionGUI.php.
References editQuestion(), importEditFormValues(), initEditForm(), and validateEditForm().
Referenced by addPhrase(), save(), and savePhrase().
SurveyQuestionGUI::savePhrase | ( | $a_reload = false | ) |
Creates an output to save the current answers as a phrase.
@access public
Definition at line 989 of file class.SurveyQuestionGUI.php.
References $_SESSION, $data, $i, $result, $tabs, $toolbar, $txt, and saveForm().
Referenced by confirmSavePhrase().
|
protected |
Definition at line 344 of file class.SurveyQuestionGUI.php.
References save().
|
protected |
Definition at line 339 of file class.SurveyQuestionGUI.php.
References save().
SurveyQuestionGUI::setBackUrl | ( | $a_url | ) |
Definition at line 180 of file class.SurveyQuestionGUI.php.
|
abstract |
SurveyQuestionGUI::setQuestionTabsForClass | ( | $guiclass | ) |
Definition at line 185 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, $rbacsystem, $tabs, and getQuestionType().
Referenced by SurveyMatrixQuestionGUI\setQuestionTabs(), SurveyMetricQuestionGUI\setQuestionTabs(), SurveyMultipleChoiceQuestionGUI\setQuestionTabs(), SurveySingleChoiceQuestionGUI\setQuestionTabs(), and SurveyTextQuestionGUI\setQuestionTabs().
|
protected |
Definition at line 486 of file class.SurveyQuestionGUI.php.
References redirectAfterSaving().
|
protected |
Definition at line 424 of file class.SurveyQuestionGUI.php.
References $_POST, $access, $lng, ilObject\_getAllReferences(), copySyncForm(), redirectAfterSaving(), and ilUtil\sendFailure().
|
protected |
Reimplemented in SurveyMultipleChoiceQuestionGUI.
Definition at line 544 of file class.SurveyQuestionGUI.php.
Referenced by saveForm().
|
protected |
Definition at line 49 of file class.SurveyQuestionGUI.php.
Referenced by syncCopies().
|
protected |
Definition at line 68 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 69 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 67 of file class.SurveyQuestionGUI.php.
Referenced by __construct(), and syncCopies().
|
protected |
Definition at line 75 of file class.SurveyQuestionGUI.php.
SurveyQuestionGUI::$object |
Definition at line 77 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 70 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 39 of file class.SurveyQuestionGUI.php.
Referenced by material(), and setQuestionTabsForClass().
|
protected |
Definition at line 64 of file class.SurveyQuestionGUI.php.
Referenced by addMaterial(), addPhrase(), copySyncForm(), editQuestion(), SurveyMatrixQuestionGUI\layout(), linkChilds(), material(), originalSyncForm(), preview(), savePhrase(), and setQuestionTabsForClass().
|
protected |
Definition at line 59 of file class.SurveyQuestionGUI.php.
Referenced by addMaterial(), and savePhrase().
|
protected |
Definition at line 66 of file class.SurveyQuestionGUI.php.
Referenced by __construct(), and preview().
|
protected |
Definition at line 54 of file class.SurveyQuestionGUI.php.
Referenced by addMaterial().
|
protected |
Definition at line 44 of file class.SurveyQuestionGUI.php.
Referenced by save().