|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for SurveyQuestion:
Collaboration diagram for SurveyQuestion:Public Member Functions | |
| __construct (string $title="", string $description="", string $author="", string $questiontext="", int $owner=-1) | |
| setComplete (bool $a_complete) | |
| isComplete () | |
| questionTitleExists (string $title, int $questionpool_object=0) | |
| setTitle (string $title="") | |
| setObligatory (bool $obligatory=true) | |
| setOrientation (int $orientation=0) | |
| setId (int $id=-1) | |
| setSurveyId (int $id=-1) | |
| setDescription (string $description="") | |
| addMaterials (string $materials_file, string $materials_name="") | |
| setMaterialsfile (string $materials_filename, string $materials_tempfilename="", string $materials_name="") | |
| Uploads and adds a material. More... | |
| deleteMaterial (string $materials_name="") | |
| flushMaterials () | |
| Deletes all materials uris. More... | |
| setAuthor (string $author="") | |
| setQuestiontext (string $questiontext="") | |
| setOwner (int $owner=0) | |
| getTitle () | |
| getLabel () | |
| getId () | |
| getObligatory () | |
| getSurveyId () | |
| getOrientation () | |
| getDescription () | |
| getAuthor () | |
| getOwner () | |
| getQuestiontext () | |
| getObjId () | |
| Get the reference(?) id of the container object. More... | |
| setObjId (int $obj_id=0) | |
| Set the reference(?) id of the container object. More... | |
| duplicate (bool $for_survey=true, string $title="", string $author="", int $owner=0, int $a_survey_id=0) | |
| copyObject (int $target_questionpool, string $title="") | |
| copyXHTMLMediaObjectsOfQuestion (int $a_q_id) | |
| Copy media object usages from other question. More... | |
| loadFromDb (int $question_id) | |
| load question data into object note: this base implementation only loads the material data More... | |
| saveCompletionStatus (int $original_id=0) | |
| Saves the complete flag to the database. More... | |
| saveToDb (int $original_id=0) | |
| Saves a SurveyQuestion object to a database. More... | |
| createNewQuestion () | |
| Creates a new question with a 0 timestamp when a new question is created This assures that an ID is given to the question if a file upload or something else occurs. More... | |
| getImagePath () | |
| Returns the image path for web accessible images of a question. More... | |
| getMaterialsPath () | |
| Returns the materials path for web accessible materials of a question. More... | |
| getImagePathWeb () | |
| Returns the web image path for web accessible images of a question. More... | |
| getMaterialsPathWeb () | |
| Returns the web image path for web accessable images of a question. More... | |
| saveCategoryToDb (string $categorytext, int $neutral=0) | |
| Saves a category to the database. More... | |
| deleteAdditionalTableData (int $question_id) | |
| Deletes datasets from the additional question table in the database. More... | |
| delete (int $question_id) | |
| Deletes a question and all materials from the database. More... | |
| syncWithOriginal () | |
| getQuestionTypeID () | |
| getQuestionType () | |
| isHTML (string $a_text) | |
| QTIMaterialToString (ilQTIMaterial $a_material) | |
| Reads an QTI material tag an creates a text string. More... | |
| addMaterialTag (ilXmlWriter $a_xml_writer, string $a_material, bool $close_material_tag=true, bool $add_mobs=true, ?array $a_attrs=null) | |
| Creates an XML material tag from a plain text or xhtml text. More... | |
| prepareTextareaOutput (string $txt_output, bool $prepare_for_latex_output=false) | |
| Prepares string for a text area output in surveys. More... | |
| getQuestionDataArray (int $id) | |
| Returns the question data. More... | |
| getWorkingDataFromUserInput (array $post_data) | |
| Creates the user data of the svy_answer table from the POST data. More... | |
| importAdditionalMetadata (array $a_meta) | |
| Import additional meta data from the question import file. More... | |
| importResponses (array $a_data) | |
| Import response data from the question import file. More... | |
| importAdjectives (array $a_data) | |
| Import bipolar adjectives from the question import file. More... | |
| importMatrix (array $a_data) | |
| Import matrix rows from the question import file. More... | |
| usableForPrecondition () | |
| Returns if the question is usable for preconditions. More... | |
| getAvailableRelations () | |
| Returns the available relations for the question. More... | |
| getPreconditionOptions () | |
| Returns the options for preconditions. More... | |
| getPreconditionValueOutput (string $value) | |
| Returns the output for a precondition value. More... | |
| getPreconditionSelectValue (string $default, string $title, string $variable) | |
| Creates a form property for the precondition value. More... | |
| setOriginalId (?int $original_id) | |
| getOriginalId () | |
| getMaterial () | |
| setSubtype (int $a_subtype) | |
| getSubtype () | |
| __get (string $value) | |
| __set (string $key, mixed $value) | |
| getCopyIds (bool $a_group_by_survey=false) | |
| hasCopies () | |
| stripSlashesAddSpaceFallback (string $a_str) | |
| Strip slashes with add space fallback, see https://mantis.ilias.de/view.php?id=19727 and https://mantis.ilias.de/view.php?id=24200. More... | |
Static Public Member Functions | |
| static | _isComplete (int $question_id) |
| Checks whether the question is complete or not. More... | |
| static | _getQuestionType (int $question_id) |
| Returns the question type of a question with a given id. More... | |
| static | _getTitle (int $question_id) |
| Returns the question title of a question with a given id. More... | |
| static | _getOriginalId (int $question_id, bool $a_return_question_id_if_no_original=true) |
| Returns the original id of a question. More... | |
| static | _questionExists (int $question_id) |
| static | _resolveInternalLink (string $internal_link) |
| static | _resolveIntLinks (int $question_id) |
| static | _getInternalLinkHref (string $target="", ?int $a_parent_ref_id=null) |
| static | _isWriteable (int $question_id, int $user_id) |
| is question writeable by a certain user More... | |
| static | _includeClass (string $question_type, int $gui=0) |
| Include the php class file for a given question type. More... | |
| static | _getQuestionTypeName (string $type_tag) |
| Return the translation for a given question type. More... | |
| static | _instanciateQuestion (int $question_id) |
| Get question object. More... | |
| static | _instanciateQuestionGUI (int $question_id) |
| Get question gui object. More... | |
| static | _instanciateQuestionEvaluation (int $question_id, ?array $a_finished_ids=null) |
| static | _changeOriginalId (int $a_question_id, int $a_original_id, int $a_object_id) |
| Change original id of existing question in db. More... | |
| static | _lookupSurveyObjId (int $a_question_id) |
| static | lookupObjFi (int $a_qid) |
| static | getMaxSumScore (int $survey_id) |
| Get max sum score for specific survey (and this question type) More... | |
Data Fields | |
| int | $id |
| string | $title |
| string | $description |
| int | $owner |
| string | $author |
| array | $materials |
| int | $survey_id |
| int | $obj_id |
| string | $questiontext |
| bool | $obligatory |
| ilLanguage | $lng |
| int | $orientation |
| array | $material |
| bool | $complete |
Protected Attributes | |
| int | $original_id |
| ILIAS SurveyQuestionPool Editing EditSessionRepository | $edit_manager |
| ilObjUser | $user |
| ilDBInterface | $db |
| array | $cumulated |
| ilLogger | $log |
| ILIAS SurveyQuestionPool Export ImportSessionRepository | $import_manager |
Private Attributes | |
| array | $arrData |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Basic class for all survey question types The SurveyQuestion class defines and encapsulates basic methods and attributes for survey question types to be used for all parent classes.
Definition at line 27 of file class.SurveyQuestion.php.
| SurveyQuestion::__construct | ( | string | $title = "", |
| string | $description = "", |
||
| string | $author = "", |
||
| string | $questiontext = "", |
||
| int | $owner = -1 |
||
| ) |
Reimplemented in SurveyMatrixQuestion, and SurveyTextQuestion.
Definition at line 53 of file class.SurveyQuestion.php.
References $author, $description, $DIC, $lng, $owner, $questiontext, $title, ilLoggerFactory\getLogger(), ILIAS\Repository\lng(), ILIAS\UI\examples\Symbol\Glyph\Owner\owner(), and ILIAS\Repository\user().
Here is the call graph for this function:| SurveyQuestion::__get | ( | string | $value | ) |
Definition at line 1346 of file class.SurveyQuestion.php.
| SurveyQuestion::__set | ( | string | $key, |
| mixed | $value | ||
| ) |
Definition at line 1358 of file class.SurveyQuestion.php.
|
static |
Change original id of existing question in db.
Definition at line 1370 of file class.SurveyQuestion.php.
Referenced by ilSurveyEditorGUI\executeCopyQuestionsToPoolObject().
Here is the caller graph for this function:
|
static |
Definition at line 963 of file class.SurveyQuestion.php.
References ilFileUtils\removeTrailingPathSeparators().
Here is the call graph for this function:
|
static |
Returns the original id of a question.
Definition at line 802 of file class.SurveyQuestion.php.
References $ilDB.
|
static |
Returns the question type of a question with a given id.
Definition at line 755 of file class.SurveyQuestion.php.
References $data, $DIC, and $ilDB.
Referenced by SurveyQuestionGUI\_getGUIClassNameForId(), SurveyQuestionGUI\_getQuestionGUI(), ilObjSurveyGUI\addLocatorItems(), ilObjSurveyQuestionPoolGUI\addLocatorItems(), ilSurveyConstraintsGUI\confirmDeleteConstraintsObject(), and ilObjSurvey\getUserSpecificResults().
Here is the caller graph for this function:
|
static |
Return the translation for a given question type.
| string | $type_tag | type of the question type |
Definition at line 1069 of file class.SurveyQuestion.php.
Referenced by ilObjSurveyQuestionPoolGUI\deleteQuestionsObject(), ilSurveyQuestionsTableGUI\fillRow(), ilSurveyResultsCumulatedTableGUI\getItems(), and ilSurveyEditorGUI\removeQuestionsForm().
Here is the caller graph for this function:
|
static |
Returns the question title of a question with a given id.
Definition at line 781 of file class.SurveyQuestion.php.
References $data, $DIC, and $ilDB.
Referenced by ilObjSurveyGUI\addLocatorItems(), ilObjSurveyQuestionPoolGUI\addLocatorItems(), ILIAS\components\ILIAS\Glossary\Table\TermUsagesTable\getDataRetrieval(), and ilSurveySyncTableGUI\importData().
Here is the caller graph for this function:
|
static |
Include the php class file for a given question type.
| int | $gui | 0 if the class should be included, 1 if the GUI class should be included |
Definition at line 1049 of file class.SurveyQuestion.php.
Referenced by ilSurveyConstraintsGUI\confirmDeleteConstraintsObject(), ilObjSurvey\getUserSpecificResults(), ilObjSurveyQuestionPool\toXML(), and ilObjSurveyQuestionPool\toXmlForExport().
Here is the caller graph for this function:
|
static |
Get question object.
Definition at line 1081 of file class.SurveyQuestion.php.
Referenced by ilSurveySkill\determineMaxScale(), ilObjSurveyQuestionPool\removeQuestion(), and ilSurveyExecutionGUI\saveActiveQuestionData().
Here is the caller graph for this function:
|
static |
Definition at line 1109 of file class.SurveyQuestion.php.
Referenced by ilSurveyEvaluationGUI\exportEvaluationUser(), ILIAS\Survey\PrintView\ResultsDetailsPrintViewProviderGUI\getPages(), ILIAS\Survey\Evaluation\EvaluationManager\getUserSpecificResults(), and ilObjSurvey\getUserSpecificResults().
Here is the caller graph for this function:
|
static |
Get question gui object.
Definition at line 1096 of file class.SurveyQuestion.php.
|
static |
Checks whether the question is complete or not.
Definition at line 400 of file class.SurveyQuestion.php.
Referenced by SurveyQuestionGUI\save().
Here is the caller graph for this function:
|
static |
is question writeable by a certain user
Definition at line 998 of file class.SurveyQuestion.php.
Referenced by SurveyQuestionGUI\save().
Here is the caller graph for this function:
|
static |
Definition at line 1411 of file class.SurveyQuestion.php.
|
static |
Definition at line 865 of file class.SurveyQuestion.php.
Referenced by ilSurveySkill\read(), and SurveyQuestionGUI\save().
Here is the caller graph for this function:
|
static |
Definition at line 884 of file class.SurveyQuestion.php.
References ilLMObject\_getIdForImportId(), and ilInternalLink\_getIdForImportId().
Here is the call graph for this function:
|
static |
Definition at line 915 of file class.SurveyQuestion.php.
References $ilDB.
| SurveyQuestion::addMaterials | ( | string | $materials_file, |
| string | $materials_name = "" |
||
| ) |
Definition at line 159 of file class.SurveyQuestion.php.
| SurveyQuestion::addMaterialTag | ( | ilXmlWriter | $a_xml_writer, |
| string | $a_material, | ||
| bool | $close_material_tag = true, |
||
| bool | $add_mobs = true, |
||
| ?array | $a_attrs = null |
||
| ) |
Creates an XML material tag from a plain text or xhtml text.
Definition at line 1170 of file class.SurveyQuestion.php.
| SurveyQuestion::copyObject | ( | int | $target_questionpool, |
| string | $title = "" |
||
| ) |
Definition at line 352 of file class.SurveyQuestion.php.
| SurveyQuestion::copyXHTMLMediaObjectsOfQuestion | ( | int | $a_q_id | ) |
Copy media object usages from other question.
Definition at line 379 of file class.SurveyQuestion.php.
References ilObjMediaObject\_saveUsage(), and ILIAS\Survey\Mode\getId().
Here is the call graph for this function:| SurveyQuestion::createNewQuestion | ( | ) |
Creates a new question with a 0 timestamp when a new question is created This assures that an ID is given to the question if a file upload or something else occurs.
Definition at line 503 of file class.SurveyQuestion.php.
References $ilDB, and ILIAS\Survey\Mode\getId().
Here is the call graph for this function:| SurveyQuestion::delete | ( | int | $question_id | ) |
Deletes a question and all materials from the database.
Definition at line 642 of file class.SurveyQuestion.php.
References $ilDB, ilInternalLink\_deleteAllLinksOfSource(), ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_removeUsage(), CLIENT_WEB_DIR, ilFileUtils\delDir(), ilSurveySkill\handleQuestionDeletion(), and ILIAS\Repository\int().
Here is the call graph for this function:| SurveyQuestion::deleteAdditionalTableData | ( | int | $question_id | ) |
Deletes datasets from the additional question table in the database.
Reimplemented in SurveyMatrixQuestion.
Definition at line 626 of file class.SurveyQuestion.php.
References $ilDB.
| SurveyQuestion::deleteMaterial | ( | string | $materials_name = "" | ) |
Definition at line 196 of file class.SurveyQuestion.php.
| SurveyQuestion::duplicate | ( | bool | $for_survey = true, |
| string | $title = "", |
||
| string | $author = "", |
||
| int | $owner = 0, |
||
| int | $a_survey_id = 0 |
||
| ) |
Definition at line 315 of file class.SurveyQuestion.php.
| SurveyQuestion::flushMaterials | ( | ) |
Deletes all materials uris.
Definition at line 213 of file class.SurveyQuestion.php.
| SurveyQuestion::getAuthor | ( | ) |
Definition at line 284 of file class.SurveyQuestion.php.
Referenced by SurveyMetricQuestion\isComplete(), SurveyMultipleChoiceQuestion\isComplete(), SurveySingleChoiceQuestion\isComplete(), and SurveyTextQuestion\isComplete().
Here is the caller graph for this function:| SurveyQuestion::getAvailableRelations | ( | ) |
Returns the available relations for the question.
Reimplemented in SurveyMetricQuestion, SurveyMultipleChoiceQuestion, and SurveySingleChoiceQuestion.
Definition at line 1282 of file class.SurveyQuestion.php.
| SurveyQuestion::getCopyIds | ( | bool | $a_group_by_survey = false | ) |
Definition at line 1385 of file class.SurveyQuestion.php.
| SurveyQuestion::getDescription | ( | ) |
Definition at line 279 of file class.SurveyQuestion.php.
| SurveyQuestion::getId | ( | ) |
Definition at line 246 of file class.SurveyQuestion.php.
References $id.
Referenced by SurveyMultipleChoiceQuestion\saveCategoriesToDb(), SurveySingleChoiceQuestion\saveCategoriesToDb(), SurveyMetricQuestion\saveToDb(), SurveyMultipleChoiceQuestion\saveToDb(), SurveySingleChoiceQuestion\saveToDb(), and SurveyTextQuestion\saveToDb().
Here is the caller graph for this function:| SurveyQuestion::getImagePath | ( | ) |
Returns the image path for web accessible images of a question.
Definition at line 543 of file class.SurveyQuestion.php.
References CLIENT_WEB_DIR.
| SurveyQuestion::getImagePathWeb | ( | ) |
Returns the web image path for web accessible images of a question.
Definition at line 559 of file class.SurveyQuestion.php.
References CLIENT_WEB_DIR, and ilFileUtils\removeTrailingPathSeparators().
Here is the call graph for this function:| SurveyQuestion::getLabel | ( | ) |
Definition at line 241 of file class.SurveyQuestion.php.
| SurveyQuestion::getMaterial | ( | ) |
Definition at line 1330 of file class.SurveyQuestion.php.
| SurveyQuestion::getMaterialsPath | ( | ) |
Returns the materials path for web accessible materials of a question.
Definition at line 551 of file class.SurveyQuestion.php.
References CLIENT_WEB_DIR.
| SurveyQuestion::getMaterialsPathWeb | ( | ) |
Returns the web image path for web accessable images of a question.
Definition at line 572 of file class.SurveyQuestion.php.
References CLIENT_WEB_DIR, and ilFileUtils\removeTrailingPathSeparators().
Here is the call graph for this function:
|
static |
Get max sum score for specific survey (and this question type)
Reimplemented in SurveyMatrixQuestion, SurveyMultipleChoiceQuestion, and SurveySingleChoiceQuestion.
Definition at line 1461 of file class.SurveyQuestion.php.
| SurveyQuestion::getObjId | ( | ) |
Get the reference(?) id of the container object.
Definition at line 302 of file class.SurveyQuestion.php.
| SurveyQuestion::getObligatory | ( | ) |
Definition at line 251 of file class.SurveyQuestion.php.
| SurveyQuestion::getOrientation | ( | ) |
Definition at line 264 of file class.SurveyQuestion.php.
Referenced by SurveyMultipleChoiceQuestion\saveToDb(), and SurveySingleChoiceQuestion\saveToDb().
Here is the caller graph for this function:| SurveyQuestion::getOriginalId | ( | ) |
Definition at line 1325 of file class.SurveyQuestion.php.
| SurveyQuestion::getOwner | ( | ) |
Definition at line 289 of file class.SurveyQuestion.php.
| SurveyQuestion::getPreconditionOptions | ( | ) |
Returns the options for preconditions.
Reimplemented in SurveyMultipleChoiceQuestion, and SurveySingleChoiceQuestion.
Definition at line 1291 of file class.SurveyQuestion.php.
| SurveyQuestion::getPreconditionSelectValue | ( | string | $default, |
| string | $title, | ||
| string | $variable | ||
| ) |
Creates a form property for the precondition value.
Reimplemented in SurveyMatrixQuestion, SurveyMetricQuestion, SurveyMultipleChoiceQuestion, and SurveySingleChoiceQuestion.
Definition at line 1311 of file class.SurveyQuestion.php.
| SurveyQuestion::getPreconditionValueOutput | ( | string | $value | ) |
Returns the output for a precondition value.
| string | $value | The precondition value |
Reimplemented in SurveyMatrixQuestion, SurveyMultipleChoiceQuestion, and SurveySingleChoiceQuestion.
Definition at line 1302 of file class.SurveyQuestion.php.
| SurveyQuestion::getQuestionDataArray | ( | int | $id | ) |
Returns the question data.
Reimplemented in SurveyMatrixQuestion, SurveyMetricQuestion, SurveyMultipleChoiceQuestion, SurveySingleChoiceQuestion, and SurveyTextQuestion.
Definition at line 1220 of file class.SurveyQuestion.php.
| SurveyQuestion::getQuestiontext | ( | ) |
Definition at line 294 of file class.SurveyQuestion.php.
Referenced by SurveyMetricQuestion\isComplete(), SurveyMultipleChoiceQuestion\isComplete(), SurveySingleChoiceQuestion\isComplete(), and SurveyTextQuestion\isComplete().
Here is the caller graph for this function:| SurveyQuestion::getQuestionType | ( | ) |
Reimplemented in SurveyMatrixQuestion, SurveyMetricQuestion, SurveyMultipleChoiceQuestion, SurveySingleChoiceQuestion, and SurveyTextQuestion.
Definition at line 1040 of file class.SurveyQuestion.php.
| SurveyQuestion::getQuestionTypeID | ( | ) |
Reimplemented in SurveyMetricQuestion.
Definition at line 1024 of file class.SurveyQuestion.php.
References $ilDB.
| SurveyQuestion::getSubtype | ( | ) |
Reimplemented in SurveyMatrixQuestion, and SurveyMetricQuestion.
Definition at line 1340 of file class.SurveyQuestion.php.
| SurveyQuestion::getSurveyId | ( | ) |
Definition at line 256 of file class.SurveyQuestion.php.
| SurveyQuestion::getTitle | ( | ) |
Definition at line 236 of file class.SurveyQuestion.php.
Referenced by SurveyMetricQuestion\isComplete(), SurveyMultipleChoiceQuestion\isComplete(), SurveySingleChoiceQuestion\isComplete(), and SurveyTextQuestion\isComplete().
Here is the caller graph for this function:| SurveyQuestion::getWorkingDataFromUserInput | ( | array | $post_data | ) |
Creates the user data of the svy_answer table from the POST data.
Reimplemented in SurveyMatrixQuestion, SurveyMetricQuestion, SurveyMultipleChoiceQuestion, SurveySingleChoiceQuestion, and SurveyTextQuestion.
Definition at line 1229 of file class.SurveyQuestion.php.
References $data.
| SurveyQuestion::hasCopies | ( | ) |
Definition at line 1406 of file class.SurveyQuestion.php.
| SurveyQuestion::importAdditionalMetadata | ( | array | $a_meta | ) |
Import additional meta data from the question import file.
Usually the meta data section is used to store question elements which are not part of the standard XML schema.
Reimplemented in SurveyMatrixQuestion, SurveyMultipleChoiceQuestion, and SurveySingleChoiceQuestion.
Definition at line 1241 of file class.SurveyQuestion.php.
| SurveyQuestion::importAdjectives | ( | array | $a_data | ) |
Import bipolar adjectives from the question import file.
Reimplemented in SurveyMatrixQuestion.
Definition at line 1257 of file class.SurveyQuestion.php.
| SurveyQuestion::importMatrix | ( | array | $a_data | ) |
Import matrix rows from the question import file.
Reimplemented in SurveyMatrixQuestion.
Definition at line 1265 of file class.SurveyQuestion.php.
| SurveyQuestion::importResponses | ( | array | $a_data | ) |
Import response data from the question import file.
Reimplemented in SurveyMatrixQuestion, SurveyMetricQuestion, SurveyMultipleChoiceQuestion, SurveySingleChoiceQuestion, and SurveyTextQuestion.
Definition at line 1249 of file class.SurveyQuestion.php.
| SurveyQuestion::isComplete | ( | ) |
Reimplemented in SurveyMatrixQuestion, SurveyMetricQuestion, SurveyMultipleChoiceQuestion, SurveySingleChoiceQuestion, and SurveyTextQuestion.
Definition at line 103 of file class.SurveyQuestion.php.
| SurveyQuestion::isHTML | ( | string | $a_text | ) |
Definition at line 1130 of file class.SurveyQuestion.php.
| SurveyQuestion::loadFromDb | ( | int | $question_id | ) |
load question data into object note: this base implementation only loads the material data
Reimplemented in SurveyMatrixQuestion, SurveyMetricQuestion, SurveyMultipleChoiceQuestion, SurveySingleChoiceQuestion, and SurveyTextQuestion.
Definition at line 392 of file class.SurveyQuestion.php.
|
static |
Definition at line 1428 of file class.SurveyQuestion.php.
Referenced by ILIAS\components\ILIAS\Glossary\Table\TermUsagesTable\getDataRetrieval(), and ilSurveyQuestionTableGUI\importData().
Here is the caller graph for this function:| SurveyQuestion::prepareTextareaOutput | ( | string | $txt_output, |
| bool | $prepare_for_latex_output = false |
||
| ) |
Prepares string for a text area output in surveys.
Definition at line 1210 of file class.SurveyQuestion.php.
| SurveyQuestion::QTIMaterialToString | ( | ilQTIMaterial | $a_material | ) |
Reads an QTI material tag an creates a text string.
Definition at line 1142 of file class.SurveyQuestion.php.
References ilLoggerFactory\getLogger(), ilQTIMaterial\getMaterial(), and ilQTIMaterial\getMaterialCount().
Here is the call graph for this function:| SurveyQuestion::questionTitleExists | ( | string | $title, |
| int | $questionpool_object = 0 |
||
| ) |
Definition at line 108 of file class.SurveyQuestion.php.
References $ilDB.
| SurveyQuestion::saveCategoryToDb | ( | string | $categorytext, |
| int | $neutral = 0 |
||
| ) |
Saves a category to the database.
Definition at line 585 of file class.SurveyQuestion.php.
References $ilDB, and ILIAS\Repository\int().
Referenced by SurveyMultipleChoiceQuestion\saveCategoriesToDb(), and SurveySingleChoiceQuestion\saveCategoriesToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| SurveyQuestion::saveCompletionStatus | ( | int | $original_id = 0 | ) |
Saves the complete flag to the database.
Definition at line 423 of file class.SurveyQuestion.php.
Referenced by SurveyMultipleChoiceQuestion\saveCategoriesToDb(), and SurveySingleChoiceQuestion\saveCategoriesToDb().
Here is the caller graph for this function:| SurveyQuestion::saveToDb | ( | int | $original_id = 0 | ) |
Saves a SurveyQuestion object to a database.
Reimplemented in SurveyMatrixQuestion, SurveyMetricQuestion, SurveyMultipleChoiceQuestion, SurveySingleChoiceQuestion, and SurveyTextQuestion.
Definition at line 448 of file class.SurveyQuestion.php.
References $ilDB, ilRTE\_cleanupMediaObjectUsage(), ilRTE\_replaceMediaObjectImageSrc(), ILIAS\Survey\Mode\getId(), and ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle().
Here is the call graph for this function:| SurveyQuestion::setAuthor | ( | string | $author = "" | ) |
Definition at line 218 of file class.SurveyQuestion.php.
References ILIAS\Repository\user().
Referenced by SurveyMetricQuestion\loadFromDb(), SurveyMultipleChoiceQuestion\loadFromDb(), SurveySingleChoiceQuestion\loadFromDb(), and SurveyTextQuestion\loadFromDb().
Here is the call graph for this function:
Here is the caller graph for this function:| SurveyQuestion::setComplete | ( | bool | $a_complete | ) |
Definition at line 98 of file class.SurveyQuestion.php.
Referenced by SurveyMetricQuestion\loadFromDb(), SurveyMultipleChoiceQuestion\loadFromDb(), SurveySingleChoiceQuestion\loadFromDb(), and SurveyTextQuestion\loadFromDb().
Here is the caller graph for this function:| SurveyQuestion::setDescription | ( | string | $description = "" | ) |
Definition at line 154 of file class.SurveyQuestion.php.
Referenced by SurveyMetricQuestion\loadFromDb(), SurveyMultipleChoiceQuestion\loadFromDb(), SurveySingleChoiceQuestion\loadFromDb(), and SurveyTextQuestion\loadFromDb().
Here is the caller graph for this function:| SurveyQuestion::setId | ( | int | $id = -1 | ) |
Definition at line 144 of file class.SurveyQuestion.php.
References $id.
Referenced by SurveyMetricQuestion\loadFromDb(), SurveyMultipleChoiceQuestion\loadFromDb(), SurveySingleChoiceQuestion\loadFromDb(), and SurveyTextQuestion\loadFromDb().
Here is the caller graph for this function:| SurveyQuestion::setMaterialsfile | ( | string | $materials_filename, |
| string | $materials_tempfilename = "", |
||
| string | $materials_name = "" |
||
| ) |
Uploads and adds a material.
Definition at line 174 of file class.SurveyQuestion.php.
References ilFileUtils\makeDirParents(), and ilFileUtils\moveUploadedFile().
Here is the call graph for this function:| SurveyQuestion::setObjId | ( | int | $obj_id = 0 | ) |
Set the reference(?) id of the container object.
Definition at line 310 of file class.SurveyQuestion.php.
Referenced by SurveyMetricQuestion\loadFromDb(), SurveyMultipleChoiceQuestion\loadFromDb(), SurveySingleChoiceQuestion\loadFromDb(), and SurveyTextQuestion\loadFromDb().
Here is the caller graph for this function:| SurveyQuestion::setObligatory | ( | bool | $obligatory = true | ) |
Definition at line 134 of file class.SurveyQuestion.php.
Referenced by SurveyMetricQuestion\loadFromDb(), SurveyMultipleChoiceQuestion\loadFromDb(), SurveySingleChoiceQuestion\loadFromDb(), and SurveyTextQuestion\loadFromDb().
Here is the caller graph for this function:| SurveyQuestion::setOrientation | ( | int | $orientation = 0 | ) |
Definition at line 139 of file class.SurveyQuestion.php.
Referenced by SurveyMultipleChoiceQuestion\loadFromDb(), and SurveySingleChoiceQuestion\loadFromDb().
Here is the caller graph for this function:| SurveyQuestion::setOriginalId | ( | ?int | $original_id | ) |
Definition at line 1320 of file class.SurveyQuestion.php.
Referenced by SurveyMetricQuestion\loadFromDb(), SurveyMultipleChoiceQuestion\loadFromDb(), SurveySingleChoiceQuestion\loadFromDb(), and SurveyTextQuestion\loadFromDb().
Here is the caller graph for this function:| SurveyQuestion::setOwner | ( | int | $owner = 0 | ) |
| int | $owner | user id of owner |
Definition at line 231 of file class.SurveyQuestion.php.
References ILIAS\UI\examples\Symbol\Glyph\Owner\owner().
Referenced by SurveyMetricQuestion\loadFromDb(), SurveyMultipleChoiceQuestion\loadFromDb(), SurveySingleChoiceQuestion\loadFromDb(), and SurveyTextQuestion\loadFromDb().
Here is the call graph for this function:
Here is the caller graph for this function:| SurveyQuestion::setQuestiontext | ( | string | $questiontext = "" | ) |
Definition at line 223 of file class.SurveyQuestion.php.
Referenced by SurveyMetricQuestion\loadFromDb(), SurveyMultipleChoiceQuestion\loadFromDb(), SurveySingleChoiceQuestion\loadFromDb(), and SurveyTextQuestion\loadFromDb().
Here is the caller graph for this function:| SurveyQuestion::setSubtype | ( | int | $a_subtype | ) |
Reimplemented in SurveyMatrixQuestion, and SurveyMetricQuestion.
Definition at line 1335 of file class.SurveyQuestion.php.
| SurveyQuestion::setSurveyId | ( | int | $id = -1 | ) |
Definition at line 149 of file class.SurveyQuestion.php.
References $id.
| SurveyQuestion::setTitle | ( | string | $title = "" | ) |
Definition at line 129 of file class.SurveyQuestion.php.
Referenced by SurveyMetricQuestion\loadFromDb(), SurveyMultipleChoiceQuestion\loadFromDb(), SurveySingleChoiceQuestion\loadFromDb(), and SurveyTextQuestion\loadFromDb().
Here is the caller graph for this function:| SurveyQuestion::stripSlashesAddSpaceFallback | ( | string | $a_str | ) |
Strip slashes with add space fallback, see https://mantis.ilias.de/view.php?id=19727 and https://mantis.ilias.de/view.php?id=24200.
Definition at line 1449 of file class.SurveyQuestion.php.
References ilUtil\stripSlashes().
Here is the call graph for this function:| SurveyQuestion::syncWithOriginal | ( | ) |
Reimplemented in SurveyMatrixQuestion.
Definition at line 825 of file class.SurveyQuestion.php.
References $id, $ilDB, ilInternalLink\_deleteAllLinksOfSource(), ilInternalLink\_saveLink(), and ILIAS\Survey\Mode\getId().
Here is the call graph for this function:| SurveyQuestion::usableForPrecondition | ( | ) |
Returns if the question is usable for preconditions.
Reimplemented in SurveyMatrixQuestion, SurveyMetricQuestion, SurveyMultipleChoiceQuestion, SurveySingleChoiceQuestion, and SurveyTextQuestion.
Definition at line 1273 of file class.SurveyQuestion.php.
|
private |
Definition at line 48 of file class.SurveyQuestion.php.
| string SurveyQuestion::$author |
Definition at line 37 of file class.SurveyQuestion.php.
Referenced by SurveyMatrixQuestion\__construct(), __construct(), SurveyTextQuestion\__construct(), SurveyMultipleChoiceQuestion\__construct(), SurveySingleChoiceQuestion\__construct(), and SurveyMetricQuestion\__construct().
| bool SurveyQuestion::$complete |
Definition at line 46 of file class.SurveyQuestion.php.
|
protected |
Definition at line 47 of file class.SurveyQuestion.php.
|
protected |
Definition at line 32 of file class.SurveyQuestion.php.
Referenced by SurveyMetricQuestion\getQuestionDataArray(), SurveyMultipleChoiceQuestion\getQuestionDataArray(), SurveySingleChoiceQuestion\getQuestionDataArray(), SurveyTextQuestion\getQuestionDataArray(), SurveyMetricQuestion\loadFromDb(), SurveyMultipleChoiceQuestion\loadFromDb(), SurveySingleChoiceQuestion\loadFromDb(), SurveyTextQuestion\loadFromDb(), SurveyMultipleChoiceQuestion\saveCategoriesToDb(), SurveySingleChoiceQuestion\saveCategoriesToDb(), SurveyMetricQuestion\saveToDb(), SurveyMultipleChoiceQuestion\saveToDb(), SurveySingleChoiceQuestion\saveToDb(), and SurveyTextQuestion\saveToDb().
| string SurveyQuestion::$description |
Definition at line 35 of file class.SurveyQuestion.php.
Referenced by SurveyMatrixQuestion\__construct(), __construct(), SurveyTextQuestion\__construct(), SurveyMultipleChoiceQuestion\__construct(), SurveySingleChoiceQuestion\__construct(), and SurveyMetricQuestion\__construct().
|
protected |
Definition at line 30 of file class.SurveyQuestion.php.
| int SurveyQuestion::$id |
Definition at line 33 of file class.SurveyQuestion.php.
Referenced by SurveyMetricQuestion\getQuestionDataArray(), SurveyMultipleChoiceQuestion\getQuestionDataArray(), SurveySingleChoiceQuestion\getQuestionDataArray(), and SurveyTextQuestion\getQuestionDataArray().
|
protected |
Definition at line 51 of file class.SurveyQuestion.php.
| ilLanguage SurveyQuestion::$lng |
Definition at line 43 of file class.SurveyQuestion.php.
Referenced by __construct().
|
protected |
Definition at line 49 of file class.SurveyQuestion.php.
| array SurveyQuestion::$material |
Definition at line 45 of file class.SurveyQuestion.php.
| array SurveyQuestion::$materials |
Definition at line 38 of file class.SurveyQuestion.php.
| int SurveyQuestion::$obj_id |
Definition at line 40 of file class.SurveyQuestion.php.
| bool SurveyQuestion::$obligatory |
Definition at line 42 of file class.SurveyQuestion.php.
| int SurveyQuestion::$orientation |
Definition at line 44 of file class.SurveyQuestion.php.
Referenced by SurveyMultipleChoiceQuestion\__construct(), and SurveySingleChoiceQuestion\__construct().
|
protected |
Definition at line 29 of file class.SurveyQuestion.php.
Referenced by SurveyMetricQuestion\saveToDb(), SurveyMultipleChoiceQuestion\saveToDb(), SurveySingleChoiceQuestion\saveToDb(), and SurveyTextQuestion\saveToDb().
| int SurveyQuestion::$owner |
Definition at line 36 of file class.SurveyQuestion.php.
Referenced by SurveyMatrixQuestion\__construct(), __construct(), SurveyTextQuestion\__construct(), SurveyMultipleChoiceQuestion\__construct(), SurveySingleChoiceQuestion\__construct(), and SurveyMetricQuestion\__construct().
| string SurveyQuestion::$questiontext |
Definition at line 41 of file class.SurveyQuestion.php.
Referenced by SurveyMatrixQuestion\__construct(), __construct(), SurveyTextQuestion\__construct(), SurveyMultipleChoiceQuestion\__construct(), SurveySingleChoiceQuestion\__construct(), and SurveyMetricQuestion\__construct().
| int SurveyQuestion::$survey_id |
Definition at line 39 of file class.SurveyQuestion.php.
| string SurveyQuestion::$title |
Definition at line 34 of file class.SurveyQuestion.php.
Referenced by SurveyMatrixQuestion\__construct(), __construct(), SurveyTextQuestion\__construct(), SurveyMultipleChoiceQuestion\__construct(), SurveySingleChoiceQuestion\__construct(), and SurveyMetricQuestion\__construct().
|
protected |
Definition at line 31 of file class.SurveyQuestion.php.