| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
 Inheritance diagram for SurveyMatrixQuestion:
 Collaboration diagram for SurveyMatrixQuestion:Public Member Functions | |
| __construct (string $title="", string $description="", string $author="", string $questiontext="", int $owner=-1) | |
| getColumnCount () | |
| removeColumn (int $index) | |
| removeColumns (array $array) | |
| removeColumnWithName (string $name) | |
| getColumns () | |
| getColumn (int $index) | |
| getColumnForScale (int $scale) | |
| getColumnIndex (string $name) | |
| flushColumns () | |
| getRowCount () | |
| addRow (string $a_text, string $a_other, string $a_label) | |
| addRowAtPosition (string $a_text, string $a_other, int $a_position) | |
| flushRows () | |
| getRow (int $a_index) | |
| moveRowUp (int $index) | |
| moveRowDown (int $index) | |
| removeRows (array $array) | |
| removeRow (int $index) | |
| getBipolarAdjective (int $a_index) | |
| Returns one of the bipolar adjectives.  More... | |
| setBipolarAdjective (int $a_index, string $a_value) | |
| getQuestionDataArray (int $id) | |
| Returns the question data fields from the database.  More... | |
| loadFromDb (int $question_id) | |
| isComplete () | |
| saveToDb (int $original_id=0) | |
| saveBipolarAdjectives (string $adjective1, string $adjective2) | |
| saveColumnToDb (string $columntext, int $neutral=0) | |
| saveColumnsToDb (int $original_id=0) | |
| saveRowsToDb (int $original_id=0) | |
| toXML (bool $a_include_header=true, bool $obligatory_state=false) | |
| Returns an xml representation of the question.  More... | |
| insertXML (ilXmlWriter $a_xml_writer, bool $a_include_header=true) | |
| Adds the question XML to a given XMLWriter object.  More... | |
| syncWithOriginal () | |
| addStandardNumbers (int $lower_limit, int $upper_limit) | |
| Adds standard numbers as columns.  More... | |
| getQuestionType () | |
| getAdditionalTableName () | |
| Returns the name of the additional question data table in the database.  More... | |
| getWorkingDataFromUserInput (array $post_data) | |
| checkUserInput (array $post_data, int $survey_id) | |
| Checks the input of the active user for obligatory status and entered values.  More... | |
| saveUserInput (array $post_data, int $active_id, bool $a_return=false) | |
| deleteAdditionalTableData (int $question_id) | |
| Delete question data from additional table.  More... | |
| getSubtype () | |
| Returns the subtype of the matrix question.  More... | |
| setSubtype (int $a_subtype=0) | |
| Sets the subtype of the matrix question.  More... | |
| setColumnSeparators (bool $enable=false) | |
| Enables/Disables separators for the matrix columns.  More... | |
| getColumnSeparators () | |
| setRowSeparators (bool $enable=false) | |
| Enables/Disables separators for the matrix rows.  More... | |
| getRowSeparators () | |
| setNeutralColumnSeparator (bool $enable=true) | |
| getNeutralColumnSeparator () | |
| importAdditionalMetadata (array $a_meta) | |
| Import additional meta 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... | |
| importResponses (array $a_data) | |
| Import response data from the question import file.  More... | |
| usableForPrecondition () | |
| Returns if the question is usable 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... | |
| saveLayout (float $percent_row, float $percent_columns, float $percent_bipolar_adjective1=0, float $percent_bipolar_adjective2=0, float $percent_neutral=0) | |
| Saves the layout of a matrix question.  More... | |
| getLayout () | |
| setLayout ($layout) | |
| hasBipolarAdjectives () | |
| Returns TRUE if bipolar adjectives exist.  More... | |
| hasNeutralColumn () | |
| Returns TRUE if a neutral column exists.  More... | |
| setColumnPlaceholders (bool $a_value=false) | |
| Set whether placeholders should be used for the column titles or not.  More... | |
| getColumnPlaceholders () | |
| setLegend (bool $a_value=false) | |
| Set whether the legend should be shown or not.  More... | |
| getLegend () | |
| setSingleLineRowCaption (bool $a_value=false) | |
| getSingleLineRowCaption () | |
| setRepeatColumnHeader (bool $a_value=false) | |
| getRepeatColumnHeader () | |
| getRows () | |
  Public Member Functions inherited from SurveyQuestion | |
