| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
 Inheritance diagram for assKprimChoice:
 Collaboration diagram for assKprimChoice:Public Member Functions | |
| __construct ($title='', $comment='', $author='', $owner=-1, $question='') | |
| getQuestionType () | |
| getAdditionalTableName () | |
| getAnswerTableName () | |
| setShuffleAnswersEnabled ($shuffleAnswersEnabled) | |
| isShuffleAnswersEnabled () | |
| setAnswerType ($answerType) | |
| getAnswerType () | |
| setThumbSize (int $thumbSize) | |
| getThumbSize () | |
| setScorePartialSolutionEnabled ($scorePartialSolutionEnabled) | |
| isScorePartialSolutionEnabled () | |
| setOptionLabel ($optionLabel) | |
| getOptionLabel () | |
| setCustomTrueOptionLabel ($customTrueOptionLabel) | |
| getCustomTrueOptionLabel () | |
| setCustomFalseOptionLabel ($customFalseOptionLabel) | |
| getCustomFalseOptionLabel () | |
| setSpecificFeedbackSetting ($specificFeedbackSetting) | |
| getSpecificFeedbackSetting () | |
| setAnswers ($answers) | |
| getAnswers () | |
| getAnswer ($position) | |
| addAnswer (ilAssKprimChoiceAnswer $answer) | |
| loadFromDb ($questionId) | |
| saveToDb ($originalId='') | |
| 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 () | |
| calculateReachedPoints ($active_id, $pass=null, $authorizedSolution=true, $returndetails=false) | |
| Returns the points, a learner has reached answering the question.  More... | |
| getValidAnswerTypes () | |
| isValidAnswerType ($answerType) | |
| isSingleLineAnswerType ($answerType) | |
| getAnswerTypeSelectOptions (ilLanguage $lng) | |
| getValidOptionLabels () | |
| getValidOptionLabelsTranslated (ilLanguage $lng) | |
| isValidOptionLabel ($optionLabel) | |
| getTrueOptionLabelTranslation (ilLanguage $lng, $optionLabel) | |
| getFalseOptionLabelTranslation (ilLanguage $lng, $optionLabel) | |
| getInstructionTextTranslation (ilLanguage $lng, $optionLabel) | |
| isCustomOptionLabel ($labelValue) | |
| handleFileUploads ($answers, $files) | |
| removeAnswerImage ($position) | |
| duplicate (bool $for_test=true, string $title="", string $author="", int $owner=-1, $testObjId=null) | |
| createNewOriginalFromThisDuplicate ($target_parent_id, $target_question_title="") | |
| copyObject ($target_questionpool_id, $title="") | |
| Copies an assMultipleChoice object.  More... | |
| toJSON () | |
| Returns a JSON representation of the question.  More... | |
| getSpecificFeedbackAllCorrectOptionLabel () | |
| setExportDetailsXLSX (ilAssExcelFormatHelper $worksheet, int $startrow, int $col, int $active_id, int $pass) | |
| {}  More... | |
| moveAnswerDown ($position) | |
| moveAnswerUp ($position) | |
  Public Member Functions inherited from assQuestion | |
