ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 | |
$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 49 of file class.SurveyQuestionGUI.php.
References $_GET, $ilCtrl, $lng, $tpl, array, ilLoggerFactory\getLogger(), initObject(), and setQuestionTabs().
|
static |
Definition at line 119 of file class.SurveyQuestionGUI.php.
Referenced by _getGUIClassNameForId().
|
static |
Definition at line 110 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 97 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 285 of file class.SurveyQuestionGUI.php.
References ilObject\_lookupType(), and object.
Referenced by initEditForm().
|
abstractprotected |
SurveyQuestionGUI::addGIT | ( | ) |
Definition at line 810 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, and ilUtil\sendSuccess().
SurveyQuestionGUI::addMaterial | ( | ) |
Add materials to a question.
Definition at line 732 of file class.SurveyQuestionGUI.php.
References $_GET, $_POST, $_SESSION, ilPanelGUI\getInstance(), and material().
SurveyQuestionGUI::addPG | ( | ) |
Definition at line 792 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, and ilUtil\sendSuccess().
|
protected |
Creates an output for the addition of phrases.
Definition at line 966 of file class.SurveyQuestionGUI.php.
References $result, ilPropertyFormGUI\getHTML(), initPhrasesForm(), and saveForm().
Referenced by addSelectedPhrase().
|
protected |
Definition at line 986 of file class.SurveyQuestionGUI.php.
References $valid, addPhrase(), initPhrasesForm(), object, and ilUtil\sendSuccess().
SurveyQuestionGUI::addST | ( | ) |
Definition at line 801 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, and ilUtil\sendSuccess().
|
protected |
Definition at line 533 of file class.SurveyQuestionGUI.php.
References ilUtil\redirect().
SurveyQuestionGUI::cancelExplorer | ( | ) |
Definition at line 785 of file class.SurveyQuestionGUI.php.
References $_SESSION, and ilUtil\sendInfo().
|
protected |
Definition at line 490 of file class.SurveyQuestionGUI.php.
References redirectAfterSaving(), and ilUtil\sendInfo().
SurveyQuestionGUI::confirmSavePhrase | ( | ) |
Save a new phrase to the database.
public
Definition at line 1091 of file class.SurveyQuestionGUI.php.
References $_POST, $title, $valid, object, savePhrase(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Definition at line 397 of file class.SurveyQuestionGUI.php.
References $tbl.
Referenced by syncCopies().
SurveyQuestionGUI::deleteMaterial | ( | ) |
Definition at line 715 of file class.SurveyQuestionGUI.php.
References $_POST, ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Definition at line 300 of file class.SurveyQuestionGUI.php.
References initEditForm().
Referenced by removeMaterial(), save(), and saveForm().
& SurveyQuestionGUI::executeCommand | ( | ) |
Definition at line 73 of file class.SurveyQuestionGUI.php.
|
protected |
Creates the HTML output of the question material(s)
Definition at line 617 of file class.SurveyQuestionGUI.php.
References $_GET, SurveyQuestion\_getInternalLinkHref(), object, and ilUtil\prepareFormOutput().
Referenced by SurveyTextQuestionGUI\getWorkingForm(), SurveyMetricQuestionGUI\getWorkingForm(), SurveySingleChoiceQuestionGUI\getWorkingForm(), SurveyMultipleChoiceQuestionGUI\getWorkingForm(), and SurveyMatrixQuestionGUI\getWorkingForm().
|
abstract |
|
protected |
Definition at line 555 of file class.SurveyQuestionGUI.php.
References $title, object, and ilUtil\prepareFormOutput().
Referenced by SurveyTextQuestionGUI\getPrintView(), SurveySingleChoiceQuestionGUI\getPrintView(), SurveyMetricQuestionGUI\getPrintView(), SurveyMultipleChoiceQuestionGUI\getPrintView(), and SurveyMatrixQuestionGUI\getPrintView().
SurveyQuestionGUI::getQuestionType | ( | ) |
Returns the question type string.
Definition at line 130 of file class.SurveyQuestionGUI.php.
Referenced by setQuestionTabsForClass().
|
abstract |
|
abstractprotected |
|
protected |
Definition at line 219 of file class.SurveyQuestionGUI.php.
References $title, ilObjAdvancedEditing\_getUsedHTMLTags(), addCommandButtons(), addFieldsToEditForm(), object, ilFormPropertyGUI\setInfo(), ilFormPropertyGUI\setRequired(), and ilCheckboxInputGUI\setValue().
Referenced by editQuestion(), and saveForm().
|
abstractprotected |
|
protected |
Definition at line 922 of file class.SurveyQuestionGUI.php.
References ilSurveyPhrases\_getAvailablePhrases(), ilSurveyPhrases\_getCategoriesForPhrase(), and ilFormPropertyGUI\setRequired().
Referenced by addPhrase(), and addSelectedPhrase().
SurveyQuestionGUI::linkChilds | ( | ) |
Definition at line 819 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, $tbl, array, ilLMPageObject\getPageList(), object, ilUtil\sendFailure(), and ilUtil\sendSuccess().
SurveyQuestionGUI::material | ( | $checkonly = FALSE | ) |
Material tab of the survey questions.
Definition at line 649 of file class.SurveyQuestionGUI.php.
References $_GET, $data, $errors, $title, SurveyQuestion\_getInternalLinkHref(), array, object, ilUtil\prepareFormOutput(), and ilFormPropertyGUI\setRequired().
Referenced by addMaterial().
|
protected |
Definition at line 459 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 135 of file class.SurveyQuestionGUI.php.
References object.
Referenced by SurveyTextQuestionGUI\getPrintView(), SurveySingleChoiceQuestionGUI\getPrintView(), SurveyMetricQuestionGUI\getPrintView(), SurveyMultipleChoiceQuestionGUI\getPrintView(), SurveyMatrixQuestionGUI\getPrintView(), SurveyTextQuestionGUI\getWorkingForm(), SurveyMetricQuestionGUI\getWorkingForm(), SurveySingleChoiceQuestionGUI\getWorkingForm(), SurveyMultipleChoiceQuestionGUI\getWorkingForm(), and SurveyMatrixQuestionGUI\getWorkingForm().
SurveyQuestionGUI::preview | ( | ) |
Creates a preview of the question.
private
Definition at line 583 of file class.SurveyQuestionGUI.php.
References $tpl, ilPanelGUI\getInstance(), getWorkingForm(), and object.
|
protected |
Redirect to calling survey or to edit form.
bool | $a_return |
Definition at line 501 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, object, and ilUtil\redirect().
Referenced by cancelSync(), save(), sync(), and syncCopies().
SurveyQuestionGUI::removeMaterial | ( | ) |
Definition at line 778 of file class.SurveyQuestionGUI.php.
References array, and editQuestion().
|
protected |
|
protected |
Definition at line 351 of file class.SurveyQuestionGUI.php.
References $ilUser, SurveyQuestion\_isComplete(), SurveyQuestion\_isWriteable(), SurveyQuestion\_questionExists(), editQuestion(), object, redirectAfterSaving(), saveForm(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
Referenced by saveReturn(), and saveSync().
|
protected |
Definition at line 323 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.
public
Definition at line 1033 of file class.SurveyQuestionGUI.php.
References $_SESSION, $data, $result, $txt, array, and saveForm().
Referenced by confirmSavePhrase().
|
protected |
Definition at line 318 of file class.SurveyQuestionGUI.php.
References save().
|
protected |
Definition at line 313 of file class.SurveyQuestionGUI.php.
References save().
SurveyQuestionGUI::setBackUrl | ( | $a_url | ) |
Definition at line 149 of file class.SurveyQuestionGUI.php.
|
abstract |
SurveyQuestionGUI::setQuestionTabsForClass | ( | $guiclass | ) |
Definition at line 154 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, $title, getQuestionType(), and object.
Referenced by SurveyMultipleChoiceQuestionGUI\setQuestionTabs(), SurveyTextQuestionGUI\setQuestionTabs(), SurveySingleChoiceQuestionGUI\setQuestionTabs(), SurveyMetricQuestionGUI\setQuestionTabs(), and SurveyMatrixQuestionGUI\setQuestionTabs().
|
protected |
Definition at line 478 of file class.SurveyQuestionGUI.php.
References redirectAfterSaving(), and ilUtil\sendSuccess().
|
protected |
Definition at line 409 of file class.SurveyQuestionGUI.php.
References $_POST, $lng, $ref_id, ilObject\_getAllReferences(), copySyncForm(), object, redirectAfterSaving(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Definition at line 545 of file class.SurveyQuestionGUI.php.
References addFieldsToEditForm(), getPrintView(), and importEditFormValues().
Referenced by saveForm().
|
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().
|
protected |
Definition at line 45 of file class.SurveyQuestionGUI.php.
SurveyQuestionGUI::$object |
Definition at line 47 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().