| __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, string $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 | getMaxSumScore (int $survey_id) | 
  Static Public Member Functions inherited from SurveyQuestion | |
| 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 | |
| SurveyCategories | $columns | 
| SurveyCategories | $rows | 
| string | $bipolar_adjective1 = "" | 
| string | $bipolar_adjective2 = "" | 
| bool | $columnSeparators = false | 
| bool | $rowSeparators = false | 
| bool | $neutralColumnSeparator = false | 
| array | $layout | 
| bool | $columnPlaceholders = false | 
| bool | $legend = false | 
| bool | $singleLineRowCaption = false | 
| bool | $repeatColumnHeader = false | 
| int | $subtype | 
| Matrix question subtype 0 = Single choice 1 = Multiple choice 2 = Text 3 = Integer 4 = Double 5 = Date 6 = Time.  More... | |
  Data Fields inherited from SurveyQuestion | |
| 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 | 
Additional Inherited Members | |
  Protected Attributes inherited from SurveyQuestion | |
| int | $original_id | 
| ILIAS SurveyQuestionPool Editing EditSessionRepository | $edit_manager | 
| ilObjUser | $user | 
| ilDBInterface | $db | 
| array | $cumulated | 
| ilLogger | $log | 
| ILIAS SurveyQuestionPool Export ImportSessionRepository | $import_manager | 
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 The SurveyMatrixQuestion class defines and encapsulates basic methods and attributes for matrix question types.
Definition at line 24 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::__construct | ( | string | $title = "",  | 
        
| string | $description = "",  | 
        ||
| string | $author = "",  | 
        ||
| string | $questiontext = "",  | 
        ||
| int | $owner = -1  | 
        ||
| ) | 
Definition at line 57 of file class.SurveyMatrixQuestion.php.
References SurveyQuestion\$author, SurveyQuestion\$description, $DIC, SurveyQuestion\$owner, SurveyQuestion\$questiontext, SurveyQuestion\$title, ILIAS\MetaData\Repository\Validation\Data\__construct(), and ILIAS\Repository\user().
 Here is the call graph for this function:| SurveyMatrixQuestion::addRow | ( | string | $a_text, | 
| string | $a_other, | ||
| string | $a_label | ||
| ) | 
Definition at line 133 of file class.SurveyMatrixQuestion.php.
Referenced by importMatrix(), and loadFromDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::addRowAtPosition | ( | string | $a_text, | 
| string | $a_other, | ||
| int | $a_position | ||
| ) | 
Definition at line 141 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::addStandardNumbers | ( | int | $lower_limit, | 
| int | $upper_limit | ||
| ) | 
Adds standard numbers as columns.
Definition at line 602 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::checkUserInput | ( | array | $post_data, | 
| int | $survey_id | ||
| ) | 
Checks the input of the active user for obligatory status and entered values.
Definition at line 660 of file class.SurveyMatrixQuestion.php.
References ILIAS\LTI\ToolProvider\$key, SurveyQuestion\getId(), SurveyQuestion\getObligatory(), getRowCount(), getSubtype(), and ILIAS\Repository\lng().
 Here is the call graph for this function:| SurveyMatrixQuestion::deleteAdditionalTableData | ( | int | $question_id | ) | 