| __construct (string $title="", string $comment="", string $author="", int $owner=-1, string $question="") | |
| assQuestion constructor  More... | |
| getShuffler () | |
| setShuffler (Transformation $shuffler) | |
| setProcessLocker (ilAssQuestionProcessLocker $processLocker) | |
| getProcessLocker () | |
| fromXML ($item, int $questionpool_id, ?int $tst_id, &$tst_object, int &$question_counter, array $import_mapping, array &$solutionhints=[]) | |
| Receives parameters from a QTI parser and creates a valid ILIAS question object.  More... | |
| toXML (bool $a_include_header=true, bool $a_include_binary=true, bool $a_shuffle=false, bool $test_output=false, bool $force_image_references=false) | |
| Returns a QTI xml representation of the question.  More... | |
| isComplete () | |
| Returns true, if a question is complete for use.  More... | |
| 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 $authorizedSolution=true) | |
| returns the reached points ...  More... | |
| calculateResultsFromSolution (int $active_id, int $pass, bool $obligationsEnabled=false) | |
| Calculates the question results from a previously saved question solution.  More... | |
| persistWorkingState (int $active_id, $pass, bool $obligationsEnabled=false, bool $authorized=true) | |
| persists the working state for current testactive and testpass  More... | |
| persistPreviewState (ilAssQuestionPreviewSession $previewSession) | |
| persists the preview state for current user and question  More... | |
| validateSolutionSubmit () | |
| saveWorkingData (int $active_id, int $pass, bool $authorized=true) | |
| Saves the learners input of the question to the database.  More... | |
| 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, $pass=null) | |
| getSolutionValues ($active_id, $pass=null, bool $authorized=true) | |
| Loads solutions of a given user from the database an returns it.  More... | |
| getAdditionalTableName () | |
| getAnswerTableName () | |
| deleteAnswers (int $question_id) | |
| deleteAdditionalTableData (int $question_id) | |
| delete (int $question_id) | |
| getTotalAnswers () | |
| copyXHTMLMediaObjectsOfQuestion (int $a_q_id) | |
| syncXHTMLMediaObjectsOfQuestion () | |
| createPageObject () | |
| copyPageOfQuestion (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=-1) | |
| saveToDb () | |
| deleteSuggestedSolutions () | |
| getSuggestedSolution (int $subquestion_index=0) | |
| resolveInternalLink (string $internal_link) | |
| resolveSuggestedSolutionLinks () | |
| syncWithOriginal () | |
| getPoints () | |
| setPoints (float $points) | |
| getSolutionMaxPass (int $active_id) | |
| calculateReachedPoints ($active_id, $pass=null, $authorizedSolution=true, $returndetails=false) | |
| Returns the points, a learner has reached answering the question.  More... | |
| deductHintPointsFromReachedPoints (ilAssQuestionPreviewSession $previewSession, $reachedPoints) | |
| calculateReachedPointsFromPreviewSession (ilAssQuestionPreviewSession $previewSession) | |
| isPreviewSolutionCorrect (ilAssQuestionPreviewSession $previewSession) | |
| adjustReachedPointsByScoringOptions ($points, $active_id, $pass=null) | |
| 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="") | |
| getQuestionType () | |
| Returns the question type of the question.  More... | |
| getQuestionTypeID () | |
| syncHints () | |
| cleanupMediaObjectUsage () | |
| getInstances () | |
| getActiveUserData (int $active_id) | |
| Returns the user id and the test id for a given active id.  More... | |
| hasSpecificFeedback () | |
| setExportDetailsXLSX (ilAssExcelFormatHelper $worksheet, int $startrow, int $col, int $active_id, int $pass) | |
| 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) | |
| ensureHintPageObjectExists ($pageObjectId) | |
| isAnswered (int $active_id, int $pass) | |
| getAdditionalContentEditingMode () | |
| setAdditionalContentEditingMode (?string $additionalContentEditingMode) | |
| isAdditionalContentEditingModePageObject () | |
| isValidAdditionalContentEditingMode (string $additionalContentEditingMode) | |
| getValidAdditionalContentEditingModes () | |
| getHtmlUserSolutionPurifier () | |
| getHtmlQuestionContentPurifier () | |
| setLastChange ($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 () | |
| duplicate (bool $for_test=true, string $title="", string $author="", int $owner=-1, $testObjId=null) | |
| 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 $valuePairs) | |
| areObligationsToBeConsidered () | |
| setObligationsToBeConsidered (bool $obligationsToBeConsidered) | |
| updateTimestamp () | |
| getTestPresentationConfig () | |
  Public Member Functions inherited from assQuestionInterface | |
| validateSolutionSubmit () | |
Static Public Member Functions | |
| static | isObligationPossible (int $questionId) | 
  Static Public Member Functions inherited from assQuestion | |
