|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Inheritance diagram for assKprimChoice:
Collaboration diagram for assKprimChoice:Public Member Functions | |
| __construct ($title='', $comment='', $author='', $owner=-1, $question='') | |
| getQuestionType () | |
| getAdditionalTableName () | |
| getAnswerTableName () | |
| setShuffleAnswersEnabled (bool $shuffle_answers_enabled) | |
| isShuffleAnswersEnabled () | |
| setAnswerType ($answerType) | |
| getAnswerType () | |
| setThumbSize (int $thumbSize) | |
| getThumbSize () | |
| setScorePartialSolutionEnabled ($scorePartialSolutionEnabled) | |
| isScorePartialSolutionEnabled () | |
| setOptionLabel (string $option_label) | |
| getOptionLabel () | |
| setCustomTrueOptionLabel ($customTrueOptionLabel) | |
| getCustomTrueOptionLabel () | |
| setCustomFalseOptionLabel ($customFalseOptionLabel) | |
| getCustomFalseOptionLabel () | |
| setSpecificFeedbackSetting (int $specific_feedback_setting) | |
| getSpecificFeedbackSetting () | |
| setAnswers ($answers) | |
| getAnswers () | |
| getAnswer ($position) | |
| addAnswer (ilAssKprimChoiceAnswer $answer) | |
| loadFromDb ($questionId) | |
| saveToDb (?int $original_id=null) | |
| saveAdditionalQuestionDataToDb () | |
| Saves a record to the question types additional data table. More... | |
| saveAnswerSpecificDataToDb () | |
| Saves the answer specific records into a question types answer table. More... | |
| isComplete () | |
| saveWorkingData (int $active_id, ?int $pass=null, bool $authorized=true) | |
| calculateReachedPoints (int $active_id, ?int $pass=null, bool $authorized_solution=true) | |
| getValidAnswerTypes () | |
| isValidAnswerType ($answerType) | |
| isSingleLineAnswerType ($answerType) | |
| getAnswerTypeSelectOptions (ilLanguage $lng) | |
| getValidOptionLabels () | |
| getValidOptionLabelsTranslated (ilLanguage $lng) | |
| getLangVarForOptionLabel (string $option_label) | |
| isValidOptionLabel (?string $option_label) | |
| getTrueOptionLabelTranslation (ilLanguage $lng, string $option_label) | |
| getTrueOptionLabel (string $option_label) | |
| getFalseOptionLabelTranslation (ilLanguage $lng, string $option_label) | |
| getInstructionTextTranslation (ilLanguage $lng, $option_label) | |
| isCustomOptionLabel ($labelValue) | |
| handleFileUploads ($answers, $files) | |
| removeAnswerImage ($position) | |
| toJSON () | |
| Returns a JSON representation of the question. More... | |
| getSpecificFeedbackAllCorrectOptionLabel () | |
| moveAnswerDown ($position) | |
| moveAnswerUp ($position) | |
| toLog (AdditionalInformationGenerator $additional_info) | |
| MUST return an array of the question settings that can be stored in the log. More... | |
| solutionValuesToText (array $solution_values) | |
| MUST convert the given solution values into text. More... | |
| getCorrectSolutionForTextOutput (int $active_id, int $pass) | |
| toNormalized (Transformations $transformations, array $context=[]) | |
| fromNormalized (array $normalized, Transformations $transformations) | |
Public Member Functions inherited from assQuestion | |
| getQuestionType () | |
| isComplete () | |
| saveWorkingData (int $active_id, ?int $pass=null, bool $authorized=true) | |
| calculateReachedPoints (int $active_id, ?int $pass=null, bool $authorized_solution=true) | |
| getAdditionalTableName () | |
| getAnswerTableName () | |
| toLog (AdditionalInformationGenerator $additional_info) | |
| MUST return an array of the question settings that can be stored in the log. More... | |
| getCurrentUser () | |
| getShuffler () | |
| setShuffler (Transformation $shuffler) | |
| setProcessLocker (ilAssQuestionProcessLocker $processLocker) | |
| getProcessLocker () | |
| fromXML (string $importdirectory, int $user_id, ilQTIItem $item, int $questionpool_id, ?int $tst_id, ?ilObject &$tst_object, int &$question_counter, array $import_mapping) | |
| toXML (bool $a_include_header=true, bool $a_include_binary=true, bool $a_shuffle=false, bool $test_output=false, bool $force_image_references=false) | |
| setTitle (string $title="") | |
| setId (int $id=-1) | |
| setTestId (int $id=-1) | |
| setComment (string $comment="") | |
| setShuffle (?bool $shuffle=true) | |
| setAuthor (string $author="") | |
| setOwner (int $owner=-1) | |
| getTitle () | |
| getTitleForHTMLOutput () | |
| getTitleFilenameCompliant () | |
| getId () | |
| getShuffle () | |
| getTestId () | |
| getComment () | |
| getDescriptionForHTMLOutput () | |
| getThumbSize () | |
| setThumbSize (int $a_size) | |
| getMinimumThumbSize () | |
| getMaximumThumbSize () | |
| getAuthor () | |
| getAuthorForHTMLOutput () | |
| getOwner () | |
| getObjId () | |
| setObjId (int $obj_id=0) | |
| getLifecycle () | |
| setLifecycle (ilAssQuestionLifecycle $lifecycle) | |
| setExternalId (?string $external_id) | |
| getExternalId () | |
| getSuggestedSolutionOutput () | |
| getSuggestedSolutions () | |
| getReachedPoints (int $active_id, int $pass) | |
| getMaximumPoints () | |
| getAdjustedReachedPoints (int $active_id, int $pass, bool $authorized_solution=true) | |
| calculateResultsFromSolution (int $active_id, int $pass) | |
| Calculates the question results from a previously saved question solution. More... | |
| persistWorkingState (int $active_id, $pass, bool $authorized=true) | |
| persists the working state for current testactive and testpass More... | |
| persistPreviewState (ilAssQuestionPreviewSession $preview_session) | |
| persists the preview state for current user and question More... | |
| validateSolutionSubmit () | |
| getSuggestedSolutionPath () | |
| getImagePath ($question_id=null, $object_id=null) | |
| Returns the image path for web accessable images of a question. More... | |
| getSuggestedSolutionPathWeb () | |
| getImagePathWeb () | |
| Returns the web image path for web accessable images of a question. More... | |
| getTestOutputSolutions (int $activeId, int $pass) | |
| getUserSolutionPreferingIntermediate (int $active_id, ?int $pass=null) | |
| getSolutionValues (int $active_id, ?int $pass=null, bool $authorized=true) | |
| Loads solutions of a given user from the database an returns it. More... | |
| deleteAnswers (int $question_id) | |
| deleteAdditionalTableData (int $question_id) | |
| delete (int $question_id) | |
| getTotalAnswers () | |
| cloneXHTMLMediaObjectsOfQuestion (int $source_question_id) | |
| createPageObject () | |
| clonePageOfQuestion (int $a_q_id) | |
| getPageOfQuestion () | |
| setOriginalId (?int $original_id) | |
| getOriginalId () | |
| fixSvgToPng (string $imageFilenameContainingString) | |
| fixUnavailableSkinImageSources (string $html) | |
| loadFromDb (int $question_id) | |
| createNewQuestion (bool $a_create_page=true) | |
| Creates a new question without an owner 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... | |
| saveQuestionDataToDb (?int $original_id=null) | |
| updateOriginalId (?int $original_id=null) | |
| duplicate (bool $set_original_id=true, string $title='', string $author='', int $owner=-1, $test_obj_id=null) | |
| copyObject (int $target_parent_id, string $title='') | |
| createNewOriginalFromThisDuplicate (int $target_parent_id, string $target_question_title='') | |
| saveToDb (?int $original_id=null) | |
| deleteSuggestedSolutions () | |
| getSuggestedSolution (int $subquestion_index=0) | |
| resolveInternalLink (string $internal_link) | |
| resolveSuggestedSolutionLinks () | |
| getInternalLinkHref (string $target) | |
| syncWithOriginal () | |
| getPoints () | |
| setPoints (float $points) | |
| getSolutionMaxPass (int $active_id) | |
| isWriteable () | |
| calculateReachedPointsFromPreviewSession (ilAssQuestionPreviewSession $preview_session) | |
| isPreviewSolutionCorrect (ilAssQuestionPreviewSession $preview_session) | |
| adjustReachedPointsByScoringOptions (float $points, int $active_id) | |
| Adjust the given reached points by checks for all special scoring options in the test container. More... | |
| buildHashedImageFilename (string $plain_image_filename, bool $unique=false) | |
| getQuestion () | |
| getQuestionForHTMLOutput () | |
| setQuestion (string $question="") | |
| getQuestionTypeID () | |
| cleanupMediaObjectUsage () | |
| getInstances () | |
| getActiveUserData (int $active_id) | |
| Returns the user id and the test id for a given active id. More... | |
| hasSpecificFeedback () | |
| getNrOfTries () | |
| setNrOfTries (int $a_nr_of_tries) | |
| setExportImagePath (string $path) | |
| formatSAQuestion ($a_q) | |
| setPreventRteUsage (bool $prevent_rte_usage) | |
| getPreventRteUsage () | |
| migrateContentForLearningModule (ilAssSelfAssessmentMigrator $migrator) | |
| setSelfAssessmentEditingMode (bool $selfassessmenteditingmode) | |
| getSelfAssessmentEditingMode () | |
| setDefaultNrOfTries (int $defaultnroftries) | |
| getDefaultNrOfTries () | |
| syncSkillAssignments (int $srcParentId, int $srcQuestionId, int $trgParentId, int $trgQuestionId) | |
| isAnswered (int $active_id, int $pass) | |
| getAdditionalContentEditingMode () | |
| setAdditionalContentEditingMode (?string $additionalContentEditingMode) | |
| isAdditionalContentEditingModePageObject () | |
| isValidAdditionalContentEditingMode (string $additionalContentEditingMode) | |
| getValidAdditionalContentEditingModes () | |
| getHtmlUserSolutionPurifier () | |
| getHtmlQuestionContentPurifier () | |
| setLastChange (int $lastChange) | |
| getLastChange () | |
| removeIntermediateSolution (int $active_id, int $pass) | |
| removeCurrentSolution (int $active_id, int $pass, bool $authorized=true) | |
| saveCurrentSolution (int $active_id, int $pass, $value1, $value2, bool $authorized=true, $tstamp=0) | |
| updateCurrentSolution (int $solutionId, $value1, $value2, bool $authorized=true) | |
| updateCurrentSolutionsAuthorization (int $activeId, int $pass, bool $authorized, bool $keepTime=false) | |
| setStep ($step) | |
| getStep () | |
| toJSON () | |
| intermediateSolutionExists (int $active_id, int $pass) | |
| authorizedSolutionExists (int $active_id, ?int $pass) | |
| authorizedOrIntermediateSolutionExists (int $active_id, int $pass) | |
| lookupForExistingSolutions (int $activeId, int $pass) | |
| Lookup if an authorized or intermediate solution exists. More... | |
| isAddableAnswerOptionValue (int $qIndex, string $answerOptionValue) | |
| addAnswerOptionValue (int $qIndex, string $answerOptionValue, float $points) | |
| removeAllExistingSolutions () | |
| removeExistingSolutions (int $activeId, int $pass) | |
| resetUsersAnswer (int $activeId, int $pass) | |
| removeResultRecord (int $activeId, int $pass) | |
| fetchValuePairsFromIndexedValues (array $indexedValues) | |
| fetchIndexedValuesFromValuePairs (array $value_pairs) | |
| updateTimestamp () | |
| getTestPresentationConfig () | |
| hasWritableOriginalInQuestionPool () | |
| answerToParticipantInteraction (AdditionalInformationGenerator $additional_info, int $test_ref_id, int $active_id, int $pass, string $source_ip, TestParticipantInteractionTypes $interaction_type) | |
| toQuestionAdministrationInteraction (AdditionalInformationGenerator $additional_info, int $test_ref_id, TestQuestionAdministrationInteractionTypes $interaction_type) | |
| getSolutionForTextOutput (int $active_id, int $pass) | |
| getCorrectSolutionForTextOutput (int $active_id, int $pass) | |
| getVariablesAsTextArray (int $active_id, int $pass) | |
| toNormalized (Transformations $transformations, array $context=[]) | |
| fromNormalized (array $normalized, Transformations $transformations) | |
| validateSolutionSubmit () | |
| toLog (AdditionalInformationGenerator $additional_info) | |
| answerToParticipantInteraction (AdditionalInformationGenerator $additional_info, int $test_id, int $active_id, int $pass, string $source_ip, TestParticipantInteractionTypes $interaction_type) | |
| toQuestionAdministrationInteraction (AdditionalInformationGenerator $additional_info, int $test_id, TestQuestionAdministrationInteractionTypes $interaction_type) | |
| saveAdditionalQuestionDataToDb () | |
| Saves a record to the question types additional data table. More... | |
| saveAnswerSpecificDataToDb () | |
| Saves the answer specific records into a question types answer table. More... | |
| getSpecificFeedbackAllCorrectOptionLabel () | |
| toJSON () | |
| toNormalized (Transformations $transformations, array $context=[]) | |
| Convert the internal state of the implementing object into a language-neutral array structure. More... | |
| fromNormalized (array $normalized, Transformations $transformations) | |
| Restore the object from its normalized representation. More... | |
Data Fields | |
| const | NUM_REQUIRED_ANSWERS = 4 |
| const | PARTIAL_SCORING_NUM_CORRECT_ANSWERS = 3 |
| const | ANSWER_TYPE_SINGLE_LINE = 'singleLine' |
| const | ANSWER_TYPE_MULTI_LINE = 'multiLine' |
| const | OPTION_LABEL_RIGHT_WRONG = 'right_wrong' |
| const | OPTION_LABEL_PLUS_MINUS = 'plus_minus' |
| const | OPTION_LABEL_APPLICABLE_OR_NOT = 'applicable_or_not' |
| const | OPTION_LABEL_ADEQUATE_OR_NOT = 'adequate_or_not' |
| const | OPTION_LABEL_CUSTOM = 'customlabel' |
| const | DEFAULT_THUMB_SIZE = 150 |
| const | THUMB_PREFIX = 'thumb.' |
Data Fields inherited from assQuestion | |
| const | ADDITIONAL_CONTENT_EDITING_MODE_RTE = 'default' |
| const | ADDITIONAL_CONTENT_EDITING_MODE_IPE = 'pageobject' |
| const | TRIM_PATTERN = '/^[\p{C}\p{Z}]+|[\p{C}\p{Z}]+$/u' |
| ilAssQuestionFeedback | $feedbackOBJ |
| bool | $prevent_rte_usage = false |
| bool | $selfassessmenteditingmode = false |
| int | $defaultnroftries = 0 |
| string | $questionActionCmd = 'handleQuestionAction' |
| const | KEY_VALUES_IMPLOSION_SEPARATOR = ':' |
Protected Member Functions | |
| getSolutionSubmit () | |
| calculateReachedPointsForSolution (?array $found_values, int $active_id=0) | |
| cloneQuestionTypeSpecificProperties (\assQuestion $target) | |
| getRTETextWithMediaObjects () | |
| lmMigrateQuestionTypeSpecificContent (ilAssSelfAssessmentMigrator $migrator) | |
| solutionValuesToLog (AdditionalInformationGenerator $additional_info, array $solution_values) | |
| MUST convert the given solution values into an array or a string that can be stored in the log. More... | |
Protected Member Functions inherited from assQuestion | |
| solutionValuesToLog (AdditionalInformationGenerator $additional_info, array $solution_values) | |
| MUST convert the given solution values into an array or a string that can be stored in the log. More... | |
| solutionValuesToText (array $solution_values) | |
| MUST convert the given solution values into text. More... | |
| getQuestionAction () | |
| isNonEmptyItemListPostSubmission (string $post_submission_field_name) | |
| savePreviewData (ilAssQuestionPreviewSession $preview_session) | |
| deletePageOfQuestion (int $question_id) | |
| cloneQuestionTypeSpecificProperties (self $target) | |
| removeAllImageFiles (string $image_target_path) | |
| onDuplicate (int $original_parent_id, int $original_question_id, int $duplicate_parent_id, int $duplicate_question_id) | |
| afterSyncWithOriginal (int $original_question_id, int $clone_question_id, int $original_parent_id, int $clone_parent_id) | |
| onCopy (int $sourceParentId, int $sourceQuestionId, int $targetParentId, int $targetQuestionId) | |
| duplicateComments (int $parent_source_id, int $source_id, int $parent_target_id, int $target_id) | |
| deleteComments () | |
| getNotesManager () | |
| getNotesDataService () | |
| getNotesRepo () | |
| cloneSuggestedSolutions (int $source_question_id, int $target_question_id) | |
| duplicateSuggestedSolutionFiles (int $parent_id, int $question_id) | |
| Duplicates the files of a suggested solution if the question is duplicated. More... | |
| cloneSuggestedSolutionFiles (int $source_question_id, int $target_question_id) | |
| copySuggestedSolutions (int $target_question_id) | |
| ensureNonNegativePoints (float $points) | |
| purifyAndPrepareTextAreaOutput (string $content) | |
| getRTETextWithMediaObjects () | |
| getSelfAssessmentFormatter () | |
| lmMigrateQuestionTypeGenericContent (ilAssSelfAssessmentMigrator $migrator) | |
| lmMigrateQuestionTypeSpecificContent (ilAssSelfAssessmentMigrator $migrator) | |
| duplicateSkillAssignments (int $srcParentId, int $srcQuestionId, int $trgParentId, int $trgQuestionId) | |
| buildQuestionDataQuery () | |
| getCurrentSolutionResultSet (int $active_id, int $pass, bool $authorized=true) | |
| removeSolutionRecordById (int $solutionId) | |
| getSolutionRecordById (int $solutionId) | |
| deleteDummySolutionRecord (int $activeId, int $passIndex) | |
| isDummySolutionRecord (array $solutionRecord) | |
| deleteSolutionRecordByValues (int $activeId, int $passIndex, bool $authorized, array $matchValues) | |
| duplicateIntermediateSolutionAuthorized (int $activeId, int $passIndex) | |
| forceExistingIntermediateSolution (int $activeId, int $passIndex, bool $considerDummyRecordCreation) | |
| lookupMaxStep (int $active_id, int $pass) | |
| buildTestPresentationConfig () | |
| getSuggestedSolutionsRepo () | |
| loadSuggestedSolutions () | |
| answerToLog (AdditionalInformationGenerator $additional_info, int $active_id, int $pass) | |
Private Member Functions | |
| loadAnswerData (int $question_id) | |
| getFalseOptionLabel (string $option_label) | |
| handleFileUpload (ilAssKprimChoiceAnswer $answer, $fileData) | |
| getNumAllowedFailures () | |
Private Attributes | |
| bool | $shuffle_answers_enabled = true |
| string | $answerType = self::ANSWER_TYPE_SINGLE_LINE |
| int | $thumbSize = self::DEFAULT_THUMB_SIZE |
| bool | $scorePartialSolutionEnabled = true |
| string | $option_label = self::OPTION_LABEL_RIGHT_WRONG |
| string | $customTrueOptionLabel = '' |
| string | $customFalseOptionLabel = '' |
| int | $specific_feedback_setting = ilAssConfigurableMultiOptionQuestionFeedback::FEEDBACK_SETTING_ALL |
| $answers = [] | |
Definition at line 35 of file class.assKprimChoice.php.
| assKprimChoice::__construct | ( | $title = '', |
|
$comment = '', |
|||
$author = '', |
|||
$owner = -1, |
|||
$question = '' |
|||
| ) |
Definition at line 66 of file class.assKprimChoice.php.
References assQuestion\$author, assQuestion\$comment, assQuestion\$owner, assQuestion\$question, assQuestion\$title, ILIAS\GlobalScreen\Provider\__construct(), and NUM_REQUIRED_ANSWERS.
Here is the call graph for this function:| assKprimChoice::addAnswer | ( | ilAssKprimChoiceAnswer | $answer | ) |
Definition at line 205 of file class.assKprimChoice.php.
References ilAssKprimChoiceAnswer\getAnswertext(), assQuestion\getHtmlQuestionContentPurifier(), and ilAssKprimChoiceAnswer\setAnswertext().
Here is the call graph for this function:| assKprimChoice::calculateReachedPoints | ( | int | $active_id, |
| ?int | $pass = null, |
||
| bool | $authorized_solution = true |
||
| ) |
Reimplemented from assQuestion.
Definition at line 407 of file class.assKprimChoice.php.
|
protected |
Definition at line 643 of file class.assKprimChoice.php.
|
protected |
Definition at line 675 of file class.assKprimChoice.php.
| assKprimChoice::fromNormalized | ( | array | $normalized, |
| Transformations | $transformations | ||
| ) |
| array<array-key,mixed> | $normalized |
Reimplemented from assQuestion.
Definition at line 948 of file class.assKprimChoice.php.
References ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\bool(), ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\denormalize(), ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\int(), and ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\string().
Here is the call graph for this function:| assKprimChoice::getAdditionalTableName | ( | ) |
Reimplemented from assQuestion.
Definition at line 82 of file class.assKprimChoice.php.
Referenced by saveAdditionalQuestionDataToDb().
Here is the caller graph for this function:| assKprimChoice::getAnswer | ( | $position | ) |
Definition at line 194 of file class.assKprimChoice.php.
References getAnswers().
Here is the call graph for this function:| assKprimChoice::getAnswers | ( | ) |
Definition at line 189 of file class.assKprimChoice.php.
References $answers.
Referenced by getAnswer(), isComplete(), and saveAnswerSpecificDataToDb().
Here is the caller graph for this function:| assKprimChoice::getAnswerTableName | ( | ) |
Reimplemented from assQuestion.
Definition at line 87 of file class.assKprimChoice.php.
Referenced by saveAnswerSpecificDataToDb().
Here is the caller graph for this function:| assKprimChoice::getAnswerType | ( | ) |
Definition at line 107 of file class.assKprimChoice.php.
References $answerType.
Referenced by saveAdditionalQuestionDataToDb().
Here is the caller graph for this function:| assKprimChoice::getAnswerTypeSelectOptions | ( | ilLanguage | $lng | ) |
| ilLanguage | $lng |
Definition at line 448 of file class.assKprimChoice.php.
References $lng.
| assKprimChoice::getCorrectSolutionForTextOutput | ( | int | $active_id, |
| int | $pass | ||
| ) |
Reimplemented from assQuestion.
Definition at line 917 of file class.assKprimChoice.php.
References ilAssKprimChoiceAnswer\getAnswertext(), ilAssKprimChoiceAnswer\getCorrectness(), and ILIAS\Repository\lng().
Here is the call graph for this function:| assKprimChoice::getCustomFalseOptionLabel | ( | ) |
Definition at line 157 of file class.assKprimChoice.php.
References $customFalseOptionLabel.
Referenced by saveAdditionalQuestionDataToDb().
Here is the caller graph for this function:| assKprimChoice::getCustomTrueOptionLabel | ( | ) |
Definition at line 147 of file class.assKprimChoice.php.
References $customTrueOptionLabel.
Referenced by saveAdditionalQuestionDataToDb().
Here is the caller graph for this function:
|
private |
Definition at line 538 of file class.assKprimChoice.php.
| assKprimChoice::getFalseOptionLabelTranslation | ( | ilLanguage | $lng, |
| string | $option_label | ||
| ) |
Definition at line 527 of file class.assKprimChoice.php.
References $lng.
| assKprimChoice::getInstructionTextTranslation | ( | ilLanguage | $lng, |
| $option_label | |||
| ) |
Definition at line 558 of file class.assKprimChoice.php.
References $lng.
| assKprimChoice::getLangVarForOptionLabel | ( | string | $option_label | ) |
Definition at line 479 of file class.assKprimChoice.php.
|
private |
Definition at line 771 of file class.assKprimChoice.php.
| assKprimChoice::getOptionLabel | ( | ) |
Definition at line 137 of file class.assKprimChoice.php.
References $option_label.
Referenced by saveAdditionalQuestionDataToDb().
Here is the caller graph for this function:| assKprimChoice::getQuestionType | ( | ) |
Reimplemented from assQuestion.
Definition at line 77 of file class.assKprimChoice.php.
|
protected |
Reimplemented from assQuestion.
Definition at line 688 of file class.assKprimChoice.php.
|
protected |
Definition at line 622 of file class.assKprimChoice.php.
References Vendor\Package\$a.
| assKprimChoice::getSpecificFeedbackAllCorrectOptionLabel | ( | ) |
Implements ilAssSpecificFeedbackOptionLabelProvider.
Definition at line 780 of file class.assKprimChoice.php.
| assKprimChoice::getSpecificFeedbackSetting | ( | ) |
Definition at line 167 of file class.assKprimChoice.php.
References $specific_feedback_setting.
Referenced by saveAdditionalQuestionDataToDb().
Here is the caller graph for this function:| assKprimChoice::getThumbSize | ( | ) |
Reimplemented from assQuestion.
Definition at line 117 of file class.assKprimChoice.php.
References $thumbSize.
Referenced by saveAdditionalQuestionDataToDb().
Here is the caller graph for this function:| assKprimChoice::getTrueOptionLabel | ( | string | $option_label | ) |
Definition at line 507 of file class.assKprimChoice.php.
| assKprimChoice::getTrueOptionLabelTranslation | ( | ilLanguage | $lng, |
| string | $option_label | ||
| ) |
Definition at line 496 of file class.assKprimChoice.php.
References $lng.
| assKprimChoice::getValidAnswerTypes | ( | ) |
Definition at line 428 of file class.assKprimChoice.php.
| assKprimChoice::getValidOptionLabels | ( | ) |
Definition at line 456 of file class.assKprimChoice.php.
| assKprimChoice::getValidOptionLabelsTranslated | ( | ilLanguage | $lng | ) |
Definition at line 467 of file class.assKprimChoice.php.
References Vendor\Package\$c, and $lng.
|
private |
Definition at line 585 of file class.assKprimChoice.php.
References $filename, ilAssKprimChoiceAnswer\getImageFsPath(), ilFileUtils\makeDirParents(), ilFileUtils\moveUploadedFile(), ilAssKprimChoiceAnswer\setImageFile(), and ilAssKprimChoiceAnswer\setImageFsDir().
Here is the call graph for this function:| assKprimChoice::handleFileUploads | ( | $answers, | |
| $files | |||
| ) |
Definition at line 572 of file class.assKprimChoice.php.
References $files.
| assKprimChoice::isComplete | ( | ) |
Reimplemented from assQuestion.
Definition at line 353 of file class.assKprimChoice.php.
References $text, and getAnswers().
Here is the call graph for this function:| assKprimChoice::isCustomOptionLabel | ( | $labelValue | ) |
Definition at line 567 of file class.assKprimChoice.php.
| assKprimChoice::isScorePartialSolutionEnabled | ( | ) |
Definition at line 127 of file class.assKprimChoice.php.
References $scorePartialSolutionEnabled.
Referenced by saveAdditionalQuestionDataToDb().
Here is the caller graph for this function:| assKprimChoice::isShuffleAnswersEnabled | ( | ) |
Definition at line 97 of file class.assKprimChoice.php.
References $shuffle_answers_enabled.
Referenced by saveAdditionalQuestionDataToDb().
Here is the caller graph for this function:| assKprimChoice::isSingleLineAnswerType | ( | $answerType | ) |
Definition at line 439 of file class.assKprimChoice.php.
References ANSWER_TYPE_SINGLE_LINE.
| assKprimChoice::isValidAnswerType | ( | $answerType | ) |
Definition at line 433 of file class.assKprimChoice.php.
Referenced by loadFromDb().
Here is the caller graph for this function:| assKprimChoice::isValidOptionLabel | ( | ?string | $option_label | ) |
Definition at line 490 of file class.assKprimChoice.php.
Referenced by loadFromDb().
Here is the caller graph for this function:
|
protected |
| ilAssSelfAssessmentMigrator | $migrator |
Reimplemented from assQuestion.
Definition at line 702 of file class.assKprimChoice.php.
References ilAssSelfAssessmentMigrator\migrateToLmContent().
Here is the call graph for this function:
|
private |
Definition at line 280 of file class.assKprimChoice.php.
References $data, $res, ilRTE\_replaceMediaObjectImageSrc(), assQuestion\getImagePath(), and assQuestion\getImagePathWeb().
Referenced by loadFromDb().
Here is the call graph for this function:
Here is the caller graph for this function:| assKprimChoice::loadFromDb | ( | $questionId | ) |
Definition at line 213 of file class.assKprimChoice.php.
References $data, Vendor\Package\$e, $res, ilRTE\_replaceMediaObjectImageSrc(), assQuestion\buildQuestionDataQuery(), isValidAnswerType(), isValidOptionLabel(), loadAnswerData(), assQuestion\setAdditionalContentEditingMode(), setAnswerType(), assQuestion\setAuthor(), assQuestion\setComment(), setCustomFalseOptionLabel(), setCustomTrueOptionLabel(), assQuestion\setId(), assQuestion\setLastChange(), assQuestion\setLifecycle(), assQuestion\setNrOfTries(), assQuestion\setObjId(), setOptionLabel(), assQuestion\setOriginalId(), assQuestion\setOwner(), assQuestion\setPoints(), assQuestion\setQuestion(), setScorePartialSolutionEnabled(), setShuffleAnswersEnabled(), setSpecificFeedbackSetting(), setThumbSize(), and assQuestion\setTitle().
Here is the call graph for this function:| assKprimChoice::moveAnswerDown | ( | $position | ) |
Definition at line 785 of file class.assKprimChoice.php.
| assKprimChoice::moveAnswerUp | ( | $position | ) |
Definition at line 806 of file class.assKprimChoice.php.
| assKprimChoice::removeAnswerImage | ( | $position | ) |
Definition at line 607 of file class.assKprimChoice.php.
References ilFileUtils\delDir().
Here is the call graph for this function:| assKprimChoice::saveAdditionalQuestionDataToDb | ( | ) |
Saves a record to the question types additional data table.
Implements ilObjQuestionScoringAdjustable.
Definition at line 315 of file class.assKprimChoice.php.
References getAdditionalTableName(), getAnswerType(), getCustomFalseOptionLabel(), getCustomTrueOptionLabel(), assQuestion\getId(), getOptionLabel(), getSpecificFeedbackSetting(), getThumbSize(), isScorePartialSolutionEnabled(), and isShuffleAnswersEnabled().
Referenced by saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| assKprimChoice::saveAnswerSpecificDataToDb | ( | ) |
Saves the answer specific records into a question types answer table.
Implements ilObjAnswerScoringAdjustable.
Definition at line 335 of file class.assKprimChoice.php.
References getAnswers(), getAnswerTableName(), and assQuestion\getId().
Referenced by saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| assKprimChoice::saveToDb | ( | ?int | $original_id = null | ) |
Reimplemented from assQuestion.
Definition at line 306 of file class.assKprimChoice.php.
References assQuestion\$original_id, saveAdditionalQuestionDataToDb(), saveAnswerSpecificDataToDb(), and assQuestion\saveQuestionDataToDb().
Here is the call graph for this function:| assKprimChoice::saveWorkingData | ( | int | $active_id, |
| ?int | $pass = null, |
||
| bool | $authorized = true |
||
| ) |
Reimplemented from assQuestion.
Definition at line 383 of file class.assKprimChoice.php.
References ilObjTest\_getPass().
Here is the call graph for this function:| assKprimChoice::setAnswers | ( | $answers | ) |
Definition at line 172 of file class.assKprimChoice.php.
References $answers, and assQuestion\getHtmlQuestionContentPurifier().
Here is the call graph for this function:| assKprimChoice::setAnswerType | ( | $answerType | ) |
Definition at line 102 of file class.assKprimChoice.php.
References $answerType.
Referenced by loadFromDb().
Here is the caller graph for this function:| assKprimChoice::setCustomFalseOptionLabel | ( | $customFalseOptionLabel | ) |
Definition at line 152 of file class.assKprimChoice.php.
References $customFalseOptionLabel.
Referenced by loadFromDb().
Here is the caller graph for this function:| assKprimChoice::setCustomTrueOptionLabel | ( | $customTrueOptionLabel | ) |
Definition at line 142 of file class.assKprimChoice.php.
References $customTrueOptionLabel.
Referenced by loadFromDb().
Here is the caller graph for this function:| assKprimChoice::setOptionLabel | ( | string | $option_label | ) |
Definition at line 132 of file class.assKprimChoice.php.
References $option_label.
Referenced by loadFromDb().
Here is the caller graph for this function:| assKprimChoice::setScorePartialSolutionEnabled | ( | $scorePartialSolutionEnabled | ) |
Definition at line 122 of file class.assKprimChoice.php.
References $scorePartialSolutionEnabled.
Referenced by loadFromDb().
Here is the caller graph for this function:| assKprimChoice::setShuffleAnswersEnabled | ( | bool | $shuffle_answers_enabled | ) |
Definition at line 92 of file class.assKprimChoice.php.
References $shuffle_answers_enabled.
Referenced by loadFromDb().
Here is the caller graph for this function:| assKprimChoice::setSpecificFeedbackSetting | ( | int | $specific_feedback_setting | ) |
Definition at line 162 of file class.assKprimChoice.php.
References $specific_feedback_setting.
Referenced by loadFromDb().
Here is the caller graph for this function:| assKprimChoice::setThumbSize | ( | int | $thumbSize | ) |
Reimplemented from assQuestion.
Definition at line 112 of file class.assKprimChoice.php.
References $thumbSize.
Referenced by loadFromDb().
Here is the caller graph for this function:
|
protected |
MUST convert the given solution values into an array or a string that can be stored in the log.
Language variables must be generated through the corresponding functions in the AdditionalInformationGenerator. If an array is returned it will be rendered into a line per array entry in the format "key: value". If the key exists as a language variable, it will be translated.
Reimplemented from assQuestion.
Definition at line 865 of file class.assKprimChoice.php.
References $id, and ILIAS\Test\Logging\AdditionalInformationGenerator\getNoneTag().
Here is the call graph for this function:| assKprimChoice::solutionValuesToText | ( | array | $solution_values | ) |
MUST convert the given solution values into text.
If the text has multiple lines each line MUST be placed as an entry in an array.
Reimplemented from assQuestion.
Definition at line 894 of file class.assKprimChoice.php.
References $id, and ILIAS\Repository\lng().
Here is the call graph for this function:| assKprimChoice::toJSON | ( | ) |
Returns a JSON representation of the question.
Reimplemented from assQuestion.
Definition at line 713 of file class.assKprimChoice.php.
References ilObjMediaObject\_getMobsOfObject(), ILIAS\Survey\Mode\getId(), ILIAS\Repository\int(), and ILIAS\Repository\lng().
Here is the call graph for this function:| assKprimChoice::toLog | ( | AdditionalInformationGenerator | $additional_info | ) |
MUST return an array of the question settings that can be stored in the log.
Language variables must be generated through the corresponding functions in the AdditionalInformationGenerator. If an array is returned it will be rendered into a line per array entry in the format "key: value". If the key exists as a language variable, it will be translated.
Reimplemented from assQuestion.
Definition at line 828 of file class.assKprimChoice.php.
References ILIAS\Test\Logging\AdditionalInformationGenerator\getEnabledDisabledTagForBool(), ILIAS\Test\Logging\AdditionalInformationGenerator\getTagForLangVar(), ILIAS\Test\Logging\AdditionalInformationGenerator\getTrueFalseTagForBool(), and ILIAS\Repository\int().
Here is the call graph for this function:| assKprimChoice::toNormalized | ( | Transformations | $transformations, |
| array | $context = [] |
||
| ) |
| array<string,mixed> | $context |
Reimplemented from assQuestion.
Definition at line 929 of file class.assKprimChoice.php.
References ILIAS\Survey\Mode\getId(), and ILIAS\TestQuestionPool\ExportImport\Foundation\Normalize\Transformations\normalize().
Here is the call graph for this function:
|
private |
Definition at line 64 of file class.assKprimChoice.php.
Referenced by getAnswers(), and setAnswers().
|
private |
Definition at line 56 of file class.assKprimChoice.php.
Referenced by getAnswerType(), and setAnswerType().
|
private |
Definition at line 61 of file class.assKprimChoice.php.
Referenced by getCustomFalseOptionLabel(), and setCustomFalseOptionLabel().
|
private |
Definition at line 60 of file class.assKprimChoice.php.
Referenced by getCustomTrueOptionLabel(), and setCustomTrueOptionLabel().
|
private |
Definition at line 59 of file class.assKprimChoice.php.
Referenced by getOptionLabel(), and setOptionLabel().
|
private |
Definition at line 58 of file class.assKprimChoice.php.
Referenced by isScorePartialSolutionEnabled(), and setScorePartialSolutionEnabled().
|
private |
Definition at line 55 of file class.assKprimChoice.php.
Referenced by isShuffleAnswersEnabled(), and setShuffleAnswersEnabled().
|
private |
Definition at line 62 of file class.assKprimChoice.php.
Referenced by getSpecificFeedbackSetting(), and setSpecificFeedbackSetting().
|
private |
Definition at line 57 of file class.assKprimChoice.php.
Referenced by getThumbSize(), and setThumbSize().
| const assKprimChoice::ANSWER_TYPE_MULTI_LINE = 'multiLine' |
Definition at line 44 of file class.assKprimChoice.php.
Referenced by assKprimChoiceGUI\handleAnswerTextsSubmit().
| const assKprimChoice::ANSWER_TYPE_SINGLE_LINE = 'singleLine' |
Definition at line 43 of file class.assKprimChoice.php.
Referenced by isSingleLineAnswerType().
| const assKprimChoice::DEFAULT_THUMB_SIZE = 150 |
Definition at line 52 of file class.assKprimChoice.php.
| const assKprimChoice::NUM_REQUIRED_ANSWERS = 4 |
Definition at line 39 of file class.assKprimChoice.php.
Referenced by __construct().
| const assKprimChoice::OPTION_LABEL_ADEQUATE_OR_NOT = 'adequate_or_not' |
Definition at line 49 of file class.assKprimChoice.php.
| const assKprimChoice::OPTION_LABEL_APPLICABLE_OR_NOT = 'applicable_or_not' |
Definition at line 48 of file class.assKprimChoice.php.
| const assKprimChoice::OPTION_LABEL_CUSTOM = 'customlabel' |
Definition at line 50 of file class.assKprimChoice.php.
| const assKprimChoice::OPTION_LABEL_PLUS_MINUS = 'plus_minus' |
Definition at line 47 of file class.assKprimChoice.php.
| const assKprimChoice::OPTION_LABEL_RIGHT_WRONG = 'right_wrong' |
Definition at line 46 of file class.assKprimChoice.php.
| const assKprimChoice::PARTIAL_SCORING_NUM_CORRECT_ANSWERS = 3 |
Definition at line 41 of file class.assKprimChoice.php.
| const assKprimChoice::THUMB_PREFIX = 'thumb.' |
Definition at line 53 of file class.assKprimChoice.php.