ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
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) | |
getThumbPrefix () | |
rebuildThumbnails () | |
handleFileUploads ($answers, $files) | |
removeAnswerImage ($position) | |
duplicate (bool $for_test=true, string $title="", string $author="", string $owner="", $testObjId=null) | |
createNewOriginalFromThisDuplicate ($targetParentId, $targetQuestionTitle="") | |
copyObject ($target_questionpool_id, $title="") | |
Copies an assMultipleChoice object. More... | |
toJSON () | |
Returns a JSON representation of the question. More... | |
getSpecificFeedbackAllCorrectOptionLabel () | |
isAnswered (int $active_id, int $pass) | |
setExportDetailsXLS (ilAssExcelFormatHelper $worksheet, int $startrow, int $active_id, int $pass) | |
{} More... | |
moveAnswerDown ($position) | |
moveAnswerUp ($position) | |
![]() | |
__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... | |
questionTitleExists (int $questionpool_id, string $title) | |
Returns TRUE if the question title exists in a question pool in the database. More... | |
setTitle (string $title="") | |
setId (int $id=-1) | |
setTestId (int $id=-1) | |
setComment (string $comment="") | |
setOutputType (int $outputType=OUTPUT_HTML) | |
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 () | |
getOutputType () | |
supportsJavascriptOutput () | |
supportsNonJsOutput () | |
requiresJsSwitch () | |
getAuthor () | |
getAuthorForHTMLOutput () | |
getOwner () | |
getObjId () | |
setObjId (int $obj_id=0) | |
getLifecycle () | |
setLifecycle (ilAssQuestionLifecycle $lifecycle) | |
setExternalId (?string $external_id) | |
getExternalId () | |
getSuggestedSolutionOutput () | |
_getSuggestedSolution (int $question_id, int $subquestion_index=0) | |
loadSuggestedSolution (int $question_id, int $subquestion_index=0) | |
Returns a suggested solution for a given subquestion index. More... | |
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... | |
moveUploadedMediaFile (string $file, string $name) | |
Move an uploaded media file to an public accessible temp dir to present it. More... | |
getSuggestedSolutionPath () | |
getImagePath ($question_id=null, $object_id=null) | |
Returns the image path for web accessable images of a question. More... | |
buildImagePath ($questionId, $parentObjectId) | |
getFlashPath () | |
Returns the image path for web accessable flash files 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... | |
isInUse (int $question_id=0) | |
Checks whether the question is in use or not in pools or tests. More... | |
usageNumber (int $question_id=0) | |
Returns the number of place the question is in use in pools or tests. More... | |
isClone (int $question_id=0) | |
Checks whether the question is a clone of another question or not. 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 () | |
setNewOriginalId (int $newId) | |
deleteSuggestedSolutions () | |
getSuggestedSolution (int $subquestion_index=0) | |
Returns a suggested solution for a given subquestion index. More... | |
getSuggestedSolutionTitle (int $subquestion_index=0) | |
Returns the title of a suggested solution at a given subquestion_index. More... | |
setSuggestedSolution (string $solution_id="", int $subquestion_index=0, bool $is_import=false) | |
Sets a suggested solution for the question. More... | |
updateSuggestedSolutions (int $original_id=-1, int $original_obj_id=-1) | |
_resolveInternalLink (string $internal_link) | |
_resolveIntLinks (int $question_id) | |
syncWithOriginal () | |
_questionExists ($question_id) | |
Returns true if the question already exists in the database. More... | |
_questionExistsInPool (int $question_id) | |
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... | |
isHTML ($a_text) | |
Checks if a given string contains HTML or not. More... | |
prepareTextareaOutput (string $txt_output, bool $prepare_for_latex_output=false, bool $omitNl2BrWhenTextArea=false) | |
QTIMaterialToString (ilQTIMaterial $a_material) | |
Reads an QTI material tag and creates a text or XHTML string. More... | |
addQTIMaterial (ilXmlWriter $a_xml_writer, string $a_material, bool $close_material_tag=true, bool $add_mobs=true) | |
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 () | |
setExportDetailsXLS (ilAssExcelFormatHelper $worksheet, int $startrow, int $active_id, int $pass) | |
__get ($value) | |
Object getter. More... | |
__set ($key, $value) | |
Object setter. More... | |
__isset ($key) | |
Object issetter. More... | |
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) | |
isAutosaveable () | |
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="", string $owner="", $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 () | |
savePartial () | |
isInActiveTest () | |
Static Public Member Functions | |
static | isObligationPossible (int $questionId) |
![]() | |
static | setForcePassResultUpdateEnabled (bool $forcePassResultsUpdateEnabled) |
static | isForcePassResultUpdateEnabled () |
static | isAllowedImageMimeType ($mimeType) |
static | fetchMimeTypeIdentifier (string $contentType) |
static | getAllowedFileExtensionsForMimeType (string $mimeType) |
static | isAllowedImageFileExtension (string $mimeType, string $fileExtension) |
static | getAllowedImageMaterialFileExtensions () |
static | _getMaximumPoints (int $question_id) |
Returns the maximum points, a learner can reach answering the question. More... | |
static | _getQuestionInfo (int $question_id) |
static | _getSuggestedSolutionCount (int $question_id) |
static | _getSuggestedSolutionOutput (int $question_id) |
static | _getReachedPoints (int $active_id, int $question_id, int $pass) |
static | _updateTestResultCache (int $active_id, ilAssQuestionProcessLocker $processLocker=null) |
Move this to a proper place. More... | |
static | logAction (string $logtext, int $active_id, int $question_id) |
static | getQuestionTypeFromDb (int $question_id) |
static | _getTotalRightAnswers (int $a_q_id) |
static | _getTitle (int $a_q_id) |
static | _getQuestionText (int $a_q_id) |
static | isFileAvailable (string $file) |
static | _getQuestionType (int $question_id) |
static | _getQuestionTitle (int $question_id) |
static | saveOriginalId (int $questionId, int $originalId) |
static | resetOriginalId (int $questionId) |
static | _getInternalLinkHref (string $target="") |
static | _getOriginalId (int $question_id) |
static | originalQuestionExists (int $questionId) |
static | _instanciateQuestion (int $question_id) |
static | _instantiateQuestion (int $question_id) |
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 | _isUsedInRandomTest (int $question_id) |
static | _isWorkedThrough (int $active_id, int $question_id, int $pass) |
Returns true if the question was worked through in the given pass Worked through means that the user entered at least one value. More... | |
static | _areAnswered (int $a_user_id, array $a_question_ids) |
Checks if an array of question ids is answered by a user or not. More... | |
static | _setReachedPoints (int $active_id, int $question_id, float $points, float $maxpoints, int $pass, bool $manualscoring, bool $obligationsEnabled) |
Sets the points, a learner has reached answering the question Additionally objective results are updated. More... | |
static | _needsManualScoring (int $question_id) |
static | _includeClass (string $question_type, int $gui=0) |
static | getFeedbackClassNameByQuestionType (string $questionType) |
static | isCoreQuestionType (string $questionType) |
static | includeCoreClass ($questionType, $withGuiClass) |
static | _getQuestionTypeName ($type_tag) |
static | _instanciateQuestionGUI (int $question_id) |
static | instantiateQuestionGUI (int $a_question_id) |
static | _questionExistsInTest (int $question_id, int $test_id) |
static | lookupParentObjId (int $questionId) |
static | lookupOriginalParentObjId (int $originalQuestionId) |
returns the parent object id for given original question id (should be a qpl id, but theoretically it can be a tst id, too) More... | |
static | isObligationPossible (int $questionId) |
static | implodeKeyValues (array $keyValues) |
static | explodeKeyValues (string $keyValues) |
static | convertISO8601FormatH_i_s_ExtendedToSeconds (string $time) |
static | missingResultRecordExists (int $activeId, int $pass, array $questionIds) |
static | getQuestionsMissingResultRecord (int $activeId, int $pass, array $questionIds) |
static | lookupResultRecordExist (int $activeId, int $questionId, int $pass) |
static | extendedTrim (string $value) |
Trim non-printable characters from the beginning and end of a string. More... | |
Protected Member Functions | |
generateThumbForFile ($path, $file) | |
getSolutionSubmit () | |
calculateReachedPointsForSolution ($found_values, $active_id=0) | |
beforeSyncWithOriginal ($origQuestionId, $dupQuestionId, $origParentObjId, $dupParentObjId) | |
afterSyncWithOriginal ($origQuestionId, $dupQuestionId, $origParentObjId, $dupParentObjId) | |
getRTETextWithMediaObjects () | |
lmMigrateQuestionTypeSpecificContent (ilAssSelfAssessmentMigrator $migrator) | |
![]() | |
getQuestionAction () | |
isNonEmptyItemListPostSubmission (string $postSubmissionFieldname) | |
ensureCurrentTestPass (int $active_id, int $pass) | |
lookupCurrentTestPass (int $active_id, int $pass) | |
lookupTestId (int $active_id) | |
Move to ilObjTest or similar More... | |
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) | |
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) | |
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... | |
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 | getNumExistingSolutionRecords (int $activeId, int $pass, int $questionId) |
![]() | |
const | HAS_SPECIFIC_FEEDBACK = true |
ILIAS HTTP Services | $http |
ILIAS Refinery Factory | $refinery |
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 |
int | $outputType = OUTPUT_JAVASCRIPT |
Contains the output type of a question. More... | |
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 |
![]() | |
static | $allowedFileExtensionsByMimeType |
static | $allowedCharsetsByMimeType |
static | $allowedImageMaterialFileExtensionsByMimeType |
static | $forcePassResultsUpdateEnabled = false |
static | $imageSourceFixReplaceMap |
Definition at line 25 of file class.assKprimChoice.php.
assKprimChoice::__construct | ( | $title = '' , |
|
$comment = '' , |
|||
$author = '' , |
|||
$owner = -1 , |
|||
$question = '' |
|||
) |
Definition at line 61 of file class.assKprimChoice.php.
References assQuestion\$author, assQuestion\$comment, assQuestion\$owner, assQuestion\$question, assQuestion\$title, ILIAS\GlobalScreen\Provider\__construct(), and ilAssConfigurableMultiOptionQuestionFeedback\FEEDBACK_SETTING_ALL.
assKprimChoice::addAnswer | ( | ilAssKprimChoiceAnswer | $answer | ) |
Definition at line 203 of file class.assKprimChoice.php.
References ilAssKprimChoiceAnswer\getAnswertext(), assQuestion\getHtmlQuestionContentPurifier(), and ilAssKprimChoiceAnswer\setAnswertext().
|
protected |
Definition at line 865 of file class.assKprimChoice.php.
References $DIC, $filename, assQuestion\$ilLog, assQuestion\buildImagePath(), getAnswers(), getThumbPrefix(), and ilFileUtils\makeDirParents().
|
protected |
Definition at line 854 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 467 of file class.assKprimChoice.php.
References $data, $DIC, $ilDB, assQuestion\$points, calculateReachedPointsForSolution(), assQuestion\getCurrentSolutionResultSet(), assQuestion\getSolutionMaxPass(), and ILIAS\Repository\int().
|
protected |
Definition at line 709 of file class.assKprimChoice.php.
References ILIAS\LTI\ToolProvider\$key, assQuestion\$points, getAnswers(), assQuestion\getPoints(), and isScorePartialSolutionEnabled().
Referenced by calculateReachedPoints().
assKprimChoice::copyObject | ( | $target_questionpool_id, | |
$title = "" |
|||
) |
Copies an assMultipleChoice object.
Definition at line 826 of file class.assKprimChoice.php.
References assQuestion\$original_id, assQuestion\$title, assQuestion\_getOriginalId(), assQuestion\getId(), and assQuestion\getObjId().
assKprimChoice::createNewOriginalFromThisDuplicate | ( | $targetParentId, | |
$targetQuestionTitle = "" |
|||
) |
Definition at line 789 of file class.assKprimChoice.php.
References assQuestion\$id, assQuestion\getId(), and assQuestion\getObjId().
assKprimChoice::duplicate | ( | bool | $for_test = true , |
string | $title = "" , |
||
string | $author = "" , |
||
string | $owner = "" , |
||
$testObjId = null |
|||
) |
Definition at line 741 of file class.assKprimChoice.php.
References assQuestion\$author, assQuestion\$original_id, assQuestion\$owner, assQuestion\$title, assQuestion\_getOriginalId(), assQuestion\getId(), and assQuestion\getObjId().
|
protected |
Definition at line 620 of file class.assKprimChoice.php.
References $filename, $path, ilShellUtil\convertImage(), getThumbPrefix(), and getThumbSize().
Referenced by rebuildThumbnails().
assKprimChoice::getAdditionalTableName | ( | ) |
Definition at line 83 of file class.assKprimChoice.php.
Referenced by saveAdditionalQuestionDataToDb().
assKprimChoice::getAnswer | ( | $position | ) |
Definition at line 192 of file class.assKprimChoice.php.
References getAnswers().
Referenced by removeAnswerImage().
assKprimChoice::getAnswers | ( | ) |
Definition at line 187 of file class.assKprimChoice.php.
References $answers.
Referenced by afterSyncWithOriginal(), calculateReachedPointsForSolution(), getAnswer(), getRTETextWithMediaObjects(), getSolutionSubmit(), isComplete(), lmMigrateQuestionTypeSpecificContent(), rebuildThumbnails(), saveAnswerSpecificDataToDb(), setExportDetailsXLS(), and toJSON().
assKprimChoice::getAnswerTableName | ( | ) |
Definition at line 88 of file class.assKprimChoice.php.
Referenced by saveAnswerSpecificDataToDb().
assKprimChoice::getAnswerType | ( | ) |
Definition at line 108 of file class.assKprimChoice.php.
References $answerType.
Referenced by rebuildThumbnails(), and saveAdditionalQuestionDataToDb().
assKprimChoice::getAnswerTypeSelectOptions | ( | ilLanguage | $lng | ) |
ilLanguage | $lng |
Definition at line 512 of file class.assKprimChoice.php.
References ilLanguage\txt().
assKprimChoice::getCustomFalseOptionLabel | ( | ) |
Definition at line 158 of file class.assKprimChoice.php.
References $customFalseOptionLabel.
Referenced by getFalseOptionLabelTranslation(), and saveAdditionalQuestionDataToDb().
assKprimChoice::getCustomTrueOptionLabel | ( | ) |
Definition at line 148 of file class.assKprimChoice.php.
References $customTrueOptionLabel.
Referenced by getTrueOptionLabelTranslation(), and saveAdditionalQuestionDataToDb().
assKprimChoice::getFalseOptionLabelTranslation | ( | ilLanguage | $lng, |
$optionLabel | |||
) |
Definition at line 569 of file class.assKprimChoice.php.
References $optionLabel, getCustomFalseOptionLabel(), and ilLanguage\txt().
Referenced by getInstructionTextTranslation(), and toJSON().
assKprimChoice::getInstructionTextTranslation | ( | ilLanguage | $lng, |
$optionLabel | |||
) |
Definition at line 590 of file class.assKprimChoice.php.
References $optionLabel, getFalseOptionLabelTranslation(), getTrueOptionLabelTranslation(), and ilLanguage\txt().
Referenced by toJSON().
|
private |
Definition at line 1003 of file class.assKprimChoice.php.
References isScorePartialSolutionEnabled().
Referenced by toJSON().
assKprimChoice::getOptionLabel | ( | ) |
Definition at line 138 of file class.assKprimChoice.php.
References $optionLabel.
Referenced by saveAdditionalQuestionDataToDb(), and toJSON().
assKprimChoice::getQuestionType | ( | ) |
Definition at line 78 of file class.assKprimChoice.php.
Referenced by toJSON().
|
protected |
Definition at line 920 of file class.assKprimChoice.php.
References getAnswers().
|
protected |
Definition at line 690 of file class.assKprimChoice.php.
References Vendor\Package\$a, $index, $post, and getAnswers().
Referenced by isComplete().
assKprimChoice::getSpecificFeedbackAllCorrectOptionLabel | ( | ) |
Implements ilAssSpecificFeedbackOptionLabelProvider.
Definition at line 1012 of file class.assKprimChoice.php.
assKprimChoice::getSpecificFeedbackSetting | ( | ) |
Definition at line 168 of file class.assKprimChoice.php.
References $specificFeedbackSetting.
Referenced by saveAdditionalQuestionDataToDb().
assKprimChoice::getThumbPrefix | ( | ) |
Definition at line 604 of file class.assKprimChoice.php.
Referenced by afterSyncWithOriginal(), generateThumbForFile(), and loadAnswerData().
assKprimChoice::getThumbSize | ( | ) |
Definition at line 118 of file class.assKprimChoice.php.
References $thumbSize.
Referenced by generateThumbForFile(), rebuildThumbnails(), saveAdditionalQuestionDataToDb(), and toJSON().
assKprimChoice::getTrueOptionLabelTranslation | ( | ilLanguage | $lng, |
$optionLabel | |||
) |
Definition at line 548 of file class.assKprimChoice.php.
References $optionLabel, getCustomTrueOptionLabel(), and ilLanguage\txt().
Referenced by getInstructionTextTranslation(), and toJSON().
assKprimChoice::getValidAnswerTypes | ( | ) |
Definition at line 492 of file class.assKprimChoice.php.
Referenced by isValidAnswerType().
assKprimChoice::getValidOptionLabels | ( | ) |
Definition at line 520 of file class.assKprimChoice.php.
Referenced by isValidOptionLabel().
assKprimChoice::getValidOptionLabelsTranslated | ( | ilLanguage | $lng | ) |
Definition at line 531 of file class.assKprimChoice.php.
References ilLanguage\txt().
|
private |
Definition at line 655 of file class.assKprimChoice.php.
References $filename, assQuestion\buildHashedImageFilename(), ilAssKprimChoiceAnswer\getImageFsPath(), assQuestion\getImagePath(), ilFileUtils\makeDirParents(), ilFileUtils\moveUploadedFile(), ilAssKprimChoiceAnswer\setImageFile(), and ilAssKprimChoiceAnswer\setImageFsDir().
Referenced by handleFileUploads().
assKprimChoice::handleFileUploads | ( | $answers, | |
$files | |||
) |
Definition at line 642 of file class.assKprimChoice.php.
References $answers, and handleFileUpload().
assKprimChoice::isAnswered | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 1022 of file class.assKprimChoice.php.
References assQuestion\getId(), and assQuestion\getNumExistingSolutionRecords().
assKprimChoice::isComplete | ( | ) |
Definition at line 373 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().
assKprimChoice::isCustomOptionLabel | ( | $labelValue | ) |
Definition at line 599 of file class.assKprimChoice.php.
|
static |
Definition at line 1017 of file class.assKprimChoice.php.
assKprimChoice::isScorePartialSolutionEnabled | ( | ) |
Definition at line 128 of file class.assKprimChoice.php.
References $scorePartialSolutionEnabled.
Referenced by calculateReachedPointsForSolution(), getNumAllowedFailures(), and saveAdditionalQuestionDataToDb().
assKprimChoice::isShuffleAnswersEnabled | ( | ) |
Definition at line 98 of file class.assKprimChoice.php.
References $shuffleAnswersEnabled.
Referenced by saveAdditionalQuestionDataToDb(), and toJSON().
assKprimChoice::isSingleLineAnswerType | ( | $answerType | ) |
Definition at line 503 of file class.assKprimChoice.php.
References $answerType, and ANSWER_TYPE_SINGLE_LINE.
Referenced by rebuildThumbnails().
assKprimChoice::isValidAnswerType | ( | $answerType | ) |
Definition at line 497 of file class.assKprimChoice.php.
References $answerType, and getValidAnswerTypes().
Referenced by loadFromDb().
assKprimChoice::isValidOptionLabel | ( | $optionLabel | ) |
Definition at line 542 of file class.assKprimChoice.php.
References $optionLabel, and getValidOptionLabels().
Referenced by loadFromDb().
|
protected |
ilAssSelfAssessmentMigrator | $migrator |
Definition at line 934 of file class.assKprimChoice.php.
References getAnswers(), and ilAssSelfAssessmentMigrator\migrateToLmContent().
|
private |
Definition at line 279 of file class.assKprimChoice.php.
References $data, $DIC, $i, $ilDB, $res, ilRTE\_replaceMediaObjectImageSrc(), assQuestion\getImagePath(), assQuestion\getImagePathWeb(), and getThumbPrefix().
Referenced by loadFromDb().
assKprimChoice::loadFromDb | ( | $questionId | ) |
Definition at line 211 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 | ) |
assKprimChoice::moveAnswerUp | ( | $position | ) |
assKprimChoice::rebuildThumbnails | ( | ) |
Definition at line 609 of file class.assKprimChoice.php.
References generateThumbForFile(), getAnswers(), getAnswerType(), getThumbSize(), and isSingleLineAnswerType().
Referenced by saveAnswerSpecificDataToDb().
assKprimChoice::removeAnswerImage | ( | $position | ) |
Definition at line 675 of file class.assKprimChoice.php.
References ilFileUtils\delDir(), and getAnswer().
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().
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 rebuildThumbnails().
Referenced by saveToDb().
assKprimChoice::saveToDb | ( | $originalId = '' | ) |
Definition at line 319 of file class.assKprimChoice.php.
References saveAdditionalQuestionDataToDb(), saveAnswerSpecificDataToDb(), and assQuestion\saveQuestionDataToDb().
assKprimChoice::setAnswers | ( | $answers | ) |
Definition at line 173 of file class.assKprimChoice.php.
References $answers, and assQuestion\getHtmlQuestionContentPurifier().
assKprimChoice::setAnswerType | ( | $answerType | ) |
Definition at line 103 of file class.assKprimChoice.php.
References $answerType.
Referenced by loadFromDb().
assKprimChoice::setCustomFalseOptionLabel | ( | $customFalseOptionLabel | ) |
Definition at line 153 of file class.assKprimChoice.php.
References $customFalseOptionLabel.
Referenced by loadFromDb().
assKprimChoice::setCustomTrueOptionLabel | ( | $customTrueOptionLabel | ) |
Definition at line 143 of file class.assKprimChoice.php.
References $customTrueOptionLabel.
Referenced by loadFromDb().
assKprimChoice::setExportDetailsXLS | ( | ilAssExcelFormatHelper | $worksheet, |
int | $startrow, | ||
int | $active_id, | ||
int | $pass | ||
) |
{}
Definition at line 1032 of file class.assKprimChoice.php.
References $i, assQuestion\$id, getAnswers(), ilExcel\getColumnCoord(), assQuestion\getSolutionValues(), ilExcel\setBold(), and ilAssExcelFormatHelper\setCell().
assKprimChoice::setOptionLabel | ( | $optionLabel | ) |
Definition at line 133 of file class.assKprimChoice.php.
References $optionLabel.
Referenced by loadFromDb().
assKprimChoice::setScorePartialSolutionEnabled | ( | $scorePartialSolutionEnabled | ) |
Definition at line 123 of file class.assKprimChoice.php.
References $scorePartialSolutionEnabled.
Referenced by loadFromDb().
assKprimChoice::setShuffleAnswersEnabled | ( | $shuffleAnswersEnabled | ) |
Definition at line 93 of file class.assKprimChoice.php.
References $shuffleAnswersEnabled.
Referenced by loadFromDb().
assKprimChoice::setSpecificFeedbackSetting | ( | $specificFeedbackSetting | ) |
Definition at line 163 of file class.assKprimChoice.php.
References $specificFeedbackSetting.
Referenced by loadFromDb().
assKprimChoice::setThumbSize | ( | int | $thumbSize | ) |
Definition at line 113 of file class.assKprimChoice.php.
References $thumbSize.
Referenced by loadFromDb().
assKprimChoice::toJSON | ( | ) |
Returns a JSON representation of the question.
Definition at line 945 of file class.assKprimChoice.php.
References $answers, ILIAS\LTI\ToolProvider\$key, $mobs, 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().
|
private |
Definition at line 59 of file class.assKprimChoice.php.
Referenced by getAnswers(), handleFileUploads(), setAnswers(), and toJSON().
|
private |
Definition at line 45 of file class.assKprimChoice.php.
Referenced by getAnswerType(), isSingleLineAnswerType(), isValidAnswerType(), and setAnswerType().
|
private |
Definition at line 55 of file class.assKprimChoice.php.
Referenced by getCustomFalseOptionLabel(), and setCustomFalseOptionLabel().
|
private |
Definition at line 53 of file class.assKprimChoice.php.
Referenced by getCustomTrueOptionLabel(), and setCustomTrueOptionLabel().
|
private |
Definition at line 51 of file class.assKprimChoice.php.
Referenced by getFalseOptionLabelTranslation(), getInstructionTextTranslation(), getOptionLabel(), getTrueOptionLabelTranslation(), isValidOptionLabel(), and setOptionLabel().
|
private |
Definition at line 49 of file class.assKprimChoice.php.
Referenced by isScorePartialSolutionEnabled(), and setScorePartialSolutionEnabled().
|
private |
Definition at line 43 of file class.assKprimChoice.php.
Referenced by isShuffleAnswersEnabled(), and setShuffleAnswersEnabled().
|
private |
Definition at line 57 of file class.assKprimChoice.php.
Referenced by getSpecificFeedbackSetting(), and setSpecificFeedbackSetting().
|
private |
Definition at line 47 of file class.assKprimChoice.php.
Referenced by getThumbSize(), and setThumbSize().
const assKprimChoice::ANSWER_TYPE_MULTI_LINE = 'multiLine' |
Definition at line 32 of file class.assKprimChoice.php.
Referenced by assKprimChoiceGUI\handleAnswerTextsSubmit().
const assKprimChoice::ANSWER_TYPE_SINGLE_LINE = 'singleLine' |
Definition at line 31 of file class.assKprimChoice.php.
Referenced by isSingleLineAnswerType().
const assKprimChoice::DEFAULT_THUMB_SIZE = 150 |
Definition at line 40 of file class.assKprimChoice.php.
const assKprimChoice::NUM_REQUIRED_ANSWERS = 4 |
Definition at line 27 of file class.assKprimChoice.php.
const assKprimChoice::OPTION_LABEL_ADEQUATE_OR_NOT = 'adequate_or_not' |
Definition at line 37 of file class.assKprimChoice.php.
const assKprimChoice::OPTION_LABEL_APPLICABLE_OR_NOT = 'applicable_or_not' |
Definition at line 36 of file class.assKprimChoice.php.
const assKprimChoice::OPTION_LABEL_CUSTOM = 'customlabel' |
Definition at line 38 of file class.assKprimChoice.php.
const assKprimChoice::OPTION_LABEL_PLUS_MINUS = 'plus_minus' |
Definition at line 35 of file class.assKprimChoice.php.
const assKprimChoice::OPTION_LABEL_RIGHT_WRONG = 'right_wrong' |
Definition at line 34 of file class.assKprimChoice.php.
const assKprimChoice::PARTIAL_SCORING_NUM_CORRECT_ANSWERS = 3 |
Definition at line 29 of file class.assKprimChoice.php.
const assKprimChoice::THUMB_PREFIX = 'thumb.' |
Definition at line 41 of file class.assKprimChoice.php.