| static | setForcePassResultUpdateEnabled (bool $forcePassResultsUpdateEnabled) | 
| static | isForcePassResultUpdateEnabled () | 
| static | _getSuggestedSolutionOutput (int $question_id) | 
| static | _getReachedPoints (int $active_id, int $question_id, int $pass) | 
| static | logAction (string $logtext, int $active_id, int $question_id) | 
| static | isFileAvailable (string $file) | 
| static | saveOriginalId (int $questionId, int $originalId) | 
| static | resetOriginalId (int $questionId) | 
| static | _getInternalLinkHref (string $target="") | 
| static | instantiateQuestion (int $question_id) | 
| static | _getSolutionMaxPass (int $question_id, int $active_id) | 
| Returns the maximum pass a users question solution.  More... | |
| static | _isWriteable (int $question_id, int $user_id) | 
| static | _setReachedPoints (int $active_id, int $question_id, float $points, float $maxpoints, int $pass, bool $manualscoring, bool $obligationsEnabled, ?int $test_id=null) | 
| Sets the points, a learner has reached answering the question Additionally objective results are updated.  More... | |
| static | _needsManualScoring (int $question_id) | 
| static | getFeedbackClassNameByQuestionType (string $questionType) | 
| static | instantiateQuestionGUI (int $a_question_id) | 
| static | _questionExistsInTest (int $question_id, int $test_id) | 
| static | lookupParentObjId (int $questionId) | 
| static | isObligationPossible (int $questionId) | 
| static | implodeKeyValues (array $keyValues) | 
| static | explodeKeyValues (string $keyValues) | 
| static | convertISO8601FormatH_i_s_ExtendedToSeconds (string $time) | 
| static | extendedTrim (string $value) | 
| Trim non-printable characters from the beginning and end of a string.  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 | TRIM_PATTERN = '/^[\p{C}\p{Z}]+|[\p{C}\p{Z}]+$/u' | 
| const | ADDITIONAL_CONTENT_EDITING_MODE_RTE = 'default' | 
| const | ADDITIONAL_CONTENT_EDITING_MODE_IPE = 'pageobject' | 
| 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 ($found_values, $active_id=0) | |
| beforeSyncWithOriginal ($origQuestionId, $dupQuestionId, $origParentObjId, $dupParentObjId) | |
| afterSyncWithOriginal ($origQuestionId, $dupQuestionId, $origParentObjId, $dupParentObjId) | |
| getRTETextWithMediaObjects () | |
| lmMigrateQuestionTypeSpecificContent (ilAssSelfAssessmentMigrator $migrator) | |
  Protected Member Functions inherited from assQuestion | |
| getQuestionAction () | |
| isNonEmptyItemListPostSubmission (string $postSubmissionFieldname) | |
| log (int $active_id, string $langVar) | |
| savePreviewData (ilAssQuestionPreviewSession $previewSession) | |
| deletePageOfQuestion (int $question_id) | |
| onDuplicate (int $originalParentId, int $originalQuestionId, int $duplicateParentId, int $duplicateQuestionId) | |
| beforeSyncWithOriginal (int $origQuestionId, int $dupQuestionId, int $origParentObjId, int $dupParentObjId) | |
| afterSyncWithOriginal (int $origQuestionId, int $dupQuestionId, int $origParentObjId, int $dupParentObjId) | |
| 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 () | |
| syncSuggestedSolutions (int $target_question_id, int $target_obj_id) | |
| duplicateSuggestedSolutionFiles (int $parent_id, int $question_id) | |
| Duplicates the files of a suggested solution if the question is duplicated.  More... | |
| syncSuggestedSolutionFiles (int $target_question_id, int $target_obj_id) | |
| copySuggestedSolutionFiles (int $source_questionpool_id, int $source_question_id) | |
| copySuggestedSolutions (int $target_question_id) | |
| ensureNonNegativePoints ($points) | |
| purifyAndPrepareTextAreaOutput (string $content) | |
| getRTETextWithMediaObjects () | |
| getSelfAssessmentFormatter () | |
| lmMigrateQuestionTypeGenericContent (ilAssSelfAssessmentMigrator $migrator) | |
| lmMigrateQuestionTypeSpecificContent (ilAssSelfAssessmentMigrator $migrator) | |
| duplicateQuestionHints (int $originalQuestionId, int $duplicateQuestionId) | |
| 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 () | |
| build basic test question configuration instance  More... | |
| getSuggestedSolutionsRepo () | |
| loadSuggestedSolutions () | |
Private Member Functions | |
| loadAnswerData ($questionId) | |
| handleFileUpload (ilAssKprimChoiceAnswer $answer, $fileData) | |
| getNumAllowedFailures () | |
Private Attributes | |
| $shuffleAnswersEnabled | |
| $answerType | |
| $thumbSize | |
| $scorePartialSolutionEnabled | |
| $optionLabel | |
| $customTrueOptionLabel | |
| $customFalseOptionLabel | |
| $specificFeedbackSetting | |
| $answers | |
Additional Inherited Members | |
  Static Protected Member Functions inherited from assQuestion | |
| static | getNumExistingSolutionRecords (int $activeId, int $pass, int $questionId) | 
  Protected Attributes inherited from assQuestion | |
