ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
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) | |
![]() | |
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) | |
Returns a QTI xml representation of the question. 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 $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) | |
duplicate (bool $for_test=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) | |
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 () | |
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.' |
![]() | |
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... | |
![]() | |
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 32 of file class.assKprimChoice.php.
assKprimChoice::__construct | ( | $title = '' , |
|
$comment = '' , |
|||
$author = '' , |
|||
$owner = -1 , |
|||
$question = '' |
|||
) |
Definition at line 63 of file class.assKprimChoice.php.
References assQuestion\$author, assQuestion\$comment, assQuestion\$owner, assQuestion\$question, assQuestion\$title, ILIAS\GlobalScreen\Provider\__construct(), and NUM_REQUIRED_ANSWERS.
assKprimChoice::addAnswer | ( | ilAssKprimChoiceAnswer | $answer | ) |
Definition at line 202 of file class.assKprimChoice.php.
References ilAssKprimChoiceAnswer\getAnswertext(), assQuestion\getHtmlQuestionContentPurifier(), and ilAssKprimChoiceAnswer\setAnswertext().
assKprimChoice::calculateReachedPoints | ( | int | $active_id, |
?int | $pass = null , |
||
bool | $authorized_solution = true |
||
) |
Reimplemented from assQuestion.
Definition at line 404 of file class.assKprimChoice.php.
|
protected |
Definition at line 640 of file class.assKprimChoice.php.
|
protected |
Definition at line 672 of file class.assKprimChoice.php.
assKprimChoice::getAdditionalTableName | ( | ) |
Reimplemented from assQuestion.
Definition at line 79 of file class.assKprimChoice.php.
Referenced by saveAdditionalQuestionDataToDb().
assKprimChoice::getAnswer | ( | $position | ) |
Definition at line 191 of file class.assKprimChoice.php.
References getAnswers().
assKprimChoice::getAnswers | ( | ) |
Definition at line 186 of file class.assKprimChoice.php.
References $answers.
Referenced by getAnswer(), isComplete(), and saveAnswerSpecificDataToDb().
assKprimChoice::getAnswerTableName | ( | ) |
Reimplemented from assQuestion.
Definition at line 84 of file class.assKprimChoice.php.
Referenced by saveAnswerSpecificDataToDb().
assKprimChoice::getAnswerType | ( | ) |
Definition at line 104 of file class.assKprimChoice.php.
References $answerType.
Referenced by saveAdditionalQuestionDataToDb().
assKprimChoice::getAnswerTypeSelectOptions | ( | ilLanguage | $lng | ) |
ilLanguage | $lng |
Definition at line 445 of file class.assKprimChoice.php.
References $lng.
assKprimChoice::getCorrectSolutionForTextOutput | ( | int | $active_id, |
int | $pass | ||
) |
Reimplemented from assQuestion.
Definition at line 913 of file class.assKprimChoice.php.
References ilAssKprimChoiceAnswer\getAnswertext(), ilAssKprimChoiceAnswer\getCorrectness(), and ILIAS\Repository\lng().
assKprimChoice::getCustomFalseOptionLabel | ( | ) |
Definition at line 154 of file class.assKprimChoice.php.
References $customFalseOptionLabel.
Referenced by saveAdditionalQuestionDataToDb().
assKprimChoice::getCustomTrueOptionLabel | ( | ) |
Definition at line 144 of file class.assKprimChoice.php.
References $customTrueOptionLabel.
Referenced by saveAdditionalQuestionDataToDb().
|
private |
Definition at line 535 of file class.assKprimChoice.php.
assKprimChoice::getFalseOptionLabelTranslation | ( | ilLanguage | $lng, |
string | $option_label | ||
) |
Definition at line 524 of file class.assKprimChoice.php.
References $lng.
assKprimChoice::getInstructionTextTranslation | ( | ilLanguage | $lng, |
$option_label | |||
) |
Definition at line 555 of file class.assKprimChoice.php.
References $lng.
assKprimChoice::getLangVarForOptionLabel | ( | string | $option_label | ) |
Definition at line 476 of file class.assKprimChoice.php.
|
private |
Definition at line 767 of file class.assKprimChoice.php.
assKprimChoice::getOptionLabel | ( | ) |
Definition at line 134 of file class.assKprimChoice.php.
References $option_label.
Referenced by saveAdditionalQuestionDataToDb().
assKprimChoice::getQuestionType | ( | ) |
Reimplemented from assQuestion.
Definition at line 74 of file class.assKprimChoice.php.
|
protected |
Reimplemented from assQuestion.
Definition at line 685 of file class.assKprimChoice.php.
|
protected |
Definition at line 619 of file class.assKprimChoice.php.
References Vendor\Package\$a, and $post.
assKprimChoice::getSpecificFeedbackAllCorrectOptionLabel | ( | ) |
Implements ilAssSpecificFeedbackOptionLabelProvider.
Definition at line 776 of file class.assKprimChoice.php.
assKprimChoice::getSpecificFeedbackSetting | ( | ) |
Definition at line 164 of file class.assKprimChoice.php.
References $specific_feedback_setting.
Referenced by saveAdditionalQuestionDataToDb().
assKprimChoice::getThumbSize | ( | ) |
Reimplemented from assQuestion.
Definition at line 114 of file class.assKprimChoice.php.
References $thumbSize.
Referenced by saveAdditionalQuestionDataToDb().
assKprimChoice::getTrueOptionLabel | ( | string | $option_label | ) |
Definition at line 504 of file class.assKprimChoice.php.
assKprimChoice::getTrueOptionLabelTranslation | ( | ilLanguage | $lng, |
string | $option_label | ||
) |
Definition at line 493 of file class.assKprimChoice.php.
References $lng.
assKprimChoice::getValidAnswerTypes | ( | ) |
Definition at line 425 of file class.assKprimChoice.php.
assKprimChoice::getValidOptionLabels | ( | ) |
Definition at line 453 of file class.assKprimChoice.php.
assKprimChoice::getValidOptionLabelsTranslated | ( | ilLanguage | $lng | ) |
Definition at line 464 of file class.assKprimChoice.php.
|
private |
Definition at line 582 of file class.assKprimChoice.php.
References $filename, ilAssKprimChoiceAnswer\getImageFsPath(), ilFileUtils\makeDirParents(), ilFileUtils\moveUploadedFile(), ilAssKprimChoiceAnswer\setImageFile(), and ilAssKprimChoiceAnswer\setImageFsDir().
assKprimChoice::handleFileUploads | ( | $answers, | |
$files | |||
) |
Definition at line 569 of file class.assKprimChoice.php.
assKprimChoice::isComplete | ( | ) |
Reimplemented from assQuestion.
Definition at line 350 of file class.assKprimChoice.php.
References getAnswers().
assKprimChoice::isCustomOptionLabel | ( | $labelValue | ) |
Definition at line 564 of file class.assKprimChoice.php.
assKprimChoice::isScorePartialSolutionEnabled | ( | ) |
Definition at line 124 of file class.assKprimChoice.php.
References $scorePartialSolutionEnabled.
Referenced by saveAdditionalQuestionDataToDb().
assKprimChoice::isShuffleAnswersEnabled | ( | ) |
Definition at line 94 of file class.assKprimChoice.php.
References $shuffle_answers_enabled.
Referenced by saveAdditionalQuestionDataToDb().
assKprimChoice::isSingleLineAnswerType | ( | $answerType | ) |
Definition at line 436 of file class.assKprimChoice.php.
References ANSWER_TYPE_SINGLE_LINE.
assKprimChoice::isValidAnswerType | ( | $answerType | ) |
Definition at line 430 of file class.assKprimChoice.php.
Referenced by loadFromDb().
assKprimChoice::isValidOptionLabel | ( | ?string | $option_label | ) |
Definition at line 487 of file class.assKprimChoice.php.
Referenced by loadFromDb().
|
protected |
ilAssSelfAssessmentMigrator | $migrator |
Reimplemented from assQuestion.
Definition at line 699 of file class.assKprimChoice.php.
References ilAssSelfAssessmentMigrator\migrateToLmContent().
|
private |
Definition at line 277 of file class.assKprimChoice.php.
References $data, $res, ilRTE\_replaceMediaObjectImageSrc(), assQuestion\getImagePath(), and assQuestion\getImagePathWeb().
Referenced by loadFromDb().
assKprimChoice::loadFromDb | ( | $questionId | ) |
Definition at line 210 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().
assKprimChoice::moveAnswerDown | ( | $position | ) |
Definition at line 781 of file class.assKprimChoice.php.
assKprimChoice::moveAnswerUp | ( | $position | ) |
Definition at line 802 of file class.assKprimChoice.php.
assKprimChoice::removeAnswerImage | ( | $position | ) |
Definition at line 604 of file class.assKprimChoice.php.
References ilFileUtils\delDir().
assKprimChoice::saveAdditionalQuestionDataToDb | ( | ) |
Saves a record to the question types additional data table.
Implements ilObjQuestionScoringAdjustable.
Definition at line 312 of file class.assKprimChoice.php.
References getAdditionalTableName(), getAnswerType(), getCustomFalseOptionLabel(), getCustomTrueOptionLabel(), assQuestion\getId(), getOptionLabel(), getSpecificFeedbackSetting(), getThumbSize(), isScorePartialSolutionEnabled(), and isShuffleAnswersEnabled().
Referenced by saveToDb().
assKprimChoice::saveAnswerSpecificDataToDb | ( | ) |
Saves the answer specific records into a question types answer table.
Implements ilObjAnswerScoringAdjustable.
Definition at line 332 of file class.assKprimChoice.php.
References getAnswers(), getAnswerTableName(), and assQuestion\getId().
Referenced by saveToDb().
assKprimChoice::saveToDb | ( | ?int | $original_id = null | ) |
Reimplemented from assQuestion.
Definition at line 303 of file class.assKprimChoice.php.
References assQuestion\$original_id, saveAdditionalQuestionDataToDb(), saveAnswerSpecificDataToDb(), and assQuestion\saveQuestionDataToDb().
assKprimChoice::saveWorkingData | ( | int | $active_id, |
?int | $pass = null , |
||
bool | $authorized = true |
||
) |
Reimplemented from assQuestion.
Definition at line 380 of file class.assKprimChoice.php.
References ilObjTest\_getPass().
assKprimChoice::setAnswers | ( | $answers | ) |
Definition at line 169 of file class.assKprimChoice.php.
References $answers, and assQuestion\getHtmlQuestionContentPurifier().
assKprimChoice::setAnswerType | ( | $answerType | ) |
Definition at line 99 of file class.assKprimChoice.php.
References $answerType.
Referenced by loadFromDb().
assKprimChoice::setCustomFalseOptionLabel | ( | $customFalseOptionLabel | ) |
Definition at line 149 of file class.assKprimChoice.php.
References $customFalseOptionLabel.
Referenced by loadFromDb().
assKprimChoice::setCustomTrueOptionLabel | ( | $customTrueOptionLabel | ) |
Definition at line 139 of file class.assKprimChoice.php.
References $customTrueOptionLabel.
Referenced by loadFromDb().
assKprimChoice::setOptionLabel | ( | string | $option_label | ) |
Definition at line 129 of file class.assKprimChoice.php.
References $option_label.
Referenced by loadFromDb().
assKprimChoice::setScorePartialSolutionEnabled | ( | $scorePartialSolutionEnabled | ) |
Definition at line 119 of file class.assKprimChoice.php.
References $scorePartialSolutionEnabled.
Referenced by loadFromDb().
assKprimChoice::setShuffleAnswersEnabled | ( | bool | $shuffle_answers_enabled | ) |
Definition at line 89 of file class.assKprimChoice.php.
References $shuffle_answers_enabled.
Referenced by loadFromDb().
assKprimChoice::setSpecificFeedbackSetting | ( | int | $specific_feedback_setting | ) |
Definition at line 159 of file class.assKprimChoice.php.
References $specific_feedback_setting.
Referenced by loadFromDb().
assKprimChoice::setThumbSize | ( | int | $thumbSize | ) |
Reimplemented from assQuestion.
Definition at line 109 of file class.assKprimChoice.php.
References $thumbSize.
Referenced by loadFromDb().
|
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 861 of file class.assKprimChoice.php.
References $id, and ILIAS\Test\Logging\AdditionalInformationGenerator\getNoneTag().
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 890 of file class.assKprimChoice.php.
References $id, and ILIAS\Repository\lng().
assKprimChoice::toJSON | ( | ) |
Returns a JSON representation of the question.
Reimplemented from assQuestion.
Definition at line 710 of file class.assKprimChoice.php.
References ilObjMediaObject\_getMobsOfObject(), ILIAS\Survey\Mode\getId(), ILIAS\Repository\int(), and ILIAS\Repository\lng().
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 824 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().
|
private |
Definition at line 61 of file class.assKprimChoice.php.
Referenced by getAnswers(), and setAnswers().
|
private |
Definition at line 53 of file class.assKprimChoice.php.
Referenced by getAnswerType(), and setAnswerType().
|
private |
Definition at line 58 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 56 of file class.assKprimChoice.php.
Referenced by getOptionLabel(), and setOptionLabel().
|
private |
Definition at line 55 of file class.assKprimChoice.php.
Referenced by isScorePartialSolutionEnabled(), and setScorePartialSolutionEnabled().
|
private |
Definition at line 52 of file class.assKprimChoice.php.
Referenced by isShuffleAnswersEnabled(), and setShuffleAnswersEnabled().
|
private |
Definition at line 59 of file class.assKprimChoice.php.
Referenced by getSpecificFeedbackSetting(), and setSpecificFeedbackSetting().
|
private |
Definition at line 54 of file class.assKprimChoice.php.
Referenced by getThumbSize(), and setThumbSize().
const assKprimChoice::ANSWER_TYPE_MULTI_LINE = 'multiLine' |
Definition at line 41 of file class.assKprimChoice.php.
Referenced by assKprimChoiceGUI\handleAnswerTextsSubmit().
const assKprimChoice::ANSWER_TYPE_SINGLE_LINE = 'singleLine' |
Definition at line 40 of file class.assKprimChoice.php.
Referenced by isSingleLineAnswerType().
const assKprimChoice::DEFAULT_THUMB_SIZE = 150 |
Definition at line 49 of file class.assKprimChoice.php.
const assKprimChoice::NUM_REQUIRED_ANSWERS = 4 |
Definition at line 36 of file class.assKprimChoice.php.
Referenced by __construct().
const assKprimChoice::OPTION_LABEL_ADEQUATE_OR_NOT = 'adequate_or_not' |
Definition at line 46 of file class.assKprimChoice.php.
const assKprimChoice::OPTION_LABEL_APPLICABLE_OR_NOT = 'applicable_or_not' |
Definition at line 45 of file class.assKprimChoice.php.
const assKprimChoice::OPTION_LABEL_CUSTOM = 'customlabel' |
Definition at line 47 of file class.assKprimChoice.php.
const assKprimChoice::OPTION_LABEL_PLUS_MINUS = 'plus_minus' |
Definition at line 44 of file class.assKprimChoice.php.
const assKprimChoice::OPTION_LABEL_RIGHT_WRONG = 'right_wrong' |
Definition at line 43 of file class.assKprimChoice.php.
const assKprimChoice::PARTIAL_SCORING_NUM_CORRECT_ANSWERS = 3 |
Definition at line 38 of file class.assKprimChoice.php.
const assKprimChoice::THUMB_PREFIX = 'thumb.' |
Definition at line 50 of file class.assKprimChoice.php.