ILIAS
trunk Revision v11.0_alpha-1831-g8615d53dadb
|
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) | |
solutionValuesToText (array $solution_values) | |
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, array $solutionhints=[]) | |
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 () | |
static | 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 () | |
deductHintPointsFromReachedPoints (ilAssQuestionPreviewSession $preview_session, $reached_points) | |
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 () | |
cloneHints (int $source_question_id, int $target_question_id) | |
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) | |
ensureHintPageObjectExists ($pageObjectId) | |
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) | |
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) | |
![]() | |
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) | |
duplicateQuestionHints (int $original_question_id, int $duplicate_question_id) | |
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 = [] | |
Additional Inherited Members | |
![]() | |
static | setForcePassResultUpdateEnabled (bool $force_pass_results_update_enabled) |
static | isForcePassResultUpdateEnabled () |
static | _getSuggestedSolutionOutput (int $question_id) |
static | _getReachedPoints (int $active_id, int $question_id, int $pass) |
static | isFileAvailable (string $file) |
static | saveOriginalId (int $questionId, int $originalId) |
static | resetOriginalId (int $questionId) |
static | instantiateQuestion (int $question_id) |
static | _getSolutionMaxPass (int $question_id, int $active_id) |
Returns the maximum pass a users question solution. More... | |
static | _setReachedPoints (int $active_id, int $question_id, float $points, float $maxpoints, int $pass, bool $manualscoring) |
Sets the points, a learner has reached answering the question Additionally objective results are updated. More... | |
static | getFeedbackClassNameByQuestionType (string $questionType) |
static | _questionExistsInTest (int $question_id, int $test_id) |
static | lookupParentObjId (int $question_id) |
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... | |
![]() | |
static | getNumExistingSolutionRecords (int $activeId, int $pass, int $questionId) |
![]() | |
const | HAS_SPECIFIC_FEEDBACK = true |
GeneralQuestionPropertiesRepository | $questionrepository |
RequestDataCollector | $questionpool_request |
QuestionFiles | $question_files |
ilAssQuestionProcessLocker | $processLocker |
ilTestQuestionConfig | $testQuestionConfig |
SuggestedSolutionsDatabaseRepository | $suggestedsolution_repo |
ILIAS | $ilias |
ilGlobalPageTemplate | $tpl |
ilLanguage | $lng |
ilDBInterface | $db |
ilObjUser | $current_user |
SkillUsageService | $skillUsageService |
HTTPServices | $http |
Refinery | $refinery |
Transformation | $shuffler |
LoggingServices | $log |
Container | $dic |
ilAssQuestionLifecycle | $lifecycle |
ilAssQuestionPage | $page |
int | $id |
string | $title |
string | $comment |
int | $owner |
string | $author |
int | $thumb_size |
string | $question |
float | $points = 0.0 |
bool | $shuffle = true |
int | $test_id |
int | $obj_id = 0 |
int | $original_id = null |
int | $lastChange = null |
string | $external_id = null |
int | $step = null |
array | $suggested_solutions |
![]() | |
static | $force_pass_results_update_enabled = false |
static | $imageSourceFixReplaceMap |
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, and ILIAS\GlobalScreen\Provider\__construct().
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 |
||
) |
Definition at line 404 of file class.assKprimChoice.php.
References $data, assQuestion\$points, calculateReachedPointsForSolution(), assQuestion\getCurrentSolutionResultSet(), assQuestion\getSolutionMaxPass(), and ILIAS\Repository\int().
|
protected |
Definition at line 640 of file class.assKprimChoice.php.
References assQuestion\$points, getAnswers(), assQuestion\getPoints(), isScorePartialSolutionEnabled(), and null.
Referenced by calculateReachedPoints().
|
protected |
Definition at line 672 of file class.assKprimChoice.php.
References getAnswers(), assQuestion\getId(), and assQuestion\getObjId().
assKprimChoice::getAdditionalTableName | ( | ) |
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(), and null.
Referenced by removeAnswerImage().
assKprimChoice::getAnswers | ( | ) |
Definition at line 186 of file class.assKprimChoice.php.
References $answers.
Referenced by calculateReachedPointsForSolution(), cloneQuestionTypeSpecificProperties(), getAnswer(), getCorrectSolutionForTextOutput(), getRTETextWithMediaObjects(), getSolutionSubmit(), isComplete(), lmMigrateQuestionTypeSpecificContent(), saveAnswerSpecificDataToDb(), solutionValuesToLog(), solutionValuesToText(), toJSON(), and toLog().
assKprimChoice::getAnswerTableName | ( | ) |
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 ilLanguage\txt().
assKprimChoice::getCorrectSolutionForTextOutput | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 913 of file class.assKprimChoice.php.
References getAnswers(), ilAssKprimChoiceAnswer\getAnswertext(), ilAssKprimChoiceAnswer\getCorrectness(), getFalseOptionLabelTranslation(), getOptionLabel(), getTrueOptionLabelTranslation(), and ILIAS\Repository\lng().
assKprimChoice::getCustomFalseOptionLabel | ( | ) |
Definition at line 154 of file class.assKprimChoice.php.
References $customFalseOptionLabel.
Referenced by getFalseOptionLabelTranslation(), saveAdditionalQuestionDataToDb(), and solutionValuesToLog().
assKprimChoice::getCustomTrueOptionLabel | ( | ) |
Definition at line 144 of file class.assKprimChoice.php.
References $customTrueOptionLabel.
Referenced by getTrueOptionLabelTranslation(), saveAdditionalQuestionDataToDb(), and solutionValuesToLog().
|
private |
Definition at line 535 of file class.assKprimChoice.php.
Referenced by getFalseOptionLabelTranslation(), and solutionValuesToLog().
assKprimChoice::getFalseOptionLabelTranslation | ( | ilLanguage | $lng, |
string | $option_label | ||
) |
Definition at line 524 of file class.assKprimChoice.php.
References getCustomFalseOptionLabel(), getFalseOptionLabel(), and ilLanguage\txt().
Referenced by getCorrectSolutionForTextOutput(), getInstructionTextTranslation(), solutionValuesToText(), and toJSON().
assKprimChoice::getInstructionTextTranslation | ( | ilLanguage | $lng, |
$option_label | |||
) |
Definition at line 555 of file class.assKprimChoice.php.
References getFalseOptionLabelTranslation(), getTrueOptionLabelTranslation(), and ilLanguage\txt().
Referenced by toJSON().
assKprimChoice::getLangVarForOptionLabel | ( | string | $option_label | ) |
Definition at line 476 of file class.assKprimChoice.php.
Referenced by getValidOptionLabelsTranslated(), and toLog().
|
private |
Definition at line 767 of file class.assKprimChoice.php.
References isScorePartialSolutionEnabled().
Referenced by toJSON(), and toLog().
assKprimChoice::getOptionLabel | ( | ) |
Definition at line 134 of file class.assKprimChoice.php.
References $option_label.
Referenced by getCorrectSolutionForTextOutput(), saveAdditionalQuestionDataToDb(), solutionValuesToLog(), solutionValuesToText(), toJSON(), and toLog().
assKprimChoice::getQuestionType | ( | ) |
Definition at line 74 of file class.assKprimChoice.php.
Referenced by toJSON(), and toLog().
|
protected |
Definition at line 685 of file class.assKprimChoice.php.
References getAnswers().
|
protected |
Definition at line 619 of file class.assKprimChoice.php.
References Vendor\Package\$a, $post, getAnswers(), and null.
Referenced by saveWorkingData().
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 | ( | ) |
Definition at line 114 of file class.assKprimChoice.php.
References $thumbSize.
Referenced by handleFileUpload(), saveAdditionalQuestionDataToDb(), and toJSON().
assKprimChoice::getTrueOptionLabel | ( | string | $option_label | ) |
Definition at line 504 of file class.assKprimChoice.php.
Referenced by getTrueOptionLabelTranslation(), and solutionValuesToLog().
assKprimChoice::getTrueOptionLabelTranslation | ( | ilLanguage | $lng, |
string | $option_label | ||
) |
Definition at line 493 of file class.assKprimChoice.php.
References getCustomTrueOptionLabel(), getTrueOptionLabel(), and ilLanguage\txt().
Referenced by getCorrectSolutionForTextOutput(), getInstructionTextTranslation(), solutionValuesToText(), and toJSON().
assKprimChoice::getValidAnswerTypes | ( | ) |
Definition at line 425 of file class.assKprimChoice.php.
Referenced by isValidAnswerType().
assKprimChoice::getValidOptionLabels | ( | ) |
Definition at line 453 of file class.assKprimChoice.php.
Referenced by getValidOptionLabelsTranslated(), and isValidOptionLabel().
assKprimChoice::getValidOptionLabelsTranslated | ( | ilLanguage | $lng | ) |
Definition at line 464 of file class.assKprimChoice.php.
References $c, $option_label, getLangVarForOptionLabel(), getValidOptionLabels(), and ilLanguage\txt().
|
private |
Definition at line 582 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().
assKprimChoice::handleFileUploads | ( | $answers, | |
$files | |||
) |
Definition at line 569 of file class.assKprimChoice.php.
References $answers, and handleFileUpload().
assKprimChoice::isComplete | ( | ) |
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 calculateReachedPointsForSolution(), getNumAllowedFailures(), and saveAdditionalQuestionDataToDb().
assKprimChoice::isShuffleAnswersEnabled | ( | ) |
Definition at line 94 of file class.assKprimChoice.php.
References $shuffle_answers_enabled.
Referenced by saveAdditionalQuestionDataToDb(), and toJSON().
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.
References getValidAnswerTypes().
Referenced by loadFromDb().
assKprimChoice::isValidOptionLabel | ( | ?string | $option_label | ) |
Definition at line 487 of file class.assKprimChoice.php.
References getValidOptionLabels().
Referenced by loadFromDb().
|
protected |
ilAssSelfAssessmentMigrator | $migrator |
Definition at line 699 of file class.assKprimChoice.php.
References getAnswers(), and 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(), null, 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(), getAnswer(), and null.
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(), assQuestion\getId(), and ILIAS\Repository\int().
Referenced by saveToDb().
assKprimChoice::saveToDb | ( | ?int | $original_id = null | ) |
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 |
||
) |
Definition at line 380 of file class.assKprimChoice.php.
References ilObjTest\_getPass(), assQuestion\getProcessLocker(), getSolutionSubmit(), null, assQuestion\removeCurrentSolution(), and assQuestion\saveCurrentSolution().
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 | ) |
Definition at line 109 of file class.assKprimChoice.php.
References $thumbSize.
Referenced by loadFromDb().
|
protected |
Definition at line 861 of file class.assKprimChoice.php.
References assQuestion\$id, getAnswers(), getCustomFalseOptionLabel(), getCustomTrueOptionLabel(), getFalseOptionLabel(), ILIAS\Test\Logging\AdditionalInformationGenerator\getNoneTag(), getOptionLabel(), and getTrueOptionLabel().
assKprimChoice::solutionValuesToText | ( | array | $solution_values | ) |
Definition at line 890 of file class.assKprimChoice.php.
References assQuestion\$id, getAnswers(), getFalseOptionLabelTranslation(), getOptionLabel(), getTrueOptionLabelTranslation(), and ILIAS\Repository\lng().
assKprimChoice::toJSON | ( | ) |
Returns a JSON representation of the question.
Implements ILIAS\TestQuestionPool\Questions\QuestionLMExportable.
Definition at line 710 of file class.assKprimChoice.php.
References $answers, 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().
assKprimChoice::toLog | ( | AdditionalInformationGenerator | $additional_info | ) |
Implements ILIAS\TestQuestionPool\Questions\Question.
Definition at line 824 of file class.assKprimChoice.php.
References $answers, assQuestion\formatSAQuestion(), getAnswers(), ILIAS\Test\Logging\AdditionalInformationGenerator\getEnabledDisabledTagForBool(), getLangVarForOptionLabel(), getNumAllowedFailures(), getOptionLabel(), assQuestion\getQuestion(), getQuestionType(), assQuestion\getShuffle(), ILIAS\Test\Logging\AdditionalInformationGenerator\getTagForLangVar(), assQuestion\getTitleForHTMLOutput(), and ILIAS\Test\Logging\AdditionalInformationGenerator\getTrueFalseTagForBool().
|
private |
Definition at line 61 of file class.assKprimChoice.php.
Referenced by getAnswers(), handleFileUploads(), setAnswers(), toJSON(), and toLog().
|
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(), getValidOptionLabelsTranslated(), 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.
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.