| const | HAS_SPECIFIC_FEEDBACK = true | 
| ILIAS TestQuestionPool QuestionInfoService | $questioninfo | 
| ILIAS Test TestParticipantInfoService | $testParticipantInfo | 
| ILIAS HTTP Services | $http | 
| ILIAS Refinery Factory | $refinery | 
| ILIAS TestQuestionPool QuestionFilesService | $questionFilesService | 
| ILIAS DI LoggingServices | $ilLog | 
| int | $id | 
| string | $title | 
| string | $comment | 
| string | $owner | 
| string | $author | 
| int | $thumb_size | 
| string | $question | 
| The question text.  More... | |
| float | $points | 
| The maximum available points for the question.  More... | |
| bool | $shuffle | 
| Indicates whether the answers will be shuffled or not.  More... | |
| int | $test_id | 
| The database id of a test in which the question is contained.  More... | |
| int | $obj_id = 0 | 
| Object id of the container object.  More... | |
| $ilias | |
| ilGlobalPageTemplate | $tpl | 
| ilLanguage | $lng | 
| ilDBInterface | $db | 
| Container | $dic | 
| array | $suggested_solutions | 
| int | $original_id = null | 
| $page | |
| string | $external_id = null | 
| ilAssQuestionProcessLocker | $processLocker | 
| $step | |
| $lastChange | |
| Transformation | $shuffler | 
| ilTestQuestionConfig | $testQuestionConfig | 
| ilAssQuestionLifecycle | $lifecycle | 
| ilObjUser | $current_user | 
| SkillUsageService | $skillUsageService | 
| assQuestionSuggestedSolutionsDatabaseRepository | $suggestedsolution_repo = null | 
  Static Protected Attributes inherited from assQuestion | |
| static | $forcePassResultsUpdateEnabled = false | 
| static | $imageSourceFixReplaceMap | 
Definition at line 27 of file class.assKprimChoice.php.
| assKprimChoice::__construct | ( | $title = '',  | 
        |
$comment = '',  | 
        |||
$author = '',  | 
        |||
$owner = -1,  | 
        |||
$question = ''  | 
        |||
| ) | 
Definition at line 65 of file class.assKprimChoice.php.
References assQuestion\$author, assQuestion\$comment, assQuestion\$owner, assQuestion\$question, assQuestion\$title, ILIAS\MetaData\Repository\Validation\Data\__construct(), and ilAssConfigurableMultiOptionQuestionFeedback\FEEDBACK_SETTING_ALL.
 Here is the call graph for this function:| assKprimChoice::addAnswer | ( | ilAssKprimChoiceAnswer | $answer | ) | 
Definition at line 207 of file class.assKprimChoice.php.
References ilAssKprimChoiceAnswer\getAnswertext(), assQuestion\getHtmlQuestionContentPurifier(), and ilAssKprimChoiceAnswer\setAnswertext().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 826 of file class.assKprimChoice.php.
References $DIC, $filename, assQuestion\$ilLog, getAnswers(), and ilFileUtils\makeDirParents().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 815 of file class.assKprimChoice.php.
References assQuestion\$question.
| assKprimChoice::calculateReachedPoints | ( | $active_id, | |
$pass = null,  | 
        |||
$authorizedSolution = true,  | 
        |||
$returndetails = false  | 
        |||
| ) | 
Returns the points, a learner has reached answering the question.
The points are calculated from the given answers.
public
| integer | $active_id | |
| integer | $pass | |
| boolean | $returndetails | (deprecated !!) | 
Definition at line 464 of file class.assKprimChoice.php.
References $data, $DIC, $ilDB, assQuestion\$points, calculateReachedPointsForSolution(), assQuestion\getCurrentSolutionResultSet(), assQuestion\getSolutionMaxPass(), and ILIAS\Repository\int().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 672 of file class.assKprimChoice.php.
References ILIAS\LTI\ToolProvider\$key, assQuestion\$points, getAnswers(), assQuestion\getPoints(), and isScorePartialSolutionEnabled().
Referenced by calculateReachedPoints().
 Here is the call graph for this function:
 Here is the caller graph for this function:| assKprimChoice::copyObject | ( | $target_questionpool_id, | |
$title = ""  | 
        |||
| ) | 
Copies an assMultipleChoice object.
Definition at line 787 of file class.assKprimChoice.php.
References assQuestion\$original_id, assQuestion\$title, assQuestion\getId(), and assQuestion\getObjId().
 Here is the call graph for this function:| assKprimChoice::createNewOriginalFromThisDuplicate | ( | $target_parent_id, | |
$target_question_title = ""  | 
        |||
| ) | 
Definition at line 752 of file class.assKprimChoice.php.
References assQuestion\$id, assQuestion\getId(), and assQuestion\getObjId().
 Here is the call graph for this function:| assKprimChoice::duplicate | ( | bool | $for_test = true,  | 
        
| string | $title = "",  | 
        ||
| string | $author = "",  | 
        ||
| int | $owner = -1,  | 
        ||
$testObjId = null  | 
        |||
| ) | 
Definition at line 704 of file class.assKprimChoice.php.
References assQuestion\$author, assQuestion\$original_id, assQuestion\$owner, assQuestion\$title, assQuestion\getId(), and assQuestion\getObjId().
 Here is the call graph for this function:| assKprimChoice::getAdditionalTableName | ( | ) | 
