ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
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. More...
Public Member Functions | |
__construct ($a_id=-1) | |
setQuestionTabs () | |
executeCommand () | |
getQuestionType () | |
Returns the question type string. More... | |
setBackUrl (string $a_url) | |
setQuestionTabsForClass (string $guiclass) | |
getPrintView (int $question_title=1, bool $show_questiontext=true, ?int $survey_id=null, ?array $working_data=null) | |
preview () | |
getWorkingForm (?array $working_data=null, int $question_title=1, bool $show_questiontext=true, string $error_message="", ?int $survey_id=null, bool $compress_view=false) | |
Static Public Member Functions | |
static | _getQuestionGUI (?string $questiontype, int $question_id=-1) |
Creates a question gui representation. More... | |
static | _getGUIClassNameForId (int $a_q_id) |
static | _getClassNameForQType (string $q_type) |
Data Fields | |
SurveyQuestion | $object = null |
Protected Member Functions | |
initObject () | |
outQuestionText (ilTemplate $template) | |
initEditForm () | |
addCommandButtons (ilPropertyFormGUI $a_form) | |
editQuestion (?ilPropertyFormGUI $a_form=null) | |
saveSync () | |
saveReturn () | |
saveForm () | |
save (bool $a_return=false, bool $a_sync=false) | |
copySyncForm () | |
syncCopies () | |
originalSyncForm () | |
sync () | |
cancelSync () | |
redirectAfterSaving (bool $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 (int $question_title=1) | |
getQuestionTitle (int $question_title_mode=1) | |
renderStatisticsDetailsTable (array $a_head, array $a_rows, ?array $a_foot=null) | |
Protected Attributes | |
ILIAS Survey InternalGUIService | $gui |
EditingGUIRequest | $request |
EditManager | $edit_manager |
ilRbacSystem | $rbacsystem |
ilObjUser | $user |
ilAccessHandler | $access |
ilTree | $tree |
ilToolbarGUI | $toolbar |
ilTabsGUI | $tabs |
ilGlobalTemplateInterface | $tpl |
ilLanguage | $lng |
ilCtrl | $ctrl |
array | $cumulated = [] |
string | $parent_url = "" |
ilLogger | $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 28 of file class.SurveyQuestionGUI.php.
SurveyQuestionGUI::__construct | ( | $a_id = -1 | ) |
Definition at line 47 of file class.SurveyQuestionGUI.php.
References $DIC, $lng, $tpl, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilLoggerFactory\getLogger(), initObject(), ILIAS\Repository\lng(), setQuestionTabs(), ILIAS\Repository\tabs(), ILIAS\Repository\toolbar(), and ILIAS\Repository\user().
|
static |
Definition at line 133 of file class.SurveyQuestionGUI.php.
Referenced by _getGUIClassNameForId().
|
static |
Definition at line 126 of file class.SurveyQuestionGUI.php.
References _getClassNameForQType(), and SurveyQuestion\_getQuestionType().
Referenced by ilSurveyQuestionsTableGUI\fillRow().
|
static |
Creates a question gui representation.
Definition at line 113 of file class.SurveyQuestionGUI.php.
References SurveyQuestion\_getQuestionType(), and SurveyQuestion\_includeClass().
Referenced by ilObjSurveyQuestionPoolGUI\createQuestionObject(), ilObjSurveyQuestionPoolGUI\executeCommand(), ilSurveyEditorGUI\executeCommand(), ilSurveyEditorGUI\executeCreateQuestionObject(), ilObjSurvey\getQuestionGUI(), and ilObjSurveyQuestionPoolGUI\previewObject().
|
protected |
Definition at line 288 of file class.SurveyQuestionGUI.php.
References ilObject\_lookupType(), ilPropertyFormGUI\addCommandButton(), ILIAS\Repository\lng(), and ILIAS\Repository\object().
Referenced by initEditForm().
|
abstractprotected |
|
protected |
Definition at line 518 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\ctrl(), and ilUtil\redirect().
|
protected |
Definition at line 470 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\lng(), and redirectAfterSaving().
|
protected |
Definition at line 384 of file class.SurveyQuestionGUI.php.
References $tabs, and ilTabsGUI\activateTab().
Referenced by syncCopies().
|
protected |
Definition at line 299 of file class.SurveyQuestionGUI.php.
References $tabs, ilTabsGUI\activateTab(), and initEditForm().
Referenced by save(), and saveForm().
SurveyQuestionGUI::executeCommand | ( | ) |
Definition at line 97 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\ctrl().
|
protected |
Definition at line 543 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\object(), ilLegacyFormElementsUtil\prepareFormOutput(), ilObjSurvey\PRINT_HIDE_LABELS, and ilObjSurvey\PRINT_SHOW_LABELS.
Referenced by SurveyTextQuestionGUI\getPrintView(), SurveySingleChoiceQuestionGUI\getPrintView(), SurveyMetricQuestionGUI\getPrintView(), SurveyMultipleChoiceQuestionGUI\getPrintView(), and SurveyMatrixQuestionGUI\getPrintView().
|
protected |
Definition at line 569 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\object(), ilObjSurvey\PRINT_HIDE_LABELS, and ilObjSurvey\PRINT_SHOW_LABELS.
Referenced by SurveyTextQuestionGUI\getWorkingForm(), SurveyMetricQuestionGUI\getWorkingForm(), SurveySingleChoiceQuestionGUI\getWorkingForm(), SurveyMultipleChoiceQuestionGUI\getWorkingForm(), and SurveyMatrixQuestionGUI\getWorkingForm().
SurveyQuestionGUI::getQuestionType | ( | ) |
Returns the question type string.
Definition at line 141 of file class.SurveyQuestionGUI.php.
Referenced by setQuestionTabsForClass().
|
abstractprotected |
|
protected |
Definition at line 222 of file class.SurveyQuestionGUI.php.
References ilObjAdvancedEditing\_getRichTextEditor(), addCommandButtons(), addFieldsToEditForm(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\object(), and ilFormPropertyGUI\setRequired().
Referenced by editQuestion(), and saveForm().
|
abstractprotected |
|
protected |
Definition at line 441 of file class.SurveyQuestionGUI.php.
References $tabs, ilTabsGUI\activateTab(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
|
protected |
Definition at line 146 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\object(), and HTML_Template_IT\setVariable().
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 | ( | ) |
Definition at line 590 of file class.SurveyQuestionGUI.php.
References Vendor\Package\$f, $r, $tabs, ilTabsGUI\activateTab(), ILIAS\UICore\GlobalTemplate\get(), getWorkingForm(), ILIAS\Repository\lng(), null, ILIAS\Repository\object(), ILIAS\UICore\GlobalTemplate\parseCurrentBlock(), ILIAS\UICore\GlobalTemplate\setCurrentBlock(), and ILIAS\UICore\GlobalTemplate\setVariable().
|
protected |
Redirect to calling survey or to edit form.
Definition at line 479 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\ctrl(), and ilUtil\redirect().
Referenced by cancelSync(), save(), sync(), and syncCopies().
|
protected |
Definition at line 631 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 345 of file class.SurveyQuestionGUI.php.
References $user, SurveyQuestion\_isComplete(), SurveyQuestion\_isWriteable(), SurveyQuestion\_questionExists(), ILIAS\Repository\ctrl(), editQuestion(), ILIAS\Repository\lng(), ILIAS\Repository\object(), redirectAfterSaving(), and saveForm().
Referenced by saveReturn(), and saveSync().
|
protected |
Definition at line 321 of file class.SurveyQuestionGUI.php.
References editQuestion(), importEditFormValues(), initEditForm(), and validateEditForm().
Referenced by save().
|
protected |
Definition at line 316 of file class.SurveyQuestionGUI.php.
References save().
|
protected |
Definition at line 311 of file class.SurveyQuestionGUI.php.
References save().
SurveyQuestionGUI::setBackUrl | ( | string | $a_url | ) |
Definition at line 158 of file class.SurveyQuestionGUI.php.
|
abstract |
SurveyQuestionGUI::setQuestionTabsForClass | ( | string | $guiclass | ) |
Definition at line 163 of file class.SurveyQuestionGUI.php.
References $rbacsystem, $tabs, ilRbacSystem\checkAccess(), ILIAS\Repository\ctrl(), getQuestionType(), ILIAS\Repository\lng(), and ILIAS\Repository\object().
Referenced by SurveyMatrixQuestionGUI\setQuestionTabs(), SurveyMultipleChoiceQuestionGUI\setQuestionTabs(), SurveyMetricQuestionGUI\setQuestionTabs(), SurveyTextQuestionGUI\setQuestionTabs(), and SurveySingleChoiceQuestionGUI\setQuestionTabs().
|
protected |
Definition at line 459 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\lng(), and redirectAfterSaving().
|
protected |
Definition at line 395 of file class.SurveyQuestionGUI.php.
References $access, $id, $lng, $ref_id, ilObject\_getAllReferences(), copySyncForm(), null, ILIAS\Repository\object(), redirectAfterSaving(), and ilLanguage\txt().
|
protected |
Definition at line 527 of file class.SurveyQuestionGUI.php.
References addFieldsToEditForm(), getPrintView(), importEditFormValues(), and null.
Referenced by saveForm().
|
protected |
Definition at line 35 of file class.SurveyQuestionGUI.php.
Referenced by syncCopies().
|
protected |
Definition at line 41 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 42 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 32 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 30 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 40 of file class.SurveyQuestionGUI.php.
Referenced by __construct(), and syncCopies().
|
protected |
Definition at line 44 of file class.SurveyQuestionGUI.php.
SurveyQuestion SurveyQuestionGUI::$object = null |
Definition at line 45 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 43 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 33 of file class.SurveyQuestionGUI.php.
Referenced by setQuestionTabsForClass().
|
protected |
Definition at line 31 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 38 of file class.SurveyQuestionGUI.php.
Referenced by copySyncForm(), editQuestion(), SurveyMatrixQuestionGUI\layout(), originalSyncForm(), preview(), and setQuestionTabsForClass().
|
protected |
Definition at line 37 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 39 of file class.SurveyQuestionGUI.php.
Referenced by __construct().
|
protected |
Definition at line 36 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 34 of file class.SurveyQuestionGUI.php.
Referenced by save().