|
ILIAS
trunk Revision v12.0_alpha-1221-g4e438232683
|
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 |
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 48 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 135 of file class.SurveyQuestionGUI.php.
Referenced by _getGUIClassNameForId().
Here is the caller graph for this function:
|
static |
Definition at line 128 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 115 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 290 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 535 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\ctrl(), and ilUtil\redirect().
Here is the call graph for this function:
|
protected |
Definition at line 487 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Definition at line 401 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 301 of file class.SurveyQuestionGUI.php.
| SurveyQuestionGUI::executeCommand | ( | ) |
Definition at line 99 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\ctrl().
Here is the call graph for this function:
|
abstract |
|
protected |
Definition at line 560 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 586 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 143 of file class.SurveyQuestionGUI.php.
|
abstract |
|
abstractprotected |
|
protected |
Definition at line 224 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 458 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 148 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 607 of file class.SurveyQuestionGUI.php.
References Vendor\Package\$f, 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 496 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\ctrl(), and ilUtil\redirect().
Here is the call graph for this function:
|
protected |
Definition at line 648 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 353 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 323 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 318 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 313 of file class.SurveyQuestionGUI.php.
| SurveyQuestionGUI::setBackUrl | ( | string | $a_url | ) |
Definition at line 160 of file class.SurveyQuestionGUI.php.
|
abstract |
| SurveyQuestionGUI::setQuestionTabsForClass | ( | string | $guiclass | ) |
Definition at line 165 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 476 of file class.SurveyQuestionGUI.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Definition at line 412 of file class.SurveyQuestionGUI.php.
References $id, $lng, $ref_id, ilObject\_getAllReferences(), and ILIAS\Repository\object().
Here is the call graph for this function:
|
protected |
Reimplemented in SurveyMultipleChoiceQuestionGUI.
Definition at line 544 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 36 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 42 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 43 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 30 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 33 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 31 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 41 of file class.SurveyQuestionGUI.php.
Referenced by __construct().
|
protected |
Definition at line 45 of file class.SurveyQuestionGUI.php.
| SurveyQuestion SurveyQuestionGUI::$object = null |
Definition at line 46 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 44 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 34 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 32 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 39 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 38 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 40 of file class.SurveyQuestionGUI.php.
Referenced by __construct().
|
protected |
Definition at line 37 of file class.SurveyQuestionGUI.php.
|
protected |
Definition at line 35 of file class.SurveyQuestionGUI.php.