Delete question data from additional table.
Definition at line 773 of file class.SurveyMatrixQuestion.php.
References SurveyQuestion\$db, and $ilDB.
| SurveyMatrixQuestion::flushColumns | ( | ) | 
Definition at line 123 of file class.SurveyMatrixQuestion.php.
Referenced by loadFromDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::flushRows | ( | ) | 
Definition at line 149 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::getAdditionalTableName | ( | ) | 
Returns the name of the additional question data table in the database.
Definition at line 620 of file class.SurveyMatrixQuestion.php.
Referenced by getQuestionDataArray(), loadFromDb(), saveBipolarAdjectives(), saveLayout(), and saveToDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::getBipolarAdjective | ( | int | $a_index | ) | 
Returns one of the bipolar adjectives.
| int | $a_index | bipolar adjective (0 first, and 1 for the second) | 
Definition at line 186 of file class.SurveyMatrixQuestion.php.
References $bipolar_adjective1, and $bipolar_adjective2.
Referenced by hasBipolarAdjectives(), insertXML(), and saveToDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::getColumn | ( | int | $index | ) | 
Definition at line 108 of file class.SurveyMatrixQuestion.php.
Referenced by hasNeutralColumn(), insertXML(), and saveColumnsToDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::getColumnCount | ( | ) | 
Definition at line 80 of file class.SurveyMatrixQuestion.php.
Referenced by hasNeutralColumn(), insertXML(), isComplete(), and saveColumnsToDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::getColumnForScale | ( | int | $scale | ) | 
Definition at line 113 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::getColumnIndex | ( | string | $name | ) | 
Definition at line 118 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::getColumnPlaceholders | ( | ) | 
Definition at line 1060 of file class.SurveyMatrixQuestion.php.
References $columnPlaceholders.
Referenced by saveToDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::getColumns | ( | ) | 
Definition at line 103 of file class.SurveyMatrixQuestion.php.
References $columns.
| SurveyMatrixQuestion::getColumnSeparators | ( | ) | 
Definition at line 823 of file class.SurveyMatrixQuestion.php.
References $columnSeparators.
Referenced by insertXML(), and saveToDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::getLayout | ( | ) | 
Definition at line 978 of file class.SurveyMatrixQuestion.php.
References $layout, hasBipolarAdjectives(), and hasNeutralColumn().
Referenced by insertXML(), and saveToDb().
 Here is the call graph for this function:
 Here is the caller graph for this function:| SurveyMatrixQuestion::getLegend | ( | ) | 
Definition at line 1073 of file class.SurveyMatrixQuestion.php.
References $legend.
Referenced by saveToDb().
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 1104 of file class.SurveyMatrixQuestion.php.
References SurveyQuestion\$db, $DIC, ilDBInterface\fetchAssoc(), and ilDBInterface\queryF().
 Here is the call graph for this function:| SurveyMatrixQuestion::getNeutralColumnSeparator | ( | ) | 
Definition at line 846 of file class.SurveyMatrixQuestion.php.
References $neutralColumnSeparator.
Referenced by insertXML(), and saveToDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::getPreconditionSelectValue | ( | string | $default, | 
| string | $title, | ||
| string | $variable | ||
| ) | 
Creates a form property for the precondition value.
Definition at line 934 of file class.SurveyMatrixQuestion.php.
References SurveyQuestion\getPreconditionOptions().
 Here is the call graph for this function:| SurveyMatrixQuestion::getPreconditionValueOutput | ( | string | $value | ) | 
Returns the output for a precondition value.
Definition at line 926 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::getQuestionDataArray | ( | int | $id | ) | 
Returns the question data fields from the database.
Definition at line 208 of file class.SurveyMatrixQuestion.php.
References SurveyQuestion\$db, $ilDB, and getAdditionalTableName().
 Here is the call graph for this function:| SurveyMatrixQuestion::getQuestionType | ( | ) | 
Definition at line 612 of file class.SurveyMatrixQuestion.php.
Referenced by insertXML().
 Here is the caller graph for this function:| SurveyMatrixQuestion::getRepeatColumnHeader | ( | ) | 