Definition at line 87 of file class.assKprimChoice.php.
Referenced by saveAdditionalQuestionDataToDb().
 Here is the caller graph for this function:| assKprimChoice::getAnswer | ( | $position | ) | 
Definition at line 196 of file class.assKprimChoice.php.
References getAnswers().
Referenced by removeAnswerImage().
 Here is the call graph for this function:
 Here is the caller graph for this function:| assKprimChoice::getAnswers | ( | ) | 
Definition at line 191 of file class.assKprimChoice.php.
References $answers.
Referenced by afterSyncWithOriginal(), calculateReachedPointsForSolution(), getAnswer(), getRTETextWithMediaObjects(), getSolutionSubmit(), isComplete(), lmMigrateQuestionTypeSpecificContent(), saveAnswerSpecificDataToDb(), setExportDetailsXLSX(), and toJSON().
 Here is the caller graph for this function:| assKprimChoice::getAnswerTableName | ( | ) | 
Definition at line 92 of file class.assKprimChoice.php.
Referenced by saveAnswerSpecificDataToDb().
 Here is the caller graph for this function:| assKprimChoice::getAnswerType | ( | ) | 
Definition at line 112 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 509 of file class.assKprimChoice.php.
References ilLanguage\txt().
 Here is the call graph for this function:| assKprimChoice::getCustomFalseOptionLabel | ( | ) | 
Definition at line 162 of file class.assKprimChoice.php.
References $customFalseOptionLabel.
Referenced by getFalseOptionLabelTranslation(), and saveAdditionalQuestionDataToDb().
 Here is the caller graph for this function:| assKprimChoice::getCustomTrueOptionLabel | ( | ) | 
Definition at line 152 of file class.assKprimChoice.php.
References $customTrueOptionLabel.
Referenced by getTrueOptionLabelTranslation(), and saveAdditionalQuestionDataToDb().
 Here is the caller graph for this function:| assKprimChoice::getFalseOptionLabelTranslation | ( | ilLanguage | $lng, | 
| $optionLabel | |||
| ) | 
Definition at line 566 of file class.assKprimChoice.php.
References $optionLabel, getCustomFalseOptionLabel(), and ilLanguage\txt().
Referenced by getInstructionTextTranslation(), and toJSON().
 Here is the call graph for this function:
 Here is the caller graph for this function:| assKprimChoice::getInstructionTextTranslation | ( | ilLanguage | $lng, | 
| $optionLabel | |||
| ) | 
Definition at line 587 of file class.assKprimChoice.php.
References $optionLabel, getFalseOptionLabelTranslation(), getTrueOptionLabelTranslation(), and ilLanguage\txt().
Referenced by toJSON().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 969 of file class.assKprimChoice.php.
References isScorePartialSolutionEnabled().
Referenced by toJSON().
 Here is the call graph for this function:
 Here is the caller graph for this function:| assKprimChoice::getOptionLabel | ( | ) | 
Definition at line 142 of file class.assKprimChoice.php.
References $optionLabel.
Referenced by saveAdditionalQuestionDataToDb(), and toJSON().
 Here is the caller graph for this function:| assKprimChoice::getQuestionType | ( | ) | 
Definition at line 82 of file class.assKprimChoice.php.
Referenced by toJSON().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 887 of file class.assKprimChoice.php.
References getAnswers().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 651 of file class.assKprimChoice.php.
References Vendor\Package\$a, $post, and getAnswers().
Referenced by isComplete().
 Here is the call graph for this function:
 Here is the caller graph for this function:| assKprimChoice::getSpecificFeedbackAllCorrectOptionLabel | ( | ) | 
