|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
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...
Inheritance diagram for SurveyQuestionGUI:
Collaboration diagram for SurveyQuestionGUI: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 InternalDomainService | $domain |
| 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 |
| ilHtmlPurifierInterface | $purifier |
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 30 of file class.SurveyQuestionGUI.php.
| SurveyQuestionGUI::__construct | ( | $a_id = -1 | ) |
Definition at line 51 of file class.SurveyQuestionGUI.php.
References $DIC, $lng, $tpl, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilLoggerFactory\getLogger(), initObject(), ILIAS\Repository\lng(), ILIAS\Repository\tabs(), ILIAS\Repository\toolbar(), and ILIAS\Repository\user().
Here is the call graph for this function:
|
static |
Definition at line 139 of file class.SurveyQuestionGUI.php.
Referenced by _getGUIClassNameForId().
Here is the caller graph for this function:
|
static |
Definition at line 132 of file class.SurveyQuestionGUI.php.
References _getClassNameForQType(), and SurveyQuestion\_getQuestionType().
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.
Definition at line 119 of file class.SurveyQuestionGUI.php.
References SurveyQuestion\_getQuestionType().
Referenced by ilObjSurveyQuestionPoolGUI\createQuestionObject(), ilSurveyEditorGUI\executeCommand(), ilObjSurveyQuestionPoolGUI\executeCommand(), and ilObjSurveyQuestionPoolGUI\previewObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 296 of file class.SurveyQuestionGUI.php.
References ilObject\_lookupType(), ilPropertyFormGUI\addCommandButton(), ILIAS\Repository\lng(), and ILIAS\Repository\object().
Here is the call graph for this function:
|
abstractprotected |
|
protected |
Definition at line 539 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\ctrl(), and ilUtil\redirect().
Here is the call graph for this function:
|
protected |
Definition at line 491 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Definition at line 405 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 307 of file class.SurveyQuestionGUI.php.
| SurveyQuestionGUI::executeCommand | ( | ) |
Definition at line 103 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\ctrl().
Here is the call graph for this function:
|
abstract |
|
protected |
Definition at line 564 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\object(), ilLegacyFormElementsUtil\prepareFormOutput(), ilObjSurvey\PRINT_HIDE_LABELS, and ilObjSurvey\PRINT_SHOW_LABELS.
Here is the call graph for this function:
|
protected |
Definition at line 590 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\object(), ilObjSurvey\PRINT_HIDE_LABELS, and ilObjSurvey\PRINT_SHOW_LABELS.
Here is the call graph for this function:| SurveyQuestionGUI::getQuestionType | ( | ) |
Returns the question type string.
Definition at line 147 of file class.SurveyQuestionGUI.php.
|
abstract |
|
abstractprotected |
|
protected |
Definition at line 228 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\object(), and ILIAS\Repository\user().
Here is the call 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 462 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Definition at line 152 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\object(), and HTML_Template_IT\setVariable().
Here is the call graph for this function:| SurveyQuestionGUI::preview | ( | ) |
Definition at line 611 of file class.SurveyQuestionGUI.php.
References Vendor\Package\$f, ILIAS\News\Common\Table\$tpl, ILIAS\UICore\GlobalTemplate\get(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ILIAS\UICore\GlobalTemplate\parseCurrentBlock(), ILIAS\UICore\GlobalTemplate\setCurrentBlock(), and ILIAS\UICore\GlobalTemplate\setVariable().
Here is the call graph for this function:
|
protected |
Redirect to calling survey or to edit form.
Definition at line 500 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\ctrl(), and ilUtil\redirect().
Here is the call graph for this function:
|
protected |
Definition at line 652 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 357 of file class.SurveyQuestionGUI.php.
References SurveyQuestion\_isComplete(), SurveyQuestion\_isWriteable(), SurveyQuestion\_questionExists(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\object().
Here is the call graph for this function:
|
protected |
Definition at line 329 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 324 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 319 of file class.SurveyQuestionGUI.php.
| SurveyQuestionGUI::setBackUrl | ( | string | $a_url | ) |
Definition at line 164 of file class.SurveyQuestionGUI.php.
|
abstract |
| SurveyQuestionGUI::setQuestionTabsForClass | ( | string | $guiclass | ) |
Definition at line 169 of file class.SurveyQuestionGUI.php.
References ilRbacSystem\checkAccess(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\object().
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 480 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Definition at line 416 of file class.SurveyQuestionGUI.php.
References $id, $lng, ilObject\_getAllReferences(), and ILIAS\Repository\object().
Here is the call graph for this function:
|
protected |
Reimplemented in SurveyMultipleChoiceQuestionGUI.
Definition at line 548 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 38 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 44 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 45 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 32 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 35 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 33 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 43 of file class.SurveyQuestionGUI.php.
Referenced by __construct().
|
protected |
Definition at line 47 of file class.SurveyQuestionGUI.php.
| SurveyQuestion SurveyQuestionGUI::$object = null |
Definition at line 48 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 46 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 49 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 36 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 34 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 41 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 40 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 42 of file class.SurveyQuestionGUI.php.
Referenced by __construct().
|
protected |
Definition at line 39 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 37 of file class.SurveyQuestionGUI.php.