Definition at line 1093 of file class.SurveyMatrixQuestion.php.
References $repeatColumnHeader.
Referenced by saveToDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::getRow | ( | int | $a_index | ) | 
Definition at line 154 of file class.SurveyMatrixQuestion.php.
Referenced by insertXML(), and saveRowsToDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::getRowCount | ( | ) | 
Definition at line 128 of file class.SurveyMatrixQuestion.php.
Referenced by checkUserInput(), insertXML(), isComplete(), and saveRowsToDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::getRows | ( | ) | 
Definition at line 1099 of file class.SurveyMatrixQuestion.php.
References $rows.
| SurveyMatrixQuestion::getRowSeparators | ( | ) | 
Definition at line 836 of file class.SurveyMatrixQuestion.php.
References $rowSeparators.
Referenced by insertXML(), and saveToDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::getSingleLineRowCaption | ( | ) | 
Definition at line 1083 of file class.SurveyMatrixQuestion.php.
References $singleLineRowCaption.
Referenced by saveToDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::getSubtype | ( | ) | 
Returns the subtype of the matrix question.
Definition at line 789 of file class.SurveyMatrixQuestion.php.
References $subtype.
Referenced by checkUserInput(), getWorkingDataFromUserInput(), insertXML(), saveToDb(), and saveUserInput().
 Here is the caller graph for this function:| SurveyMatrixQuestion::getWorkingDataFromUserInput | ( | array | $post_data | ) | 
Definition at line 625 of file class.SurveyMatrixQuestion.php.
References $data, ILIAS\LTI\ToolProvider\$key, SurveyQuestion\getId(), and getSubtype().
 Here is the call graph for this function:| SurveyMatrixQuestion::hasBipolarAdjectives | ( | ) | 
Returns TRUE if bipolar adjectives exist.
Definition at line 1033 of file class.SurveyMatrixQuestion.php.
References getBipolarAdjective().
Referenced by getLayout().
 Here is the call graph for this function:
 Here is the caller graph for this function:| SurveyMatrixQuestion::hasNeutralColumn | ( | ) | 
Returns TRUE if a neutral column exists.
Definition at line 1041 of file class.SurveyMatrixQuestion.php.
References getColumn(), and getColumnCount().
Referenced by getLayout().
 Here is the call graph for this function:
 Here is the caller graph for this function:| SurveyMatrixQuestion::importAdditionalMetadata | ( | array | $a_meta | ) | 
Import additional meta data from the question import file.
Definition at line 854 of file class.SurveyMatrixQuestion.php.
References ILIAS\LTI\ToolProvider\$key, setColumnSeparators(), setLayout(), setNeutralColumnSeparator(), and setRowSeparators().
 Here is the call graph for this function:| SurveyMatrixQuestion::importAdjectives | ( | array | $a_data | ) | 
Import bipolar adjectives from the question import file.
Definition at line 877 of file class.SurveyMatrixQuestion.php.
References setBipolarAdjective().
 Here is the call graph for this function:| SurveyMatrixQuestion::importMatrix | ( | array | $a_data | ) | 
Import matrix rows from the question import file.
Definition at line 893 of file class.SurveyMatrixQuestion.php.
References addRow().
 Here is the call graph for this function:| SurveyMatrixQuestion::importResponses | ( | array | $a_data | ) | 
Import response data from the question import file.
Definition at line 904 of file class.SurveyMatrixQuestion.php.
References $data, SurveyQuestion\$id, and SurveyQuestion\$material.
| SurveyMatrixQuestion::insertXML | ( | ilXmlWriter | $a_xml_writer, | 
| bool | $a_include_header = true  | 
        ||
| ) | 
Adds the question XML to a given XMLWriter object.
Definition at line 470 of file class.SurveyMatrixQuestion.php.
References SurveyQuestion\addMaterialTag(), SurveyQuestion\getAuthor(), getBipolarAdjective(), getColumn(), getColumnCount(), getColumnSeparators(), SurveyQuestion\getDescription(), SurveyQuestion\getId(), getLayout(), getNeutralColumnSeparator(), SurveyQuestion\getObligatory(), SurveyQuestion\getQuestiontext(), getQuestionType(), getRow(), getRowCount(), getRowSeparators(), getSubtype(), SurveyQuestion\getTitle(), IL_INST_ID, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by toXML().
 Here is the call graph for this function:
 Here is the caller graph for this function:| SurveyMatrixQuestion::isComplete | ( | ) | 