Implements ilAssSpecificFeedbackOptionLabelProvider.
Definition at line 978 of file class.assKprimChoice.php.
| assKprimChoice::getSpecificFeedbackSetting | ( | ) | 
Definition at line 172 of file class.assKprimChoice.php.
References $specificFeedbackSetting.
Referenced by saveAdditionalQuestionDataToDb().
 Here is the caller graph for this function:| assKprimChoice::getThumbSize | ( | ) | 
Definition at line 122 of file class.assKprimChoice.php.
References $thumbSize.
Referenced by handleFileUpload(), saveAdditionalQuestionDataToDb(), and toJSON().
 Here is the caller graph for this function:| assKprimChoice::getTrueOptionLabelTranslation | ( | ilLanguage | $lng, | 
| $optionLabel | |||
| ) | 
Definition at line 545 of file class.assKprimChoice.php.
References $optionLabel, getCustomTrueOptionLabel(), and ilLanguage\txt().
Referenced by getInstructionTextTranslation(), and toJSON().
 Here is the call graph for this function:
 Here is the caller graph for this function:| assKprimChoice::getValidAnswerTypes | ( | ) | 
Definition at line 489 of file class.assKprimChoice.php.
Referenced by isValidAnswerType().
 Here is the caller graph for this function:| assKprimChoice::getValidOptionLabels | ( | ) | 
Definition at line 517 of file class.assKprimChoice.php.
Referenced by isValidOptionLabel().
 Here is the caller graph for this function:| assKprimChoice::getValidOptionLabelsTranslated | ( | ilLanguage | $lng | ) | 
Definition at line 528 of file class.assKprimChoice.php.
References ilLanguage\txt().
 Here is the call graph for this function:
      
  | 
  private | 
Definition at line 614 of file class.assKprimChoice.php.
References $filename, assQuestion\buildHashedImageFilename(), ilAssKprimChoiceAnswer\getImageFsPath(), assQuestion\getImagePath(), getThumbSize(), ilFileUtils\makeDirParents(), ilFileUtils\moveUploadedFile(), ilAssKprimChoiceAnswer\setImageFile(), and ilAssKprimChoiceAnswer\setImageFsDir().
Referenced by handleFileUploads().
 Here is the call graph for this function:
 Here is the caller graph for this function:| assKprimChoice::handleFileUploads | ( | $answers, | |
| $files | |||
| ) | 
Definition at line 601 of file class.assKprimChoice.php.
References $answers, and handleFileUpload().
 Here is the call graph for this function:| assKprimChoice::isComplete | ( | ) | 
Definition at line 371 of file class.assKprimChoice.php.
References $GLOBALS, $ilDB, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), ilObjTest\_getPass(), getAnswers(), assQuestion\getId(), assQuestion\getProcessLocker(), getSolutionSubmit(), ILIAS\Repository\lng(), assQuestion\logAction(), assQuestion\removeCurrentSolution(), assQuestion\saveCurrentSolution(), and assQuestion\saveWorkingData().
 Here is the call graph for this function:| assKprimChoice::isCustomOptionLabel | ( | $labelValue | ) | 
Definition at line 596 of file class.assKprimChoice.php.
      
  | 
  static | 
Definition at line 983 of file class.assKprimChoice.php.
| assKprimChoice::isScorePartialSolutionEnabled | ( | ) | 
Definition at line 132 of file class.assKprimChoice.php.
References $scorePartialSolutionEnabled.
Referenced by calculateReachedPointsForSolution(), getNumAllowedFailures(), and saveAdditionalQuestionDataToDb().
 Here is the caller graph for this function:| assKprimChoice::isShuffleAnswersEnabled | ( | ) | 
Definition at line 102 of file class.assKprimChoice.php.
References $shuffleAnswersEnabled.
Referenced by saveAdditionalQuestionDataToDb(), and toJSON().
 Here is the caller graph for this function:| assKprimChoice::isSingleLineAnswerType | ( | $answerType | ) | 
Definition at line 500 of file class.assKprimChoice.php.
References $answerType, and ANSWER_TYPE_SINGLE_LINE.
| assKprimChoice::isValidAnswerType | ( | $answerType | ) | 
Definition at line 494 of file class.assKprimChoice.php.
References $answerType, and getValidAnswerTypes().
Referenced by loadFromDb().
 Here is the call graph for this function:
 Here is the caller graph for this function:| assKprimChoice::isValidOptionLabel | ( | $optionLabel | ) | 
