|
ILIAS
release_8 Revision v8.24
|
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) | |
| addPhrase (int $phrase_id) | |
| Adds a phrase to the question. More... | |
| getQuestionDataArray (int $id) | |
| Returns the question data fields from the database. More... | |
| loadFromDb (int $question_id) | |
| load question data into object note: this base implementation only loads the material data More... | |
| isComplete () | |
| saveToDb (int $original_id=0) | |
| Saves a SurveyQuestion object to a database. More... | |
| 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... | |
| savePhrase (string $title) | |
| Saves a set of columns to a default phrase (data currently comes from session) More... | |
| getQuestionType () | |
| getAdditionalTableName () | |
| Returns the name of the additional question data table in the database. More... | |
| getWorkingDataFromUserInput (array $post_data) | |
| Creates the user data of the svy_answer table from the POST data. More... | |
| 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... | |
| saveMaterial () | |
| 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 () | |
| getPhrase (int $phrase_id) | |
| Returns a phrase title for phrase id. More... | |
| phraseExists (string $title) | |
| Returns true if the phrase title already exists for the current user(!) More... | |
| deleteMaterials (array $a_array) | |
| duplicateMaterials (int $question_id) | |
| Duplicates the materials of a question. More... | |
| addMaterial (ilSurveyMaterial $obj_material) | |
| 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) |
| Get max sum score for specific survey (and this question type) More... | |
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 |
||
| ) |
Reimplemented from SurveyQuestion.
Definition at line 57 of file class.SurveyMatrixQuestion.php.
References SurveyQuestion\$author, SurveyQuestion\$description, $DIC, SurveyQuestion\$owner, SurveyQuestion\$questiontext, SurveyQuestion\$title, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\user().
Here is the call graph for this function:| SurveyMatrixQuestion::addPhrase | ( | int | $phrase_id | ) |
Adds a phrase to the question.
Definition at line 208 of file class.SurveyMatrixQuestion.php.
References $ilDB, $ilUser, and ILIAS\Repository\lng().
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.
| 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 628 of file class.SurveyMatrixQuestion.php.
References $i.
| SurveyMatrixQuestion::checkUserInput | ( | array | $post_data, |
| int | $survey_id | ||
| ) |
Checks the input of the active user for obligatory status and entered values.
Definition at line 723 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::deleteAdditionalTableData | ( | int | $question_id | ) |
Delete question data from additional table.
Reimplemented from SurveyQuestion.
Definition at line 836 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::flushColumns | ( | ) |
Definition at line 123 of file class.SurveyMatrixQuestion.php.
| 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 683 of file class.SurveyMatrixQuestion.php.
| 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.
| SurveyMatrixQuestion::getColumn | ( | int | $index | ) |
Definition at line 108 of file class.SurveyMatrixQuestion.php.
References $index.
| SurveyMatrixQuestion::getColumnCount | ( | ) |
Definition at line 80 of file class.SurveyMatrixQuestion.php.
| 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.
References $name.
| SurveyMatrixQuestion::getColumnPlaceholders | ( | ) |
Definition at line 1123 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::getColumns | ( | ) |
Definition at line 103 of file class.SurveyMatrixQuestion.php.
References $columns.
| SurveyMatrixQuestion::getColumnSeparators | ( | ) |
Definition at line 886 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::getLayout | ( | ) |
Definition at line 1041 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::getLegend | ( | ) |
Definition at line 1136 of file class.SurveyMatrixQuestion.php.
|
static |
Get max sum score for specific survey (and this question type)
Reimplemented from SurveyQuestion.
Definition at line 1167 of file class.SurveyMatrixQuestion.php.
References $DIC.
| SurveyMatrixQuestion::getNeutralColumnSeparator | ( | ) |
Definition at line 909 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::getPreconditionSelectValue | ( | string | $default, |
| string | $title, | ||
| string | $variable | ||
| ) |
Creates a form property for the precondition value.
Reimplemented from SurveyQuestion.
Definition at line 997 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::getPreconditionValueOutput | ( | string | $value | ) |
Returns the output for a precondition value.
Reimplemented from SurveyQuestion.
Definition at line 989 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::getQuestionDataArray | ( | int | $id | ) |
Returns the question data fields from the database.
Reimplemented from SurveyQuestion.
Definition at line 231 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::getQuestionType | ( | ) |
Reimplemented from SurveyQuestion.
Definition at line 675 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::getRepeatColumnHeader | ( | ) |
Definition at line 1156 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::getRow | ( | int | $a_index | ) |
Definition at line 154 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::getRowCount | ( | ) |
Definition at line 128 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::getRows | ( | ) |
Definition at line 1162 of file class.SurveyMatrixQuestion.php.
References $rows.
| SurveyMatrixQuestion::getRowSeparators | ( | ) |
Definition at line 899 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::getSingleLineRowCaption | ( | ) |
Definition at line 1146 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::getSubtype | ( | ) |
Returns the subtype of the matrix question.
Reimplemented from SurveyQuestion.
Definition at line 852 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::getWorkingDataFromUserInput | ( | array | $post_data | ) |
Creates the user data of the svy_answer table from the POST data.
Reimplemented from SurveyQuestion.
Definition at line 688 of file class.SurveyMatrixQuestion.php.
References $data, ILIAS\LTI\ToolProvider\$key, and ILIAS\Survey\Mode\getId().
Here is the call graph for this function:| SurveyMatrixQuestion::hasBipolarAdjectives | ( | ) |
Returns TRUE if bipolar adjectives exist.
Definition at line 1096 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::hasNeutralColumn | ( | ) |
Returns TRUE if a neutral column exists.
Definition at line 1104 of file class.SurveyMatrixQuestion.php.
References $i.
| SurveyMatrixQuestion::importAdditionalMetadata | ( | array | $a_meta | ) |
Import additional meta data from the question import file.
Reimplemented from SurveyQuestion.
Definition at line 917 of file class.SurveyMatrixQuestion.php.
References ILIAS\LTI\ToolProvider\$key.
| SurveyMatrixQuestion::importAdjectives | ( | array | $a_data | ) |
Import bipolar adjectives from the question import file.
Reimplemented from SurveyQuestion.
Definition at line 940 of file class.SurveyMatrixQuestion.php.
References $i.
| SurveyMatrixQuestion::importMatrix | ( | array | $a_data | ) |
Import matrix rows from the question import file.
Reimplemented from SurveyQuestion.
Definition at line 956 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::importResponses | ( | array | $a_data | ) |
Import response data from the question import file.
Reimplemented from SurveyQuestion.
Definition at line 967 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::insertXML | ( | ilXmlWriter | $a_xml_writer, |
| bool | $a_include_header = true |
||
| ) |
Adds the question XML to a given XMLWriter object.
Definition at line 496 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::isComplete | ( | ) |
Reimplemented from SurveyQuestion.
Definition at line 304 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::loadFromDb | ( | int | $question_id | ) |
load question data into object note: this base implementation only loads the material data
Reimplemented from SurveyQuestion.
Definition at line 247 of file class.SurveyMatrixQuestion.php.
References $data, $ilDB, and ilRTE\_replaceMediaObjectImageSrc().
Here is the call graph for this function:| SurveyMatrixQuestion::moveRowDown | ( | int | $index | ) |
Definition at line 164 of file class.SurveyMatrixQuestion.php.
References $index.
| SurveyMatrixQuestion::moveRowUp | ( | int | $index | ) |
Definition at line 159 of file class.SurveyMatrixQuestion.php.
References $index.
| SurveyMatrixQuestion::removeColumn | ( | int | $index | ) |
Definition at line 85 of file class.SurveyMatrixQuestion.php.
References $index.
| 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.
References $name.
| SurveyMatrixQuestion::removeRow | ( | int | $index | ) |
Definition at line 177 of file class.SurveyMatrixQuestion.php.
References $index.
| 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 363 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::saveColumnsToDb | ( | int | $original_id = 0 | ) |
Definition at line 411 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::saveColumnToDb | ( | string | $columntext, |
| int | $neutral = 0 |
||
| ) |
Definition at line 376 of file class.SurveyMatrixQuestion.php.
References $ilDB.
| 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 1018 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::savePhrase | ( | string | $title | ) |
Saves a set of columns to a default phrase (data currently comes from session)
Definition at line 641 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::saveRowsToDb | ( | int | $original_id = 0 | ) |
Definition at line 442 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::saveToDb | ( | int | $original_id = 0 | ) |
Saves a SurveyQuestion object to a database.
Reimplemented from SurveyQuestion.
Definition at line 315 of file class.SurveyMatrixQuestion.php.
References $ilDB, and ILIAS\Survey\Mode\getId().
Here is the call graph for this function:| SurveyMatrixQuestion::saveUserInput | ( | array | $post_data, |
| int | $active_id, | ||
| bool | $a_return = false |
||
| ) |
Definition at line 766 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::setBipolarAdjective | ( | int | $a_index, |
| string | $a_value | ||
| ) |
Definition at line 194 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::setColumnPlaceholders | ( | bool | $a_value = false | ) |
Set whether placeholders should be used for the column titles or not.
Definition at line 1118 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::setColumnSeparators | ( | bool | $enable = false | ) |
Enables/Disables separators for the matrix columns.
Definition at line 881 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::setLayout | ( | $layout | ) |
| array | string | $layout |
Definition at line 1084 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::setLegend | ( | bool | $a_value = false | ) |
Set whether the legend should be shown or not.
Definition at line 1131 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::setNeutralColumnSeparator | ( | bool | $enable = true | ) |
Definition at line 904 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::setRepeatColumnHeader | ( | bool | $a_value = false | ) |
Definition at line 1151 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::setRowSeparators | ( | bool | $enable = false | ) |
Enables/Disables separators for the matrix rows.
Definition at line 894 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::setSingleLineRowCaption | ( | bool | $a_value = false | ) |
Definition at line 1141 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::setSubtype | ( | int | $a_subtype = 0 | ) |
Sets the subtype of the matrix question.
Reimplemented from SurveyQuestion.
Definition at line 860 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::syncWithOriginal | ( | ) |
Reimplemented from SurveyQuestion.
Definition at line 616 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::toXML | ( | bool | $a_include_header = true, |
| bool | $obligatory_state = false |
||
| ) |
Returns an xml representation of the question.
Definition at line 478 of file class.SurveyMatrixQuestion.php.
| SurveyMatrixQuestion::usableForPrecondition | ( | ) |
Returns if the question is usable for preconditions.
Reimplemented from SurveyQuestion.
Definition at line 981 of file class.SurveyMatrixQuestion.php.
| string SurveyMatrixQuestion::$bipolar_adjective1 = "" |
Definition at line 29 of file class.SurveyMatrixQuestion.php.
| string SurveyMatrixQuestion::$bipolar_adjective2 = "" |
Definition at line 31 of file class.SurveyMatrixQuestion.php.
| bool SurveyMatrixQuestion::$columnPlaceholders = false |
Definition at line 40 of file class.SurveyMatrixQuestion.php.
| 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.
| array SurveyMatrixQuestion::$layout |
Definition at line 38 of file class.SurveyMatrixQuestion.php.
| bool SurveyMatrixQuestion::$legend = false |
Definition at line 41 of file class.SurveyMatrixQuestion.php.
| bool SurveyMatrixQuestion::$neutralColumnSeparator = false |
Definition at line 37 of file class.SurveyMatrixQuestion.php.
| bool SurveyMatrixQuestion::$repeatColumnHeader = false |
Definition at line 43 of file class.SurveyMatrixQuestion.php.
| SurveyCategories SurveyMatrixQuestion::$rows |
Definition at line 27 of file class.SurveyMatrixQuestion.php.
| bool SurveyMatrixQuestion::$rowSeparators = false |
Definition at line 35 of file class.SurveyMatrixQuestion.php.
| bool SurveyMatrixQuestion::$singleLineRowCaption = false |
Definition at line 42 of file class.SurveyMatrixQuestion.php.
| 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.