Definition at line 281 of file class.SurveyMatrixQuestion.php.
References SurveyQuestion\getAuthor(), getColumnCount(), SurveyQuestion\getQuestiontext(), getRowCount(), and SurveyQuestion\getTitle().
 Here is the call graph for this function:| SurveyMatrixQuestion::loadFromDb | ( | int | $question_id | ) | 
Definition at line 224 of file class.SurveyMatrixQuestion.php.
References $data, SurveyQuestion\$db, $ilDB, ilRTE\_replaceMediaObjectImageSrc(), addRow(), flushColumns(), getAdditionalTableName(), SurveyQuestion\setAuthor(), setBipolarAdjective(), setColumnPlaceholders(), setColumnSeparators(), SurveyQuestion\setComplete(), SurveyQuestion\setDescription(), SurveyQuestion\setId(), setLayout(), setLegend(), setNeutralColumnSeparator(), SurveyQuestion\setObjId(), SurveyQuestion\setObligatory(), SurveyQuestion\setOriginalId(), SurveyQuestion\setOwner(), SurveyQuestion\setQuestiontext(), setRepeatColumnHeader(), setRowSeparators(), setSingleLineRowCaption(), setSubtype(), and SurveyQuestion\setTitle().
 Here is the call graph for this function:| SurveyMatrixQuestion::moveRowDown | ( | int | $index | ) | 
Definition at line 164 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::moveRowUp | ( | int | $index | ) | 
Definition at line 159 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::removeColumn | ( | int | $index | ) | 
Definition at line 85 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::removeColumns | ( | array | $array | ) | 
| int[] | $array index positions | 
Definition at line 93 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::removeColumnWithName | ( | string | $name | ) | 
Definition at line 98 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::removeRow | ( | int | $index | ) | 
Definition at line 177 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::removeRows | ( | array | $array | ) | 
| int[] | $array index positions | 
Definition at line 172 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::saveBipolarAdjectives | ( | string | $adjective1, | 
| string | $adjective2 | ||
| ) | 
Definition at line 337 of file class.SurveyMatrixQuestion.php.
References SurveyQuestion\$db, $ilDB, getAdditionalTableName(), and SurveyQuestion\getId().
 Here is the call graph for this function:| SurveyMatrixQuestion::saveColumnsToDb | ( | int | $original_id = 0 | ) | 
Definition at line 385 of file class.SurveyMatrixQuestion.php.
References SurveyQuestion\$db, $ilDB, SurveyQuestion\$original_id, getColumn(), getColumnCount(), SurveyQuestion\getId(), saveColumnToDb(), and SurveyQuestion\saveCompletionStatus().
Referenced by saveToDb(), and syncWithOriginal().
 Here is the call graph for this function:
 Here is the caller graph for this function:| SurveyMatrixQuestion::saveColumnToDb | ( | string | $columntext, | 
| int | $neutral = 0  | 
        ||
| ) | 
Definition at line 350 of file class.SurveyMatrixQuestion.php.
References SurveyQuestion\$db, $ilDB, and SurveyQuestion\$user.
Referenced by saveColumnsToDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::saveLayout | ( | float | $percent_row, | 
| float | $percent_columns, | ||
| float | $percent_bipolar_adjective1 = 0,  | 
        ||
| float | $percent_bipolar_adjective2 = 0,  | 
        ||
| float | $percent_neutral = 0  | 
        ||
| ) | 
Saves the layout of a matrix question.
| float | $percent_row | width in percent for the matrix rows | 
| float | $percent_columns | width in percent for the matrix columns | 
| float | int | $percent_bipolar_adjective1 | width in percent for the first bipolar adjective | 
| float | int | $percent_bipolar_adjective2 | width in percent for the second bipolar adjective | 
| float | int | $percent_neutral | 
Definition at line 955 of file class.SurveyMatrixQuestion.php.
References SurveyQuestion\$db, $ilDB, getAdditionalTableName(), and SurveyQuestion\getId().
 Here is the call graph for this function:| SurveyMatrixQuestion::saveRowsToDb | ( | int | $original_id = 0 | ) | 