Definition at line 539 of file class.assKprimChoice.php.
References $optionLabel, and getValidOptionLabels().
Referenced by loadFromDb().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
| ilAssSelfAssessmentMigrator | $migrator | 
Definition at line 901 of file class.assKprimChoice.php.
References getAnswers(), and ilAssSelfAssessmentMigrator\migrateToLmContent().
 Here is the call graph for this function:
      
  | 
  private | 
Definition at line 282 of file class.assKprimChoice.php.
References $data, $DIC, $ilDB, $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 215 of file class.assKprimChoice.php.
References $data, Vendor\Package\$e, $res, ilRTE\_replaceMediaObjectImageSrc(), assQuestion\buildQuestionDataQuery(), ilAssQuestionLifecycle\getDraftInstance(), ilAssQuestionLifecycle\getInstance(), 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 1015 of file class.assKprimChoice.php.
| assKprimChoice::moveAnswerUp | ( | $position | ) | 
Definition at line 1036 of file class.assKprimChoice.php.
| assKprimChoice::removeAnswerImage | ( | $position | ) | 
Definition at line 636 of file class.assKprimChoice.php.
References ilFileUtils\delDir(), and getAnswer().
 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 333 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 353 of file class.assKprimChoice.php.
References getAnswers(), getAnswerTableName(), assQuestion\getId(), and ILIAS\Repository\int().
Referenced by saveToDb().
 Here is the call graph for this function:
 Here is the caller graph for this function:| assKprimChoice::saveToDb | ( | $originalId = '' | ) | 
Definition at line 319 of file class.assKprimChoice.php.
References saveAdditionalQuestionDataToDb(), saveAnswerSpecificDataToDb(), and assQuestion\saveQuestionDataToDb().
 Here is the call graph for this function:| assKprimChoice::setAnswers | ( | $answers | ) | 
Definition at line 177 of file class.assKprimChoice.php.
References $answers, and assQuestion\getHtmlQuestionContentPurifier().
 Here is the call graph for this function:| assKprimChoice::setAnswerType | ( | $answerType | ) | 
Definition at line 107 of file class.assKprimChoice.php.
References $answerType.
Referenced by loadFromDb().
 Here is the caller graph for this function:| assKprimChoice::setCustomFalseOptionLabel | ( | $customFalseOptionLabel | ) | 
Definition at line 157 of file class.assKprimChoice.php.
References $customFalseOptionLabel.
Referenced by loadFromDb().
 Here is the caller graph for this function:| assKprimChoice::setCustomTrueOptionLabel | ( | $customTrueOptionLabel | ) | 
Definition at line 147 of file class.assKprimChoice.php.
References $customTrueOptionLabel.
Referenced by loadFromDb().
 Here is the caller graph for this function:| assKprimChoice::setExportDetailsXLSX | ( | ilAssExcelFormatHelper | $worksheet, | 
| int | $startrow, | ||
| int | $col, | ||
| int | $active_id, | ||
| int | $pass | ||
| ) | 
{}
Definition at line 991 of file class.assKprimChoice.php.
References assQuestion\$id, getAnswers(), ilExcel\getColumnCoord(), assQuestion\getSolutionValues(), ilExcel\setBold(), and ilAssExcelFormatHelper\setCell().
 Here is the call graph for this function:| assKprimChoice::setOptionLabel | ( | $optionLabel | ) | 
Definition at line 137 of file class.assKprimChoice.php.
References $optionLabel.
Referenced by loadFromDb().
 Here is the caller graph for this function:| assKprimChoice::setScorePartialSolutionEnabled | ( | $scorePartialSolutionEnabled | ) | 
Definition at line 127 of file class.assKprimChoice.php.
References $scorePartialSolutionEnabled.
Referenced by loadFromDb().
 Here is the caller graph for this function:| assKprimChoice::setShuffleAnswersEnabled | ( | $shuffleAnswersEnabled | ) | 
Definition at line 97 of file class.assKprimChoice.php.
References $shuffleAnswersEnabled.
Referenced by loadFromDb().
 Here is the caller graph for this function:| assKprimChoice::setSpecificFeedbackSetting | ( | $specificFeedbackSetting | ) | 
Definition at line 167 of file class.assKprimChoice.php.
References $specificFeedbackSetting.
Referenced by loadFromDb().
 Here is the caller graph for this function:| assKprimChoice::setThumbSize | ( | int | $thumbSize | ) | 
Definition at line 117 of file class.assKprimChoice.php.
References $thumbSize.
Referenced by loadFromDb().
 Here is the caller graph for this function:| assKprimChoice::toJSON | ( | ) | 