Definition at line 416 of file class.SurveyMatrixQuestion.php.
References SurveyQuestion\$db, $ilDB, SurveyQuestion\$original_id, SurveyQuestion\getId(), getRow(), getRowCount(), and SurveyQuestion\saveCompletionStatus().
Referenced by saveToDb(), and syncWithOriginal().
 Here is the call graph for this function:
 Here is the caller graph for this function:| SurveyMatrixQuestion::saveToDb | ( | int | $original_id = 0 | ) | 
Definition at line 292 of file class.SurveyMatrixQuestion.php.
References SurveyQuestion\$db, $ilDB, SurveyQuestion\$original_id, getAdditionalTableName(), getBipolarAdjective(), getColumnPlaceholders(), getColumnSeparators(), SurveyQuestion\getId(), getLayout(), getLegend(), getNeutralColumnSeparator(), getRepeatColumnHeader(), getRowSeparators(), getSingleLineRowCaption(), getSubtype(), saveColumnsToDb(), and saveRowsToDb().
 Here is the call graph for this function:| SurveyMatrixQuestion::saveUserInput | ( | array | $post_data, | 
| int | $active_id, | ||
| bool | $a_return = false  | 
        ||
| ) | 
Definition at line 703 of file class.SurveyMatrixQuestion.php.
References SurveyQuestion\$db, $ilDB, ILIAS\LTI\ToolProvider\$key, SurveyQuestion\getId(), getSubtype(), and SurveyQuestion\stripSlashesAddSpaceFallback().
 Here is the call graph for this function:| SurveyMatrixQuestion::setBipolarAdjective | ( | int | $a_index, | 
| string | $a_value | ||
| ) | 
Definition at line 194 of file class.SurveyMatrixQuestion.php.
Referenced by importAdjectives(), and loadFromDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::setColumnPlaceholders | ( | bool | $a_value = false | ) | 
Set whether placeholders should be used for the column titles or not.
Definition at line 1055 of file class.SurveyMatrixQuestion.php.
Referenced by loadFromDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::setColumnSeparators | ( | bool | $enable = false | ) | 
Enables/Disables separators for the matrix columns.
Definition at line 818 of file class.SurveyMatrixQuestion.php.
Referenced by importAdditionalMetadata(), and loadFromDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::setLayout | ( | $layout | ) | 
| array | string | $layout | 
Definition at line 1021 of file class.SurveyMatrixQuestion.php.
References $layout.
Referenced by importAdditionalMetadata(), and loadFromDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::setLegend | ( | bool | $a_value = false | ) | 
Set whether the legend should be shown or not.
Definition at line 1068 of file class.SurveyMatrixQuestion.php.
Referenced by loadFromDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::setNeutralColumnSeparator | ( | bool | $enable = true | ) | 
Definition at line 841 of file class.SurveyMatrixQuestion.php.
Referenced by importAdditionalMetadata(), and loadFromDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::setRepeatColumnHeader | ( | bool | $a_value = false | ) | 
Definition at line 1088 of file class.SurveyMatrixQuestion.php.
Referenced by loadFromDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::setRowSeparators | ( | bool | $enable = false | ) | 
Enables/Disables separators for the matrix rows.
Definition at line 831 of file class.SurveyMatrixQuestion.php.
Referenced by importAdditionalMetadata(), and loadFromDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::setSingleLineRowCaption | ( | bool | $a_value = false | ) | 
Definition at line 1078 of file class.SurveyMatrixQuestion.php.
Referenced by loadFromDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::setSubtype | ( | int | $a_subtype = 0 | ) | 
Sets the subtype of the matrix question.
Definition at line 797 of file class.SurveyMatrixQuestion.php.
Referenced by loadFromDb().
 Here is the caller graph for this function:| SurveyMatrixQuestion::syncWithOriginal | ( | ) | 
Definition at line 590 of file class.SurveyMatrixQuestion.php.
References SurveyQuestion\getOriginalId(), saveColumnsToDb(), and saveRowsToDb().
 Here is the call graph for this function:| SurveyMatrixQuestion::toXML | ( | bool | $a_include_header = true,  | 
        
| bool | $obligatory_state = false  | 
        ||
| ) | 
Returns an xml representation of the question.
Definition at line 452 of file class.SurveyMatrixQuestion.php.
References insertXML().
 Here is the call graph for this function:| SurveyMatrixQuestion::usableForPrecondition | ( | ) | 
Returns if the question is usable for preconditions.
Definition at line 918 of file class.SurveyMatrixQuestion.php.
| string SurveyMatrixQuestion::$bipolar_adjective1 = "" | 
Definition at line 29 of file class.SurveyMatrixQuestion.php.
Referenced by getBipolarAdjective().
| string SurveyMatrixQuestion::$bipolar_adjective2 = "" | 
Definition at line 31 of file class.SurveyMatrixQuestion.php.
Referenced by getBipolarAdjective().
| bool SurveyMatrixQuestion::$columnPlaceholders = false | 
Definition at line 40 of file class.SurveyMatrixQuestion.php.
Referenced by getColumnPlaceholders().
| SurveyCategories SurveyMatrixQuestion::$columns | 
Definition at line 26 of file class.SurveyMatrixQuestion.php.
Referenced by getColumns().
| bool SurveyMatrixQuestion::$columnSeparators = false | 
Definition at line 33 of file class.SurveyMatrixQuestion.php.
Referenced by getColumnSeparators().
| array SurveyMatrixQuestion::$layout | 
Definition at line 38 of file class.SurveyMatrixQuestion.php.
Referenced by getLayout(), and setLayout().
| bool SurveyMatrixQuestion::$legend = false | 
Definition at line 41 of file class.SurveyMatrixQuestion.php.
Referenced by getLegend().
| bool SurveyMatrixQuestion::$neutralColumnSeparator = false | 
Definition at line 37 of file class.SurveyMatrixQuestion.php.
Referenced by getNeutralColumnSeparator().
| bool SurveyMatrixQuestion::$repeatColumnHeader = false | 
Definition at line 43 of file class.SurveyMatrixQuestion.php.
Referenced by getRepeatColumnHeader().
| SurveyCategories SurveyMatrixQuestion::$rows | 
Definition at line 27 of file class.SurveyMatrixQuestion.php.
Referenced by getRows().
| bool SurveyMatrixQuestion::$rowSeparators = false | 
Definition at line 35 of file class.SurveyMatrixQuestion.php.
Referenced by getRowSeparators().
| bool SurveyMatrixQuestion::$singleLineRowCaption = false | 
Definition at line 42 of file class.SurveyMatrixQuestion.php.
Referenced by getSingleLineRowCaption().
| int SurveyMatrixQuestion::$subtype | 
Matrix question subtype 0 = Single choice 1 = Multiple choice 2 = Text 3 = Integer 4 = Double 5 = Date 6 = Time.
Definition at line 55 of file class.SurveyMatrixQuestion.php.
Referenced by getSubtype().