Returns a JSON representation of the question.
Implements ilAssQuestionLMExportable.
Definition at line 912 of file class.assKprimChoice.php.
References $answers, ILIAS\LTI\ToolProvider\$key, ilObjMediaObject\_getMobsOfObject(), assQuestion\formatSAQuestion(), getAnswers(), getFalseOptionLabelTranslation(), assQuestion\getId(), assQuestion\getImagePathWeb(), getInstructionTextTranslation(), assQuestion\getNrOfTries(), getNumAllowedFailures(), getOptionLabel(), assQuestion\getQuestion(), getQuestionType(), getThumbSize(), assQuestion\getTitleForHTMLOutput(), getTrueOptionLabelTranslation(), ILIAS\Repository\int(), isShuffleAnswersEnabled(), and ILIAS\Repository\lng().
 Here is the call graph for this function:
      
  | 
  private | 
Definition at line 63 of file class.assKprimChoice.php.
Referenced by getAnswers(), handleFileUploads(), setAnswers(), and toJSON().
      
  | 
  private | 
Definition at line 49 of file class.assKprimChoice.php.
Referenced by getAnswerType(), isSingleLineAnswerType(), isValidAnswerType(), and setAnswerType().
      
  | 
  private | 
Definition at line 59 of file class.assKprimChoice.php.
Referenced by getCustomFalseOptionLabel(), and setCustomFalseOptionLabel().
      
  | 
  private | 
Definition at line 57 of file class.assKprimChoice.php.
Referenced by getCustomTrueOptionLabel(), and setCustomTrueOptionLabel().
      
  | 
  private | 
Definition at line 55 of file class.assKprimChoice.php.
Referenced by getFalseOptionLabelTranslation(), getInstructionTextTranslation(), getOptionLabel(), getTrueOptionLabelTranslation(), isValidOptionLabel(), and setOptionLabel().
      
  | 
  private | 
Definition at line 53 of file class.assKprimChoice.php.
Referenced by isScorePartialSolutionEnabled(), and setScorePartialSolutionEnabled().
      
  | 
  private | 
Definition at line 47 of file class.assKprimChoice.php.
Referenced by isShuffleAnswersEnabled(), and setShuffleAnswersEnabled().
      
  | 
  private | 
Definition at line 61 of file class.assKprimChoice.php.
Referenced by getSpecificFeedbackSetting(), and setSpecificFeedbackSetting().
      
  | 
  private | 
Definition at line 51 of file class.assKprimChoice.php.
Referenced by getThumbSize(), and setThumbSize().
| const assKprimChoice::ANSWER_TYPE_MULTI_LINE = 'multiLine' | 
Definition at line 36 of file class.assKprimChoice.php.
Referenced by assKprimChoiceGUI\handleAnswerTextsSubmit().
| const assKprimChoice::ANSWER_TYPE_SINGLE_LINE = 'singleLine' | 
Definition at line 35 of file class.assKprimChoice.php.
Referenced by isSingleLineAnswerType().
| const assKprimChoice::DEFAULT_THUMB_SIZE = 150 | 
Definition at line 44 of file class.assKprimChoice.php.
| const assKprimChoice::NUM_REQUIRED_ANSWERS = 4 | 
Definition at line 31 of file class.assKprimChoice.php.
| const assKprimChoice::OPTION_LABEL_ADEQUATE_OR_NOT = 'adequate_or_not' | 
Definition at line 41 of file class.assKprimChoice.php.
| const assKprimChoice::OPTION_LABEL_APPLICABLE_OR_NOT = 'applicable_or_not' | 
Definition at line 40 of file class.assKprimChoice.php.
| const assKprimChoice::OPTION_LABEL_CUSTOM = 'customlabel' | 
Definition at line 42 of file class.assKprimChoice.php.
| const assKprimChoice::OPTION_LABEL_PLUS_MINUS = 'plus_minus' | 
Definition at line 39 of file class.assKprimChoice.php.
| const assKprimChoice::OPTION_LABEL_RIGHT_WRONG = 'right_wrong' | 
Definition at line 38 of file class.assKprimChoice.php.
| const assKprimChoice::PARTIAL_SCORING_NUM_CORRECT_ANSWERS = 3 | 
Definition at line 33 of file class.assKprimChoice.php.
| const assKprimChoice::THUMB_PREFIX = 'thumb.' | 
Definition at line 45 of file class.assKprimChoice.php.