ILIAS
release_8 Revision v8.23
|
Abstract basic class which is to be extended by the concrete assessment question type classes. More...
Public Member Functions | |
__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 | 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... | |
Data Fields | |
const | IMG_MIME_TYPE_JPG = 'image/jpeg' |
const | IMG_MIME_TYPE_PNG = 'image/png' |
const | IMG_MIME_TYPE_GIF = 'image/gif' |
const | TRIM_PATTERN = '/^[\p{C}\p{Z}]+|[\p{C}\p{Z}]+$/u' |
const | ADDITIONAL_CONTENT_EDITING_MODE_RTE = 'default' |
const | ADDITIONAL_CONTENT_EDITING_MODE_IPE = 'pageobject' |
ilAssQuestionFeedback | $feedbackOBJ |
bool | $prevent_rte_usage = false |
bool | $selfassessmenteditingmode = false |
int | $defaultnroftries = 0 |
string | $questionActionCmd = 'handleQuestionAction' |
const | KEY_VALUES_IMPLOSION_SEPARATOR = ':' |
Protected Member Functions | |
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... | |
Static Protected Member Functions | |
static | getNumExistingSolutionRecords (int $activeId, int $pass, int $questionId) |
Protected Attributes | |
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 Protected Attributes | |
static | $allowedFileExtensionsByMimeType |
static | $allowedCharsetsByMimeType |
static | $allowedImageMaterialFileExtensionsByMimeType |
static | $forcePassResultsUpdateEnabled = false |
static | $imageSourceFixReplaceMap |
Private Member Functions | |
generateExternalId (int $question_id) | |
deleteTaxonomyAssignments () | |
Private Attributes | |
const | DEFAULT_THUMB_SIZE = 150 |
const | MINIMUM_THUMB_SIZE = 20 |
const | MAXIMUM_THUMB_SIZE = 8192 |
int | $nr_of_tries |
string | $export_image_path |
(Web) Path to images More... | |
string | $additionalContentEditingMode = '' |
bool | $obligationsToBeConsidered = false |
ilTestQuestionConfig | $testQuestionConfigInstance = null |
Abstract basic class which is to be extended by the concrete assessment question type classes.
The assQuestion class defines and encapsulates basic/common methods and attributes as well as it provides abstract methods that are to be implemented by concrete question type classes.
Definition at line 41 of file class.assQuestion.php.
assQuestion::__construct | ( | string | $title = "" , |
string | $comment = "" , |
||
string | $author = "" , |
||
int | $owner = -1 , |
||
string | $question = "" |
||
) |
assQuestion constructor
Definition at line 192 of file class.assQuestion.php.
References $comment, $DIC, $ilDB, $ilLog, $lng, $title, $tpl, ILIAS\UI\examples\Symbol\Glyph\Comment\comment(), ilAssQuestionLifecycle\getDraftInstance(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), setAuthor(), setExternalId(), setOwner(), and setQuestion().
assQuestion::__get | ( | $value | ) |
Object getter.
ILIAS 9
Definition at line 3287 of file class.assQuestion.php.
assQuestion::__isset | ( | $key | ) |
Object issetter.
ILIAS 9
Definition at line 3307 of file class.assQuestion.php.
References ILIAS\LTI\ToolProvider\$key.
assQuestion::__set | ( | $key, | |
$value | |||
) |
Object setter.
ILIAS 9
Definition at line 3297 of file class.assQuestion.php.
References ILIAS\LTI\ToolProvider\$key.
|
static |
Checks if an array of question ids is answered by a user or not.
int | user_id | |
array | $question_ids | user id array |
Definition at line 2798 of file class.assQuestion.php.
References $DIC, $ilDB, and $res.
Referenced by ilCourseObjectiveResult\getStatus().
|
static |
Definition at line 2438 of file class.assQuestion.php.
References $DIC, $target_id, and $type.
Referenced by getSuggestedSolutionOutput(), and assQuestionGUI\suggestedsolution().
|
static |
Returns the maximum points, a learner can reach answering the question.
Definition at line 650 of file class.assQuestion.php.
References $DIC, $ilDB, and $points.
Referenced by ilCourseObjectiveQuestion\_lookupMaximumPointsOfQuestion(), ilTestScoringGUI\buildManScoringParticipantForm(), assFileUpload\handleSubmission(), ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI\initFilter(), ilCourseObjectiveQuestionAssignmentTableGUI\parse(), ilTestScoringGUI\saveManScoringParticipantScreen(), and ilTestScoringByQuestionsGUI\showManScoringByQuestionParticipantsTable().
|
static |
Definition at line 2470 of file class.assQuestion.php.
Referenced by ilTestFixedQuestionSetConfig\cloneQuestionSetRelatedData(), ilObjTestGUI\copyAndLinkToQuestionpoolObject(), assOrderingHorizontal\copyObject(), assNumeric\copyObject(), assFileUpload\copyObject(), assImagemapQuestion\copyObject(), assOrderingQuestion\copyObject(), assTextSubset\copyObject(), assTextQuestion\copyObject(), assFlashQuestion\copyObject(), assErrorText\copyObject(), assSingleChoice\copyObject(), assMultipleChoice\copyObject(), assMatchingQuestion\copyObject(), assLongMenu\copyObject(), assFormulaQuestion\copyObject(), assKprimChoice\copyObject(), assClozeTest\copyObject(), assOrderingHorizontal\duplicate(), assNumeric\duplicate(), assFileUpload\duplicate(), assOrderingQuestion\duplicate(), assImagemapQuestion\duplicate(), assTextSubset\duplicate(), assFlashQuestion\duplicate(), assTextQuestion\duplicate(), assErrorText\duplicate(), assSingleChoice\duplicate(), assMultipleChoice\duplicate(), assMatchingQuestion\duplicate(), assLongMenu\duplicate(), assFormulaQuestion\duplicate(), assKprimChoice\duplicate(), assClozeTest\duplicate(), and ilObjTest\logAction().
|
static |
Definition at line 671 of file class.assQuestion.php.
Referenced by ilObjMediaObject\getParentObjectIdForUsage(), ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI\initFilter(), and ilTestScoringByQuestionsGUI\showManScoringByQuestionParticipantsTable().
|
static |
Definition at line 1722 of file class.assQuestion.php.
Referenced by ilLMQuestionListTableGUI\fillRow().
|
static |
Definition at line 1824 of file class.assQuestion.php.
References $data, $DIC, and $ilDB.
Referenced by ilObjAssessmentFolderGUI\exportLogObject(), ilAssessmentFolderLogTableGUI\fillRow(), and ilObjTest\logManualFeedback().
|
static |
Definition at line 1803 of file class.assQuestion.php.
References $data, $DIC, and $ilDB.
Referenced by _needsManualScoring(), ilPageObjectGUI\executeCommand(), instantiateQuestion(), instantiateQuestionGUI(), ilObjTest\isQuestionObligationPossible(), and ilPCQuestionGUI\setTabs().
|
static |
Definition at line 3211 of file class.assQuestion.php.
References $DIC, and ilLanguage\txt().
Referenced by ilObjQuestionPoolGUI\addLocatorItems(), ilTestRandomQuestionSelectionTableGUI\build(), ilCopySelfAssQuestionTableGUI\fillRow(), ilTestQuestionsTableGUI\fillRow(), ilQuestionBrowserTableGUI\fillRow(), ilTestQuestionBrowserTableGUI\fillRow(), assQuestionGUI\outQuestionType(), ilObjTestGUI\removeQuestionsForm(), and ilObjQuestionPoolGUI\setTitleAndDescription().
|
static |
Definition at line 788 of file class.assQuestion.php.
References $DIC, $ilDB, and $points.
Referenced by ilTestScoringByQuestionsGUI\appendFormToModal(), ilTestScoringGUI\buildManScoringParticipantForm(), ilTestServiceGUI\getPassListOfAnswersWithScoring(), ilTestScoringGUI\saveManScoringParticipantScreen(), and ilTestScoringByQuestionsGUI\showManScoringByQuestionParticipantsTable().
|
static |
Returns the maximum pass a users question solution.
Definition at line 2650 of file class.assQuestion.php.
Referenced by _setReachedPoints(), and ilObjTest\getTextAnswer().
assQuestion::_getSuggestedSolution | ( | int | $question_id, |
int | $subquestion_index = 0 |
||
) |
Definition at line 753 of file class.assQuestion.php.
References loadSuggestedSolution().
|
static |
Definition at line 688 of file class.assQuestion.php.
|
static |
ilWACException |
Definition at line 705 of file class.assQuestion.php.
Referenced by ilTestScoringByQuestionsGUI\getAnswerDetail(), and ilObjTest\getTestResult().
|
static |
Definition at line 1704 of file class.assQuestion.php.
Referenced by ilLMMailNotification\send().
|
static |
Definition at line 1666 of file class.assQuestion.php.
References $DIC, $ilDB, and ILIAS\LTI\ToolProvider\$key.
Referenced by ilQuestionCumulatedStatisticsTableGUI\initData().
|
static |
Definition at line 3184 of file class.assQuestion.php.
Referenced by assQuestionGUI\_getQuestionGUI(), ilObjQuestionPool\createQuestion(), ilObjTest\createQuestionGUI(), ilQTIParser\handlerParseEndTag(), instantiateQuestion(), instantiateQuestionGUI(), and ilObjTest\isQuestionObligationPossible().
|
static |
ILIAS 9
Definition at line 2588 of file class.assQuestion.php.
Referenced by ilFixMissingQuestionDuplicationMigration\step().
|
static |
ILIAS 9
Definition at line 3232 of file class.assQuestion.php.
|
static |
Definition at line 2596 of file class.assQuestion.php.
Referenced by ilTestExport\exportToExcel(), ilAssLacQuestionProvider\getQuestion(), ilTestPlayerAbstractGUI\getQuestionInstance(), ilTestExport\getQuestionQtiXml(), ilTestRandomQuestionSetPoolDeriver\getQuestionsForPool(), ilPageObject\newQuestionCopies(), ilAssIncompleteQuestionPurger\purgeQuestionIds(), ilTestScoringByQuestionsGUI\showManScoringByQuestionParticipantsTable(), ilTestRandomQuestionSetStagingPoolBuilder\stageQuestionsFromSourcePoolCheap(), and ilAssQuestionSkillAssignmentsGUI\syncOriginalCmd().
|
static |
Definition at line 2698 of file class.assQuestion.php.
References $DIC, $ilDB, and calculateReachedPoints().
Referenced by ilObjQuestionPool\getDeleteableQuestionDetails().
|
static |
Returns true if the question was worked through in the given pass Worked through means that the user entered at least one value.
Definition at line 2787 of file class.assQuestion.php.
Referenced by ilObjTest\getAnsweredQuestionCount(), ilTestOutputGUI\handleQuestionPostponing(), and ilTestOutputGUI\showQuestionCmd().
|
static |
Definition at line 2675 of file class.assQuestion.php.
References $DIC, $ilDB, ilObjQuestionPool\_isWriteable(), and ILIAS\Repository\int().
Referenced by ilAssQuestionFeedbackEditingGUI\isSyncAfterSaveRequired(), ilAssQuestionHintsGUI\performDeleteCmd(), assQuestionGUI\save(), assQuestionGUI\saveEdit(), ilAssQuestionHintGUI\saveFormCmd(), ilAssQuestionHintsGUI\saveListOrderCmd(), assQuestionGUI\saveReturn(), assFormulaQuestionGUI\saveReturnFQ(), and assQuestionGUI\suggestedsolution().
|
static |
Definition at line 3147 of file class.assQuestion.php.
References ilObjAssessmentFolder\_getManualScoringTypes(), and _getQuestionType().
Referenced by ilTestExpressPageObjectGUI\insertQuestions(), ilTestQuestionBrowserTableGUI\insertQuestionsCmd(), and ilObjTestGUI\insertQuestionsObject().
assQuestion::_questionExists | ( | $question_id | ) |
Returns true if the question already exists in the database.
integer | $question_id | The database id of the question |
Definition at line 2556 of file class.assQuestion.php.
assQuestion::_questionExistsInPool | ( | int | $question_id | ) |
Definition at line 2570 of file class.assQuestion.php.
|
static |
Definition at line 3327 of file class.assQuestion.php.
Referenced by assQuestionGUI\save(), assQuestionGUI\saveReturn(), and assFormulaQuestionGUI\saveReturnFQ().
assQuestion::_resolveInternalLink | ( | string | $internal_link | ) |
Definition at line 2368 of file class.assQuestion.php.
References ilInternalLink\_getIdForImportId(), and ilLMObject\_getIdForImportId().
Referenced by _resolveIntLinks(), and setSuggestedSolution().
assQuestion::_resolveIntLinks | ( | int | $question_id | ) |
Definition at line 2397 of file class.assQuestion.php.
References ilInternalLink\_deleteAllLinksOfSource(), _resolveInternalLink(), and ilInternalLink\_saveLink().
Referenced by ilQuestionPageParser\processPagesToParse().
|
static |
Sets the points, a learner has reached answering the question Additionally objective results are updated.
integer | $user_id | The database ID of the learner |
integer | $test_id | The database Id of the test containing the question |
integer | $points | The points the user has reached answering the question |
Definition at line 2919 of file class.assQuestion.php.
References $DIC, Vendor\Package\$e, $ilDB, $ilUser, $points, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), ilObjTestAccess\_getParticipantData(), _getSolutionMaxPass(), ilObjTest\_getUserIdFromActiveId(), ilCourseObjectiveResult\_updateObjectiveResult(), logAction(), and ilLanguage\txtlng().
Referenced by assFileUpload\handleSubmission(), ilTestScoring\recalculatePass(), ilTestScoringGUI\saveManScoringParticipantScreen(), and ilTestScoringByQuestionsGUI\showManScoringByQuestionParticipantsTable().
|
static |
Move this to a proper place.
Definition at line 994 of file class.assQuestion.php.
References $data, $DIC, $ilDB, $query, $res, ilObjTest\_getQuestionCountAndPointsForPassOfParticipant(), ilObjTest\_getResultPass(), ilObjTest\_getWorkingTimeOfParticipantForPass(), ilObjTest\buildExamId(), and ILIAS\Repository\int().
Referenced by ilObjTestAccess\_getPassedUsers(), ilObjTestAccess\_isPassed(), ilObjTest\getResultsForActiveId(), ilTestScoring\recalculateSolution(), ilTestScoring\recalculateSolutions(), ilTestEvaluationGUI\redirectToPassDeletionContext(), ilTestScoring\updatePassAndTestResults(), and ilObjTestAccess\updateTestResultCache().
assQuestion::addAnswerOptionValue | ( | int | $qIndex, |
string | $answerOptionValue, | ||
float | $points | ||
) |
Definition at line 4009 of file class.assQuestion.php.
assQuestion::addQTIMaterial | ( | ilXmlWriter | $a_xml_writer, |
string | $a_material, | ||
bool | $close_material_tag = true , |
||
bool | $add_mobs = true |
||
) |
Definition at line 2863 of file class.assQuestion.php.
References $mobs, ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilRTE\_replaceMediaObjectImageSrc(), getId(), IL_INST_ID, isHTML(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
|
final |
Adjust the given reached points by checks for all special scoring options in the test container.
public
integer | $points | |
integer | $active_id | |
integer | $pass |
Definition at line 2766 of file class.assQuestion.php.
References $points, ilObjTest\_getCountSystem(), ilObjTest\_getScoreCutting(), and getMaximumPoints().
Referenced by calculateResultsFromSolution(), and getAdjustedReachedPoints().
|
protected |
Definition at line 2118 of file class.assQuestion.php.
Referenced by syncWithOriginal().
assQuestion::areObligationsToBeConsidered | ( | ) |
Definition at line 4174 of file class.assQuestion.php.
References $obligationsToBeConsidered.
Referenced by resetUsersAnswer().
assQuestion::authorizedOrIntermediateSolutionExists | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 3943 of file class.assQuestion.php.
References lookupForExistingSolutions().
assQuestion::authorizedSolutionExists | ( | int | $active_id, |
?int | $pass | ||
) |
Definition at line 3934 of file class.assQuestion.php.
References lookupForExistingSolutions().
|
protected |
Definition at line 2114 of file class.assQuestion.php.
Referenced by syncWithOriginal().
assQuestion::buildHashedImageFilename | ( | string | $plain_image_filename, |
bool | $unique = false |
||
) |
Definition at line 2894 of file class.assQuestion.php.
Referenced by assKprimChoice\handleFileUpload(), assOrderingQuestion\storeImageFile(), and assOrderingQuestion\updateImageFile().
assQuestion::buildImagePath | ( | $questionId, | |
$parentObjectId | |||
) |
Definition at line 1257 of file class.assQuestion.php.
References CLIENT_WEB_DIR.
Referenced by assKprimChoice\afterSyncWithOriginal(), assSingleChoice\afterSyncWithOriginal(), assMatchingQuestion\afterSyncWithOriginal(), and getImagePath().
|
protected |
Definition at line 3598 of file class.assQuestion.php.
Referenced by assKprimChoice\loadFromDb().
|
protected |
build basic test question configuration instance
method can be overwritten to configure an instance use parent call for building when possible
Definition at line 4216 of file class.assQuestion.php.
Referenced by getTestPresentationConfig().
|
abstract |
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 !!) |
Referenced by _isUsedInRandomTest(), assNumeric\calculateReachedPointsFromPreviewSession(), calculateResultsFromSolution(), getAdjustedReachedPoints(), and assNumeric\getExpressionTypes().
assQuestion::calculateReachedPointsFromPreviewSession | ( | ilAssQuestionPreviewSession | $previewSession | ) |
Definition at line 2735 of file class.assQuestion.php.
References deductHintPointsFromReachedPoints(), ensureNonNegativePoints(), and ilAssQuestionPreviewSession\getParticipantsSolution().
Referenced by isPreviewSolutionCorrect().
|
final |
Calculates the question results from a previously saved question solution.
Definition at line 841 of file class.assQuestion.php.
References $DIC, $ilDB, $ilUser, $query, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), ilCourseObjectiveResult\_updateObjectiveResult(), adjustReachedPointsByScoringOptions(), calculateReachedPoints(), getId(), getProcessLocker(), getStep(), isAnswered(), ilObjTest\isQuestionObligatory(), ILIAS\Repository\lng(), logAction(), and lookupForExistingSolutions().
Referenced by persistWorkingState().
assQuestion::cleanupMediaObjectUsage | ( | ) |
Definition at line 3103 of file class.assQuestion.php.
References ilRTE\_cleanupMediaObjectUsage(), getId(), and getRTETextWithMediaObjects().
Referenced by saveToDb(), and updateSuggestedSolutions().
|
static |
Definition at line 3908 of file class.assQuestion.php.
References ILIAS\Repository\int().
assQuestion::copyPageOfQuestion | ( | int | $a_q_id | ) |
Definition at line 1786 of file class.assQuestion.php.
Referenced by syncWithOriginal().
|
protected |
Definition at line 2261 of file class.assQuestion.php.
References $filename, $index, getSuggestedSolutionPath(), and ilFileUtils\makeDirParents().
Referenced by onCopy().
assQuestion::copyXHTMLMediaObjectsOfQuestion | ( | int | $a_q_id | ) |
Definition at line 1758 of file class.assQuestion.php.
References $mobs, ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_saveUsage(), and getId().
assQuestion::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.
Definition at line 1961 of file class.assQuestion.php.
References $current_user, $ilUser, ilObject\_lookupObjId(), createPageObject(), getAdditionalContentEditingMode(), getAuthor(), getDefaultNrOfTries(), getExternalId(), getId(), getObjId(), getQuestionTypeID(), and setId().
assQuestion::createPageObject | ( | ) |
Definition at line 1774 of file class.assQuestion.php.
References getId(), and getObjId().
Referenced by createNewQuestion(), saveQuestionDataToDb(), and syncWithOriginal().
assQuestion::deductHintPointsFromReachedPoints | ( | ilAssQuestionPreviewSession | $previewSession, |
$reachedPoints | |||
) |
Definition at line 2724 of file class.assQuestion.php.
References $DIC, and ilAssQuestionPreviewHintTracking\getRequestStatisticData().
Referenced by assNumeric\calculateReachedPointsFromPreviewSession(), assErrorText\calculateReachedPointsFromPreviewSession(), assFlashQuestion\calculateReachedPointsFromPreviewSession(), assSingleChoice\calculateReachedPointsFromPreviewSession(), assOrderingQuestion\calculateReachedPointsFromPreviewSession(), assImagemapQuestion\calculateReachedPointsFromPreviewSession(), assFormulaQuestion\calculateReachedPointsFromPreviewSession(), assClozeTest\calculateReachedPointsFromPreviewSession(), and calculateReachedPointsFromPreviewSession().
assQuestion::delete | ( | int | $question_id | ) |
Definition at line 1510 of file class.assQuestion.php.
References Vendor\Package\$e, $mobs, ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_removeUsage(), ilObjQuestionPool\_updateQuestionCount(), CLIENT_WEB_DIR, ilFileUtils\delDir(), deleteAdditionalTableData(), deleteAnswers(), ilAssQuestionHintList\deleteHintsByQuestionIds(), deletePageOfQuestion(), deleteTaxonomyAssignments(), getObjId(), isAdditionalContentEditingModePageObject(), and ilSkillUsage\setUsage().
assQuestion::deleteAdditionalTableData | ( | int | $question_id | ) |
Definition at line 1483 of file class.assQuestion.php.
References getAdditionalTableName().
Referenced by delete().
assQuestion::deleteAnswers | ( | int | $question_id | ) |
Definition at line 1464 of file class.assQuestion.php.
References getAnswerTableName().
Referenced by delete().
|
protected |
Definition at line 3808 of file class.assQuestion.php.
References getSolutionValues(), and removeSolutionRecordById().
Referenced by assFileUpload\saveWorkingData(), and assImagemapQuestion\saveWorkingData().
|
protected |
Definition at line 1502 of file class.assQuestion.php.
References $page, and ilPageObject\_exists().
Referenced by delete(), and syncWithOriginal().
|
protected |
Definition at line 3822 of file class.assQuestion.php.
References $query, getId(), and getStep().
Referenced by assImagemapQuestion\saveWorkingData().
assQuestion::deleteSuggestedSolutions | ( | ) |
Definition at line 2137 of file class.assQuestion.php.
References ilInternalLink\_deleteAllLinksOfSource(), ilFileUtils\delDir(), getId(), and getSuggestedSolutionPath().
|
private |
Definition at line 1635 of file class.assQuestion.php.
References getId(), getObjId(), and ilObjTaxonomy\getUsageOfObject().
Referenced by delete().
|
abstract |
|
protected |
Definition at line 3862 of file class.assQuestion.php.
References getSolutionValues(), and saveCurrentSolution().
Referenced by forceExistingIntermediateSolution().
|
protected |
Definition at line 3431 of file class.assQuestion.php.
References ilAssQuestionHintList\duplicateListForQuestion(), ensureHintPageObjectExists(), getId(), and isAdditionalContentEditingModePageObject().
Referenced by onCopy(), and onDuplicate().
|
protected |
Definition at line 3450 of file class.assQuestion.php.
References ilSkillUsage\setUsage().
Referenced by onCopy(), onDuplicate(), and syncSkillAssignments().
|
protected |
Duplicates the files of a suggested solution if the question is duplicated.
Definition at line 2206 of file class.assQuestion.php.
References $filename, $index, getSuggestedSolutionPath(), and ilFileUtils\makeDirParents().
Referenced by onDuplicate().
|
protected |
Definition at line 321 of file class.assQuestion.php.
References lookupCurrentTestPass().
Referenced by assFileUpload\saveWorkingData().
assQuestion::ensureHintPageObjectExists | ( | $pageObjectId | ) |
Definition at line 3495 of file class.assQuestion.php.
References ilPageObject\_exists(), and getId().
Referenced by duplicateQuestionHints().
|
protected |
Definition at line 2743 of file class.assQuestion.php.
References $points.
Referenced by assNumeric\calculateReachedPointsFromPreviewSession(), assErrorText\calculateReachedPointsFromPreviewSession(), assFlashQuestion\calculateReachedPointsFromPreviewSession(), assSingleChoice\calculateReachedPointsFromPreviewSession(), assOrderingQuestion\calculateReachedPointsFromPreviewSession(), assImagemapQuestion\calculateReachedPointsFromPreviewSession(), assFormulaQuestion\calculateReachedPointsFromPreviewSession(), assClozeTest\calculateReachedPointsFromPreviewSession(), and calculateReachedPointsFromPreviewSession().
|
static |
Definition at line 3803 of file class.assQuestion.php.
References KEY_VALUES_IMPLOSION_SEPARATOR.
Referenced by assImagemapQuestion\getReuseSolutionSelectionParameter().
|
static |
Trim non-printable characters from the beginning and end of a string.
Note: The PHP trim() function is not fully Unicode-compatible and may not handle non-printable characters effectively. As a result, it may not trim certain Unicode characters, such as control characters, zero width characters or ideographic space as expected.
This method provides a workaround for trimming non-printable characters until PHP 8.4, where the mb_trim() function is introduced. Users are encouraged to migrate to mb_trim() for proper Unicode and non-printable character handling.
string | $value | The string to trim. |
Definition at line 4254 of file class.assQuestion.php.
Referenced by assTextSubset\getSolutionSubmit(), and assTextSubsetGUI\writeAnswerSpecificPostData().
assQuestion::fetchIndexedValuesFromValuePairs | ( | array | $valuePairs | ) |
Definition at line 4163 of file class.assQuestion.php.
Referenced by assOrderingQuestion\calculateReachedPoints(), assOrderingQuestion\getOrderingElementListForSolutionOutput(), and assOrderingQuestion\getSolutionOrderingElementListForTestOutput().
|
static |
Definition at line 253 of file class.assQuestion.php.
Referenced by ilQtiMatImageSecurity\validateContent().
assQuestion::fetchValuePairsFromIndexedValues | ( | array | $indexedValues | ) |
Definition at line 4152 of file class.assQuestion.php.
assQuestion::fixSvgToPng | ( | string | $imageFilenameContainingString | ) |
Definition at line 1865 of file class.assQuestion.php.
Referenced by getSuggestedSolutionOutput().
assQuestion::fixUnavailableSkinImageSources | ( | string | $html | ) |
Definition at line 1872 of file class.assQuestion.php.
References ilUtil\getImagePath(), and ilFileUtils\removeTrailingPathSeparators().
Referenced by getSuggestedSolutionOutput().
|
protected |
Definition at line 3869 of file class.assQuestion.php.
References duplicateIntermediateSolutionAuthorized(), getSolutionValues(), saveCurrentSolution(), and updateCurrentSolutionsAuthorization().
Referenced by assFileUpload\saveWorkingData(), and assImagemapQuestion\saveWorkingData().
assQuestion::formatSAQuestion | ( | $a_q | ) |
Definition at line 3344 of file class.assQuestion.php.
References getSelfAssessmentFormatter().
Referenced by assOrderingHorizontal\toJSON(), assTextSubset\toJSON(), assTextQuestion\toJSON(), assLongMenu\toJSON(), assErrorText\toJSON(), assImagemapQuestion\toJSON(), assKprimChoice\toJSON(), assOrderingQuestion\toJSON(), assSingleChoice\toJSON(), assMultipleChoice\toJSON(), assMatchingQuestion\toJSON(), and assClozeTest\toJSON().
assQuestion::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.
object | $item | The QTI item object |
integer | $questionpool_id | The id of the parent questionpool |
integer | $tst_id | The id of the parent test if the question is part of a test |
object | $tst_object | A reference to the parent test object |
integer | $question_counter | A reference to a question counter to count the questions of an imported question pool |
array | $import_mapping | An array containing references to included ILIAS objects |
Definition at line 410 of file class.assQuestion.php.
References getQuestionType().
|
private |
Definition at line 282 of file class.assQuestion.php.
References IL_INST_ID.
Referenced by getExternalId().
assQuestion::getActiveUserData | ( | int | $active_id | ) |
Returns the user id and the test id for a given active id.
integer | $active_id | Active id for a test/user |
Definition at line 3164 of file class.assQuestion.php.
assQuestion::getAdditionalContentEditingMode | ( | ) |
Definition at line 3546 of file class.assQuestion.php.
References $additionalContentEditingMode.
Referenced by createNewQuestion(), isAdditionalContentEditingModePageObject(), assMultipleChoice\isForcedEmptySolution(), assSingleChoice\savePreviewData(), and saveQuestionDataToDb().
assQuestion::getAdditionalTableName | ( | ) |
Definition at line 1451 of file class.assQuestion.php.
Referenced by deleteAdditionalTableData().
|
final |
returns the reached points ...
Definition at line 824 of file class.assQuestion.php.
References adjustReachedPointsByScoringOptions(), calculateReachedPoints(), and getId().
|
static |
Definition at line 258 of file class.assQuestion.php.
|
static |
SlowArrayOperationsInLoopInspection
Definition at line 369 of file class.assQuestion.php.
Referenced by ilImageWizardInputGUI\__construct().
assQuestion::getAnswerTableName | ( | ) |
Definition at line 1459 of file class.assQuestion.php.
Referenced by deleteAnswers().
assQuestion::getAuthor | ( | ) |
Definition at line 598 of file class.assQuestion.php.
References $author.
Referenced by createNewQuestion(), assOrderingQuestion\isComplete(), assClozeTest\isComplete(), and saveQuestionDataToDb().
assQuestion::getAuthorForHTMLOutput | ( | ) |
Definition at line 603 of file class.assQuestion.php.
References ILIAS\Repository\refinery().
assQuestion::getComment | ( | ) |
Definition at line 543 of file class.assQuestion.php.
References $comment.
Referenced by saveQuestionDataToDb().
|
protected |
Definition at line 3620 of file class.assQuestion.php.
References $query, getId(), and getStep().
Referenced by assOrderingHorizontal\calculateReachedPoints(), assFileUpload\calculateReachedPoints(), assErrorText\calculateReachedPoints(), assFlashQuestion\calculateReachedPoints(), assKprimChoice\calculateReachedPoints(), assTextSubset\calculateReachedPoints(), assSingleChoice\calculateReachedPoints(), assMultipleChoice\calculateReachedPoints(), assTextQuestion\calculateReachedPoints(), assLongMenu\calculateReachedPoints(), assImagemapQuestion\calculateReachedPoints(), assMatchingQuestion\calculateReachedPoints(), assClozeTest\calculateReachedPoints(), assNumeric\calculateReachedPointsFromPreviewSession(), assNumeric\isValidSolutionSubmit(), and assSingleChoice\saveWorkingData().
assQuestion::getDefaultNrOfTries | ( | ) |
Definition at line 3400 of file class.assQuestion.php.
References $defaultnroftries.
Referenced by createNewQuestion().
assQuestion::getDescriptionForHTMLOutput | ( | ) |
Definition at line 548 of file class.assQuestion.php.
References ILIAS\UI\examples\Symbol\Glyph\Comment\comment(), and ILIAS\Repository\refinery().
assQuestion::getExternalId | ( | ) |
Definition at line 638 of file class.assQuestion.php.
References $external_id, generateExternalId(), and getId().
Referenced by createNewQuestion(), and saveQuestionDataToDb().
|
static |
Definition at line 3191 of file class.assQuestion.php.
Referenced by assQuestionGUI\_getQuestionGUI(), and ilObjTest\createQuestionGUI().
assQuestion::getFlashPath | ( | ) |
Returns the image path for web accessable flash files of a question.
The image path is under the CLIENT_WEB_DIR in assessment/REFERENCE_ID_OF_QUESTION_POOL/ID_OF_QUESTION/flash
Definition at line 1268 of file class.assQuestion.php.
References CLIENT_WEB_DIR.
Referenced by assFlashQuestion\copyApplet(), assFlashQuestion\deleteApplet(), assFlashQuestion\duplicateApplet(), assFlashQuestion\moveAppletIfExists(), and assFlashQuestion\moveUploadedFile().
assQuestion::getHtmlQuestionContentPurifier | ( | ) |
Definition at line 3593 of file class.assQuestion.php.
References ilHtmlPurifierFactory\getInstanceByType().
Referenced by assKprimChoice\addAnswer(), assSingleChoice\addAnswer(), assMultipleChoice\addAnswer(), assClozeTest\getClozeTextForHTMLOutput(), purifyAndPrepareTextAreaOutput(), assKprimChoice\setAnswers(), and assLongMenu\setLongMenuTextValue().
assQuestion::getHtmlUserSolutionPurifier | ( | ) |
Definition at line 3585 of file class.assQuestion.php.
References ilHtmlPurifierFactory\getInstanceByType().
Referenced by assTextQuestion\getSolutionSubmit(), and assTextSubset\getSolutionSubmit().
assQuestion::getId | ( | ) |
Definition at line 528 of file class.assQuestion.php.
References $id.
Referenced by ilQuestionCumulatedStatisticsTableGUI\__construct(), ilQuestionUsagesTableGUI\__construct(), ilAssQuestionHintsOrderingClipboard\__construct(), addQTIMaterial(), assLongMenu\buildFolderName(), assOrderingQuestion\buildNestedOrderingElementInputGui(), assClozeTest\calculateCombinationResult(), calculateResultsFromSolution(), cleanupMediaObjectUsage(), assOrderingHorizontal\copyObject(), assFileUpload\copyObject(), assImagemapQuestion\copyObject(), assOrderingQuestion\copyObject(), assTextSubset\copyObject(), assTextQuestion\copyObject(), assFlashQuestion\copyObject(), assErrorText\copyObject(), assSingleChoice\copyObject(), assMultipleChoice\copyObject(), assMatchingQuestion\copyObject(), assLongMenu\copyObject(), assFormulaQuestion\copyObject(), assKprimChoice\copyObject(), assClozeTest\copyObject(), copyXHTMLMediaObjectsOfQuestion(), assOrderingHorizontal\createNewOriginalFromThisDuplicate(), assNumeric\createNewOriginalFromThisDuplicate(), assFileUpload\createNewOriginalFromThisDuplicate(), assImagemapQuestion\createNewOriginalFromThisDuplicate(), assTextSubset\createNewOriginalFromThisDuplicate(), assOrderingQuestion\createNewOriginalFromThisDuplicate(), assTextQuestion\createNewOriginalFromThisDuplicate(), assFlashQuestion\createNewOriginalFromThisDuplicate(), assErrorText\createNewOriginalFromThisDuplicate(), assSingleChoice\createNewOriginalFromThisDuplicate(), assMultipleChoice\createNewOriginalFromThisDuplicate(), assMatchingQuestion\createNewOriginalFromThisDuplicate(), assLongMenu\createNewOriginalFromThisDuplicate(), assKprimChoice\createNewOriginalFromThisDuplicate(), assFormulaQuestion\createNewOriginalFromThisDuplicate(), assClozeTest\createNewOriginalFromThisDuplicate(), createNewQuestion(), createPageObject(), deleteSolutionRecordByValues(), deleteSuggestedSolutions(), deleteTaxonomyAssignments(), assOrderingHorizontal\duplicate(), assNumeric\duplicate(), assFileUpload\duplicate(), assOrderingQuestion\duplicate(), assImagemapQuestion\duplicate(), assTextSubset\duplicate(), assFlashQuestion\duplicate(), assTextQuestion\duplicate(), assErrorText\duplicate(), assSingleChoice\duplicate(), assMultipleChoice\duplicate(), assMatchingQuestion\duplicate(), assLongMenu\duplicate(), assFormulaQuestion\duplicate(), assKprimChoice\duplicate(), assClozeTest\duplicate(), assTextQuestion\duplicateAnswers(), duplicateQuestionHints(), ensureHintPageObjectExists(), assOrderingQuestion\fetchSolutionListFromFormSubmissionData(), assMatchingQuestion\fetchSubmittedMatchingsFromPost(), getAdjustedReachedPoints(), assErrorText\getAnswersFromRequest(), assLongMenu\getCorrectAnswersAsJson(), getCurrentSolutionResultSet(), assErrorText\getErrorDataAsArrayForJS(), assNumeric\getExpressionTypes(), assOrderingHorizontal\getExpressionTypes(), assTextSubset\getExpressionTypes(), assImagemapQuestion\getExpressionTypes(), assSingleChoice\getExpressionTypes(), assOrderingQuestion\getExpressionTypes(), assFormulaQuestion\getExpressionTypes(), assMultipleChoice\getExpressionTypes(), assMatchingQuestion\getExpressionTypes(), assClozeTest\getExpressionTypes(), getExternalId(), assFileUpload\getFileUploadPath(), assFileUpload\getFileUploadPathWeb(), getInstances(), assTextQuestion\getLatestAutosaveContent(), assClozeTest\getMaximumPoints(), assOrderingQuestion\getOrderingElementList(), assErrorText\getParsedErrorTextForJS(), getReachedPoints(), assImagemapQuestion\getRTETextWithMediaObjects(), assSingleChoice\getRTETextWithMediaObjects(), assMultipleChoice\getRTETextWithMediaObjects(), getRTETextWithMediaObjects(), getSolutionMaxPass(), assOrderingQuestion\getSolutionOrderingElementList(), assTextQuestion\getSolutionSubmit(), getSolutionValues(), assFileUpload\getUploadedFiles(), assErrorText\getUserQuestionResult(), assFileUpload\handleSubmission(), assFileUpload\hasFileUploads(), assKprimChoice\isAnswered(), assTextQuestion\isAnswered(), assFileUpload\isAnswered(), assSingleChoice\isAnswered(), assMultipleChoice\isAnswered(), assSingleChoice\isComplete(), assKprimChoice\isComplete(), assMultipleChoice\isForcedEmptySolution(), assNumeric\isValidSolutionSubmit(), assTextQuestion\loadFromDb(), loadFromDb(), log(), logAction(), assErrorText\logUserAction(), assLongMenu\lookupForExistingSolutions(), assFormulaQuestion\lookupForExistingSolutions(), lookupForExistingSolutions(), lookupMaxStep(), migrateContentForLearningModule(), ilAssNestedOrderingElementsInputGUI\prepareReprintable(), removeAllExistingSolutions(), removeCurrentSolution(), assFormulaQuestion\removeExistingSolutions(), removeExistingSolutions(), removeResultRecord(), ilAssOrderingQuestionAuthoringFormGUI\renewOrderingElementInput(), assFlashQuestion\saveAdditionalQuestionDataToDb(), assFileUpload\saveAdditionalQuestionDataToDb(), assErrorText\saveAdditionalQuestionDataToDb(), assImagemapQuestion\saveAdditionalQuestionDataToDb(), assMatchingQuestion\saveAdditionalQuestionDataToDb(), assLongMenu\saveAdditionalQuestionDataToDb(), assKprimChoice\saveAdditionalQuestionDataToDb(), assClozeTest\saveAdditionalQuestionDataToDb(), assOrderingHorizontal\saveAdditionalQuestionDataToDb(), assErrorText\saveAnswerSpecificDataToDb(), assImagemapQuestion\saveAnswerSpecificDataToDb(), assMatchingQuestion\saveAnswerSpecificDataToDb(), assLongMenu\saveAnswerSpecificDataToDb(), assClozeTest\saveAnswerSpecificDataToDb(), assKprimChoice\saveAnswerSpecificDataToDb(), assClozeTest\saveClozeNumericGapRecordToDb(), assClozeTest\saveClozeSelectGapRecordToDb(), assClozeTest\saveClozeTextGapRecordToDb(), saveCurrentSolution(), assNumeric\savePreviewData(), assSingleChoice\savePreviewData(), assOrderingQuestion\savePreviewData(), saveQuestionDataToDb(), assMultipleChoice\saveToDb(), assFormulaQuestion\saveToDb(), saveToDb(), assOrderingHorizontal\saveWorkingData(), assTextSubset\saveWorkingData(), assSingleChoice\saveWorkingData(), assTextQuestion\saveWorkingData(), assLongMenu\saveWorkingData(), assFileUpload\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assFormulaQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), assClozeTest\saveWorkingData(), assFormulaQuestion\setId(), setNewOriginalId(), assOrderingQuestion\setOrderingElementList(), assTextQuestion\setReachedPoints(), syncHints(), syncWithOriginal(), syncXHTMLMediaObjectsOfQuestion(), assOrderingHorizontal\toJSON(), assTextSubset\toJSON(), assTextQuestion\toJSON(), assLongMenu\toJSON(), assErrorText\toJSON(), assImagemapQuestion\toJSON(), assKprimChoice\toJSON(), assOrderingQuestion\toJSON(), assSingleChoice\toJSON(), assMultipleChoice\toJSON(), assMatchingQuestion\toJSON(), assClozeTest\toJSON(), updateCurrentSolutionsAuthorization(), ilLOTestQuestionAdapter\updateQuestionResult(), updateSuggestedSolutions(), updateTimestamp(), and usageNumber().
assQuestion::getImagePath | ( | $question_id = null , |
|
$object_id = null |
|||
) |
Returns the image path for web accessable images of a question.
The image path is under the CLIENT_WEB_DIR in assessment/REFERENCE_ID_OF_QUESTION_POOL/ID_OF_QUESTION/images
Definition at line 1244 of file class.assQuestion.php.
References $id, $obj_id, and buildImagePath().
Referenced by assOrderingQuestion\buildOrderingImagesFormDataConverter(), assOrderingQuestion\cleanImagefiles(), assImagemapQuestion\copyImage(), assOrderingQuestion\copyImages(), assMatchingQuestion\copyImages(), assMultipleChoice\copyImages(), assImagemapQuestion\deleteImage(), assSingleChoice\deleteImage(), assMultipleChoice\deleteImage(), assMatchingQuestion\deleteImagefile(), assOrderingQuestion\dropImageFile(), assImagemapQuestion\duplicateImage(), assOrderingQuestion\duplicateImages(), assMatchingQuestion\duplicateImages(), assSingleChoice\duplicateImages(), assOrderingQuestion\ensureImagePathExists(), assKprimChoice\handleFileUpload(), assMultipleChoice\isForcedEmptySolution(), assOrderingQuestion\isImageFileStored(), assKprimChoice\loadAnswerData(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assSingleChoice\rebuildThumbnails(), assMultipleChoice\rebuildThumbnails(), assOrderingQuestion\rebuildThumbnails(), assMatchingQuestion\rebuildThumbnails(), assSingleChoice\savePreviewData(), assMatchingQuestion\setExportDetailsXLS(), assSingleChoice\setImageFile(), assMultipleChoice\setImageFile(), assMatchingQuestion\setImageFile(), assImagemapQuestion\setImageFilename(), assOrderingQuestion\storeImageFile(), assSingleChoice\syncImages(), assMultipleChoice\syncImages(), and assOrderingQuestion\updateImageFile().
assQuestion::getImagePathWeb | ( | ) |
Returns the web image path for web accessable images of a question.
The image path is under the web accessable data dir in assessment/REFERENCE_ID_OF_QUESTION_POOL/ID_OF_QUESTION/images TODO: in use? refactor and ask for a supported path in all cases, not for THE dynamic highlander path ^^
Definition at line 1288 of file class.assQuestion.php.
References $export_image_path, CLIENT_WEB_DIR, and ilFileUtils\removeTrailingPathSeparators().
Referenced by assOrderingQuestion\buildNestedOrderingElementInputGui(), assOrderingQuestion\buildNestedOrderingFormDataConverter(), assOrderingQuestion\buildOrderingImagesFormDataConverter(), assKprimChoice\loadAnswerData(), assImagemapQuestion\toJSON(), assKprimChoice\toJSON(), assOrderingQuestion\toJSON(), assSingleChoice\toJSON(), and assMultipleChoice\toJSON().
assQuestion::getInstances | ( | ) |
Definition at line 3109 of file class.assQuestion.php.
References ILIAS\LTI\ToolProvider\$key, ilObject\_getAllReferences(), ilObjTest\_lookupAuthor(), ilObject\_lookupTitle(), and getId().
assQuestion::getLastChange | ( | ) |
assQuestion::getLifecycle | ( | ) |
Definition at line 623 of file class.assQuestion.php.
References $lifecycle.
Referenced by saveToDb().
assQuestion::getMaximumPoints | ( | ) |
Definition at line 812 of file class.assQuestion.php.
References $points.
Referenced by adjustReachedPointsByScoringOptions(), isPreviewSolutionCorrect(), and saveQuestionDataToDb().
assQuestion::getMaximumThumbSize | ( | ) |
Definition at line 572 of file class.assQuestion.php.
assQuestion::getMinimumThumbSize | ( | ) |
Definition at line 567 of file class.assQuestion.php.
Referenced by assOrderingQuestion\loadFromDb(), assSingleChoice\loadFromDb(), and assMultipleChoice\loadFromDb().
assQuestion::getNrOfTries | ( | ) |
Definition at line 3312 of file class.assQuestion.php.
References $nr_of_tries.
Referenced by saveQuestionDataToDb(), assOrderingHorizontal\toJSON(), assTextSubset\toJSON(), assTextQuestion\toJSON(), assLongMenu\toJSON(), assErrorText\toJSON(), assImagemapQuestion\toJSON(), assKprimChoice\toJSON(), assOrderingQuestion\toJSON(), assSingleChoice\toJSON(), assMultipleChoice\toJSON(), assMatchingQuestion\toJSON(), and assClozeTest\toJSON().
|
staticprotected |
Definition at line 3520 of file class.assQuestion.php.
References $DIC, $ilDB, $query, and $res.
Referenced by assKprimChoice\isAnswered(), assTextQuestion\isAnswered(), assFileUpload\isAnswered(), assSingleChoice\isAnswered(), and assMultipleChoice\isAnswered().
assQuestion::getObjId | ( | ) |
Definition at line 613 of file class.assQuestion.php.
References $obj_id.
Referenced by assOrderingHorizontal\copyObject(), assNumeric\copyObject(), assFileUpload\copyObject(), assImagemapQuestion\copyObject(), assOrderingQuestion\copyObject(), assTextSubset\copyObject(), assTextQuestion\copyObject(), assFlashQuestion\copyObject(), assErrorText\copyObject(), assSingleChoice\copyObject(), assMultipleChoice\copyObject(), assMatchingQuestion\copyObject(), assLongMenu\copyObject(), assFormulaQuestion\copyObject(), assKprimChoice\copyObject(), assClozeTest\copyObject(), assOrderingHorizontal\createNewOriginalFromThisDuplicate(), assNumeric\createNewOriginalFromThisDuplicate(), assFileUpload\createNewOriginalFromThisDuplicate(), assImagemapQuestion\createNewOriginalFromThisDuplicate(), assTextSubset\createNewOriginalFromThisDuplicate(), assOrderingQuestion\createNewOriginalFromThisDuplicate(), assTextQuestion\createNewOriginalFromThisDuplicate(), assFlashQuestion\createNewOriginalFromThisDuplicate(), assErrorText\createNewOriginalFromThisDuplicate(), assSingleChoice\createNewOriginalFromThisDuplicate(), assMultipleChoice\createNewOriginalFromThisDuplicate(), assMatchingQuestion\createNewOriginalFromThisDuplicate(), assLongMenu\createNewOriginalFromThisDuplicate(), assKprimChoice\createNewOriginalFromThisDuplicate(), assFormulaQuestion\createNewOriginalFromThisDuplicate(), assClozeTest\createNewOriginalFromThisDuplicate(), createNewQuestion(), createPageObject(), delete(), deleteTaxonomyAssignments(), assOrderingHorizontal\duplicate(), assNumeric\duplicate(), assFileUpload\duplicate(), assOrderingQuestion\duplicate(), assImagemapQuestion\duplicate(), assTextSubset\duplicate(), assFlashQuestion\duplicate(), assTextQuestion\duplicate(), assErrorText\duplicate(), assSingleChoice\duplicate(), assMultipleChoice\duplicate(), assMatchingQuestion\duplicate(), assLongMenu\duplicate(), assFormulaQuestion\duplicate(), assKprimChoice\duplicate(), assClozeTest\duplicate(), isInActiveTest(), saveQuestionDataToDb(), and syncWithOriginal().
assQuestion::getOriginalId | ( | ) |
Definition at line 1851 of file class.assQuestion.php.
References $original_id.
Referenced by assSingleChoice\syncImages(), assMultipleChoice\syncImages(), assImagemapQuestion\syncWithOriginal(), assMultipleChoice\syncWithOriginal(), and syncWithOriginal().
assQuestion::getOutputType | ( | ) |
Definition at line 578 of file class.assQuestion.php.
References $outputType.
assQuestion::getOwner | ( | ) |
Definition at line 608 of file class.assQuestion.php.
References $owner.
Referenced by saveQuestionDataToDb(), and saveToDb().
assQuestion::getPageOfQuestion | ( | ) |
Definition at line 1797 of file class.assQuestion.php.
References $page.
assQuestion::getPoints | ( | ) |
Definition at line 2628 of file class.assQuestion.php.
References $points.
Referenced by assFileUpload\calculateReachedPoints(), assFileUpload\calculateReachedPointsForSolution(), assKprimChoice\calculateReachedPointsForSolution(), assOrderingHorizontal\calculateReachedPointsForSolution(), assOrderingQuestion\calculateReachedPointsForSolution(), assNumeric\calculateReachedPointsFromPreviewSession(), assOrderingHorizontal\getMaximumPoints(), assFileUpload\getMaximumPoints(), assNumeric\getMaximumPoints(), assOrderingQuestion\getMaximumPoints(), assTextSubset\isAnswerCorrect(), assLongMenu\isComplete(), assNumeric\savePreviewData(), assTextQuestion\setReachedPoints(), assOrderingHorizontal\toJSON(), and assOrderingQuestion\toJSON().
assQuestion::getPreventRteUsage | ( | ) |
assQuestion::getProcessLocker | ( | ) |
Definition at line 395 of file class.assQuestion.php.
References $processLocker.
Referenced by calculateResultsFromSolution(), assKprimChoice\isComplete(), assMultipleChoice\isForcedEmptySolution(), assNumeric\isValidSolutionSubmit(), persistWorkingState(), removeIntermediateSolution(), resetUsersAnswer(), assOrderingHorizontal\saveWorkingData(), assErrorText\saveWorkingData(), assTextSubset\saveWorkingData(), assSingleChoice\saveWorkingData(), assTextQuestion\saveWorkingData(), assLongMenu\saveWorkingData(), assFileUpload\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assOrderingQuestion\saveWorkingData(), assFormulaQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), and assClozeTest\saveWorkingData().
assQuestion::getQuestion | ( | ) |
Definition at line 2996 of file class.assQuestion.php.
References $question.
Referenced by assFormulaQuestion\checkForDuplicateResults(), assFormulaQuestion\checkForDuplicateVariables(), assFormulaQuestion\getInitialVariableSolutionValues(), getRTETextWithMediaObjects(), assFormulaQuestion\hasRequiredVariableSolutionValues(), assOrderingQuestion\isComplete(), assFormulaQuestion\parseQuestionText(), saveQuestionDataToDb(), assFormulaQuestion\substituteVariables(), assOrderingHorizontal\toJSON(), assTextSubset\toJSON(), assTextQuestion\toJSON(), assLongMenu\toJSON(), assErrorText\toJSON(), assImagemapQuestion\toJSON(), assKprimChoice\toJSON(), assOrderingQuestion\toJSON(), assSingleChoice\toJSON(), assMultipleChoice\toJSON(), assMatchingQuestion\toJSON(), and assClozeTest\toJSON().
|
protected |
Definition at line 291 of file class.assQuestion.php.
Referenced by assFileUpload\isFileDeletionAction().
assQuestion::getQuestionForHTMLOutput | ( | ) |
Definition at line 3001 of file class.assQuestion.php.
References purifyAndPrepareTextAreaOutput().
|
static |
Definition at line 4099 of file class.assQuestion.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilTestOutputGUI\handlePrimaryButton().
|
abstract |
Returns the question type of the question.
Referenced by fromXML(), getQuestionTypeID(), setExportDetailsXLS(), setQuestion(), and toXML().
|
static |
Definition at line 1434 of file class.assQuestion.php.
References $data, $DIC, and $ilDB.
Referenced by assQuestionGUI\_getGUIClassNameForId(), and assQuestionGUI\_getQuestionGUI().
assQuestion::getQuestionTypeID | ( | ) |
Definition at line 3032 of file class.assQuestion.php.
References getQuestionType().
Referenced by createNewQuestion(), and saveQuestionDataToDb().
assQuestion::getReachedPoints | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 807 of file class.assQuestion.php.
References getId().
Referenced by ilLOTestQuestionAdapter\updateQuestionResult().
|
protected |
Definition at line 3080 of file class.assQuestion.php.
References getId(), ilAssQuestionHintList\getListByQuestionId(), and getQuestion().
Referenced by cleanupMediaObjectUsage().
assQuestion::getSelfAssessmentEditingMode | ( | ) |
Definition at line 3390 of file class.assQuestion.php.
References $selfassessmenteditingmode.
Referenced by ilAssQuestionAuthoringFormGUI\addGenericAssessmentQuestionCommandButtons().
|
protected |
Definition at line 3349 of file class.assQuestion.php.
Referenced by formatSAQuestion().
assQuestion::getShuffle | ( | ) |
Definition at line 533 of file class.assQuestion.php.
References $shuffle.
Referenced by assMultipleChoice\isForcedEmptySolution(), assSingleChoice\savePreviewData(), assTextQuestion\toJSON(), assLongMenu\toJSON(), assErrorText\toJSON(), assImagemapQuestion\toJSON(), assSingleChoice\toJSON(), assMultipleChoice\toJSON(), and assClozeTest\toJSON().
assQuestion::getShuffler | ( | ) |
Definition at line 380 of file class.assQuestion.php.
References $shuffler.
Referenced by assOrderingHorizontal\getRandomOrderingElements(), assOrderingQuestion\getShuffledOrderingElementList(), assOrderingQuestion\toJSON(), and assMatchingQuestion\toJSON().
assQuestion::getSolutionMaxPass | ( | int | $active_id | ) |
Definition at line 2642 of file class.assQuestion.php.
References getId().
Referenced by assOrderingHorizontal\calculateReachedPoints(), assFileUpload\calculateReachedPoints(), assErrorText\calculateReachedPoints(), assFlashQuestion\calculateReachedPoints(), assKprimChoice\calculateReachedPoints(), assTextSubset\calculateReachedPoints(), assSingleChoice\calculateReachedPoints(), assMultipleChoice\calculateReachedPoints(), assTextQuestion\calculateReachedPoints(), assLongMenu\calculateReachedPoints(), assOrderingQuestion\calculateReachedPoints(), assImagemapQuestion\calculateReachedPoints(), assFormulaQuestion\calculateReachedPoints(), assMatchingQuestion\calculateReachedPoints(), assClozeTest\calculateReachedPoints(), assNumeric\calculateReachedPointsFromPreviewSession(), getSolutionValues(), assFileUpload\getUploadedFiles(), and assTextQuestion\setReachedPoints().
|
protected |
Definition at line 3669 of file class.assQuestion.php.
Referenced by assFileUpload\saveWorkingData().
assQuestion::getSolutionValues | ( | $active_id, | |
$pass = null , |
|||
bool | $authorized = true |
||
) |
Loads solutions of a given user from the database an returns it.
int | string | $active_id |
Definition at line 1327 of file class.assQuestion.php.
References $query, getId(), getSolutionMaxPass(), and getStep().
Referenced by assOrderingQuestion\calculateReachedPoints(), assFormulaQuestion\calculateReachedPoints(), deleteDummySolutionRecord(), assFileUpload\deleteUploadedFiles(), duplicateIntermediateSolutionAuthorized(), forceExistingIntermediateSolution(), assOrderingQuestion\getOrderingElementListForSolutionOutput(), ilTestCorrectionsGUI\getSolutions(), getTestOutputSolutions(), assFileUpload\getUserSolutionPreferingIntermediate(), getUserSolutionPreferingIntermediate(), assOrderingHorizontal\setExportDetailsXLS(), assErrorText\setExportDetailsXLS(), assNumeric\setExportDetailsXLS(), assTextSubset\setExportDetailsXLS(), assLongMenu\setExportDetailsXLS(), assTextQuestion\setExportDetailsXLS(), assImagemapQuestion\setExportDetailsXLS(), assFileUpload\setExportDetailsXLS(), assOrderingQuestion\setExportDetailsXLS(), assKprimChoice\setExportDetailsXLS(), assSingleChoice\setExportDetailsXLS(), assMultipleChoice\setExportDetailsXLS(), assFormulaQuestion\setExportDetailsXLS(), assMatchingQuestion\setExportDetailsXLS(), and assClozeTest\setExportDetailsXLS().
assQuestion::getStep | ( | ) |
Definition at line 3903 of file class.assQuestion.php.
References $step.
Referenced by calculateResultsFromSolution(), deleteSolutionRecordByValues(), assFileUpload\deleteUploadedFiles(), getCurrentSolutionResultSet(), getSolutionValues(), assLongMenu\lookupForExistingSolutions(), assFormulaQuestion\lookupForExistingSolutions(), lookupForExistingSolutions(), removeCurrentSolution(), assFormulaQuestion\removeExistingSolutions(), removeExistingSolutions(), removeResultRecord(), saveCurrentSolution(), assFormulaQuestion\saveWorkingData(), updateCurrentSolution(), and updateCurrentSolutionsAuthorization().
assQuestion::getSuggestedSolution | ( | int | $subquestion_index = 0 | ) |
Returns a suggested solution for a given subquestion index.
Definition at line 2153 of file class.assQuestion.php.
assQuestion::getSuggestedSolutionOutput | ( | ) |
ilWACException |
Definition at line 718 of file class.assQuestion.php.
References _getInternalLinkHref(), fixSvgToPng(), fixUnavailableSkinImageSources(), getSuggestedSolutionPathWeb(), ILIAS\Repository\lng(), ilLegacyFormElementsUtil\prepareFormOutput(), prepareTextareaOutput(), ilWACSignedPath\setTokenMaxLifetimeInSeconds(), and ilWACSignedPath\signFile().
assQuestion::getSuggestedSolutionPath | ( | ) |
Definition at line 1234 of file class.assQuestion.php.
References CLIENT_WEB_DIR.
Referenced by copySuggestedSolutionFiles(), deleteSuggestedSolutions(), duplicateSuggestedSolutionFiles(), and syncSuggestedSolutionFiles().
assQuestion::getSuggestedSolutionPathWeb | ( | ) |
Definition at line 1273 of file class.assQuestion.php.
References CLIENT_WEB_DIR, and ilFileUtils\removeTrailingPathSeparators().
Referenced by getSuggestedSolutionOutput().
assQuestion::getSuggestedSolutions | ( | ) |
Definition at line 783 of file class.assQuestion.php.
References $suggested_solutions.
assQuestion::getSuggestedSolutionTitle | ( | int | $subquestion_index = 0 | ) |
Returns the title of a suggested solution at a given subquestion_index.
This can be usable for displaying suggested solutions
integer | $subquestion_index | The index of a subquestion (i.e. a close test gap). Usually 0 |
Definition at line 2168 of file class.assQuestion.php.
References $title.
assQuestion::getTestId | ( | ) |
Definition at line 538 of file class.assQuestion.php.
References $test_id.
Referenced by resetUsersAnswer().
assQuestion::getTestOutputSolutions | ( | int | $activeId, |
int | $pass | ||
) |
Definition at line 1302 of file class.assQuestion.php.
References getSolutionValues(), getTestPresentationConfig(), and getUserSolutionPreferingIntermediate().
Referenced by assOrderingQuestion\getSolutionOrderingElementListForTestOutput().
assQuestion::getTestPresentationConfig | ( | ) |
Definition at line 4201 of file class.assQuestion.php.
References $testQuestionConfigInstance, and buildTestPresentationConfig().
Referenced by getTestOutputSolutions(), ilTestPlayerAbstractGUI\initTestQuestionConfig(), assFileUpload\isFileReuseHandlingRequired(), and assImagemapQuestion\isReuseSolutionSelectionRequest().
assQuestion::getThumbSize | ( | ) |
Definition at line 553 of file class.assQuestion.php.
References $thumb_size.
Referenced by assSingleChoice\generateThumbForFile(), assMultipleChoice\generateThumbForFile(), assOrderingQuestion\generateThumbForFile(), assSingleChoice\isComplete(), assMultipleChoice\isForcedEmptySolution(), assSingleChoice\rebuildThumbnails(), assMultipleChoice\rebuildThumbnails(), assSingleChoice\savePreviewData(), assOrderingQuestion\savePreviewData(), assOrderingQuestion\setContentType(), assSingleChoice\setImageFile(), assMultipleChoice\setImageFile(), assOrderingQuestion\storeImageFile(), assSingleChoice\toJSON(), assMultipleChoice\toJSON(), and assOrderingQuestion\updateImageFile().
assQuestion::getTitle | ( | ) |
Definition at line 513 of file class.assQuestion.php.
References $title.
Referenced by getTitleFilenameCompliant(), assOrderingQuestion\isComplete(), assClozeTest\isComplete(), saveQuestionDataToDb(), and setExportDetailsXLS().
assQuestion::getTitleFilenameCompliant | ( | ) |
Definition at line 523 of file class.assQuestion.php.
References ilFileUtils\getASCIIFilename(), and getTitle().
assQuestion::getTitleForHTMLOutput | ( | ) |
Definition at line 518 of file class.assQuestion.php.
References ILIAS\Repository\refinery().
Referenced by ilAssQuestionHintsTableGUI\__construct(), assOrderingHorizontal\toJSON(), assTextSubset\toJSON(), assTextQuestion\toJSON(), assLongMenu\toJSON(), assErrorText\toJSON(), assImagemapQuestion\toJSON(), assKprimChoice\toJSON(), assOrderingQuestion\toJSON(), assSingleChoice\toJSON(), assMultipleChoice\toJSON(), assMatchingQuestion\toJSON(), and assClozeTest\toJSON().
assQuestion::getTotalAnswers | ( | ) |
Definition at line 1645 of file class.assQuestion.php.
assQuestion::getUserSolutionPreferingIntermediate | ( | int | $active_id, |
$pass = null |
|||
) |
Definition at line 1311 of file class.assQuestion.php.
References getSolutionValues().
Referenced by getTestOutputSolutions().
assQuestion::getValidAdditionalContentEditingModes | ( | ) |
Definition at line 3574 of file class.assQuestion.php.
Referenced by isValidAdditionalContentEditingMode(), and setAdditionalContentEditingMode().
assQuestion::hasSpecificFeedback | ( | ) |
Definition at line 3179 of file class.assQuestion.php.
|
static |
Definition at line 3798 of file class.assQuestion.php.
References KEY_VALUES_IMPLOSION_SEPARATOR.
Referenced by assImagemapQuestionGUI\buildSelectionParameter().
|
static |
Definition at line 3201 of file class.assQuestion.php.
|
static |
int | $question_id |
InvalidArgumentException |
Definition at line 2606 of file class.assQuestion.php.
References $DIC, $ilDB, $question, _getQuestionType(), and _includeClass().
Referenced by ilObjTest\_instanciateQuestion(), ilTestFixedQuestionSetConfig\cloneQuestionSetRelatedData(), ilObjTestGUI\copyAndLinkQuestionsToPoolObject(), ilPCQuestion\copyPoolQuestionIntoPage(), ilObjQuestionPool\deleteQuestion(), ilTestEvaluationGUI\exportFileUploadsForAllParticipants(), ilTestExport\exportToExcel(), ilTestRandomQuestionSetStagingPoolBuilder\removeStagedQuestions(), ilSoapTestAdministration\saveQuestion(), ilSoapTestAdministration\saveQuestionSolution(), ilTestEvaluationGUI\singleResults(), and ilTestRandomQuestionSetStagingPoolBuilder\stageQuestionsFromSourcePool().
|
static |
Definition at line 3237 of file class.assQuestion.php.
References $DIC, $ilDB, $ilUser, ilObjAssessmentFolder\_enabledAssessmentLogging(), _getQuestionType(), and _includeClass().
Referenced by ilObjTestGUI\copyQuestionObject(), ilObjTestGUI\copyQuestionToPool(), ilObjQuestionPool\createQuestion(), ilQuestionPoolPrintViewTableGUI\fillRow(), ilTestCorrectionsGUI\getQuestion(), and ilAssQuestionPreviewGUI\initQuestion().
assQuestion::intermediateSolutionExists | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 3928 of file class.assQuestion.php.
References lookupForExistingSolutions().
Referenced by assFileUpload\saveWorkingData().
assQuestion::isAddableAnswerOptionValue | ( | int | $qIndex, |
string | $answerOptionValue | ||
) |
Definition at line 4004 of file class.assQuestion.php.
assQuestion::isAdditionalContentEditingModePageObject | ( | ) |
Definition at line 3560 of file class.assQuestion.php.
References ADDITIONAL_CONTENT_EDITING_MODE_IPE, and getAdditionalContentEditingMode().
Referenced by delete(), duplicateQuestionHints(), assClozeTest\getClozeTextForHTMLOutput(), and purifyAndPrepareTextAreaOutput().
|
static |
Definition at line 276 of file class.assQuestion.php.
Referenced by ilQtiMatImageSecurity\validateLabel().
|
static |
Definition at line 248 of file class.assQuestion.php.
Referenced by ilQtiMatImageSecurity\validateContent().
assQuestion::isAnswered | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 3505 of file class.assQuestion.php.
Referenced by calculateResultsFromSolution().
assQuestion::isAutosaveable | ( | ) |
Definition at line 3515 of file class.assQuestion.php.
assQuestion::isClone | ( | int | $question_id = 0 | ) |
Checks whether the question is a clone of another question or not.
Definition at line 1420 of file class.assQuestion.php.
References $id.
assQuestion::isComplete | ( | ) |
Returns true, if a question is complete for use.
Definition at line 449 of file class.assQuestion.php.
Referenced by saveQuestionDataToDb(), and saveToDb().
|
static |
Definition at line 3196 of file class.assQuestion.php.
|
protected |
Definition at line 3817 of file class.assQuestion.php.
Referenced by assFileUpload\calculateReachedPoints().
|
static |
Definition at line 1741 of file class.assQuestion.php.
Referenced by assMatchingQuestion\copyImages().
|
static |
Definition at line 243 of file class.assQuestion.php.
assQuestion::isHTML | ( | $a_text | ) |
Checks if a given string contains HTML or not.
Definition at line 2819 of file class.assQuestion.php.
References ilUtil\isHTML().
Referenced by addQTIMaterial().
assQuestion::isInActiveTest | ( | ) |
Definition at line 4229 of file class.assQuestion.php.
References $query, $res, and getObjId().
assQuestion::isInUse | ( | int | $question_id = 0 | ) |
Checks whether the question is in use or not in pools or tests.
Definition at line 1379 of file class.assQuestion.php.
References usageNumber().
|
protected |
Definition at line 304 of file class.assQuestion.php.
Referenced by assFileUpload\isFileDeletionSubmitAvailable(), and assFileUpload\isFileReuseSubmitAvailable().
|
static |
Definition at line 3510 of file class.assQuestion.php.
Referenced by assMultipleChoice\isAnswered().
assQuestion::isPreviewSolutionCorrect | ( | ilAssQuestionPreviewSession | $previewSession | ) |
Definition at line 2748 of file class.assQuestion.php.
References calculateReachedPointsFromPreviewSession(), and getMaximumPoints().
assQuestion::isValidAdditionalContentEditingMode | ( | string | $additionalContentEditingMode | ) |
Definition at line 3565 of file class.assQuestion.php.
References getValidAdditionalContentEditingModes().
|
protected |
Definition at line 3375 of file class.assQuestion.php.
References ilAssSelfAssessmentMigrator\migrateToLmContent(), and setQuestion().
Referenced by migrateContentForLearningModule().
|
protected |
Definition at line 3380 of file class.assQuestion.php.
Referenced by migrateContentForLearningModule().
assQuestion::loadFromDb | ( | int | $question_id | ) |
Definition at line 1909 of file class.assQuestion.php.
References $data, ilRTE\_replaceMediaObjectImageSrc(), and getId().
Referenced by assNumeric\saveToDb().
assQuestion::loadSuggestedSolution | ( | int | $question_id, |
int | $subquestion_index = 0 |
||
) |
Returns a suggested solution for a given subquestion index.
Definition at line 763 of file class.assQuestion.php.
Referenced by _getSuggestedSolution().
|
protected |
Definition at line 358 of file class.assQuestion.php.
References $message, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), getId(), ILIAS\Repository\lng(), and logAction().
Referenced by resetUsersAnswer(), and assOrderingQuestion\saveWorkingData().
|
static |
Definition at line 1199 of file class.assQuestion.php.
References $GLOBALS, ilObjAssessmentFolder\_addLog(), ilObjTest\_getObjectIDFromActiveID(), and getId().
Referenced by _setReachedPoints(), calculateResultsFromSolution(), assKprimChoice\isComplete(), assMultipleChoice\isForcedEmptySolution(), assNumeric\isValidSolutionSubmit(), log(), assErrorText\logUserAction(), assOrderingHorizontal\saveWorkingData(), assTextSubset\saveWorkingData(), assSingleChoice\saveWorkingData(), assTextQuestion\saveWorkingData(), assLongMenu\saveWorkingData(), assFileUpload\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assFormulaQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), and assClozeTest\saveWorkingData().
|
protected |
Definition at line 334 of file class.assQuestion.php.
Referenced by ensureCurrentTestPass().
assQuestion::lookupForExistingSolutions | ( | int | $activeId, |
int | $pass | ||
) |
Lookup if an authorized or intermediate solution exists.
Definition at line 3968 of file class.assQuestion.php.
References $query, getId(), and getStep().
Referenced by authorizedOrIntermediateSolutionExists(), authorizedSolutionExists(), calculateResultsFromSolution(), and intermediateSolutionExists().
|
protected |
Definition at line 3950 of file class.assQuestion.php.
References getId().
Referenced by assNumeric\getExpressionTypes(), assOrderingHorizontal\getExpressionTypes(), assTextSubset\getExpressionTypes(), assImagemapQuestion\getExpressionTypes(), assSingleChoice\getExpressionTypes(), assOrderingQuestion\getExpressionTypes(), assFormulaQuestion\getExpressionTypes(), assMultipleChoice\getExpressionTypes(), assMatchingQuestion\getExpressionTypes(), and assClozeTest\getExpressionTypes().
|
static |
returns the parent object id for given original question id (should be a qpl id, but theoretically it can be a tst id, too)
Definition at line 3426 of file class.assQuestion.php.
|
static |
Definition at line 3407 of file class.assQuestion.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilObjTestGUI\copyAndLinkToQuestionpoolObject(), and ilAssQuestionSkillAssignmentsGUI\isSyncOriginalPossibleAndAllowed().
|
static |
|
protected |
Move to ilObjTest or similar
Definition at line 342 of file class.assQuestion.php.
References $test_id, and ILIAS\Repository\int().
Referenced by assFileUpload\removeIntermediateSolution(), and assFileUpload\saveWorkingData().
assQuestion::migrateContentForLearningModule | ( | ilAssSelfAssessmentMigrator | $migrator | ) |
Definition at line 3366 of file class.assQuestion.php.
References getId(), lmMigrateQuestionTypeGenericContent(), lmMigrateQuestionTypeSpecificContent(), and saveToDb().
Referenced by ilAssSelfAssessmentQuestionFormatter\prepareQuestionForLearningModule().
|
static |
assQuestion::moveUploadedMediaFile | ( | string | $file, |
string | $name | ||
) |
Move an uploaded media file to an public accessible temp dir to present it.
string | $file | File path |
string | $name | Name of the file |
Definition at line 1219 of file class.assQuestion.php.
References CLIENT_WEB_DIR, ilFileUtils\createDirectory(), and ilFileUtils\moveUploadedFile().
|
protected |
Definition at line 2123 of file class.assQuestion.php.
References copySuggestedSolutionFiles(), duplicateQuestionHints(), and duplicateSkillAssignments().
|
protected |
Definition at line 2106 of file class.assQuestion.php.
References duplicateQuestionHints(), duplicateSkillAssignments(), and duplicateSuggestedSolutionFiles().
|
static |
Definition at line 2491 of file class.assQuestion.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilObjTestGUI\copyAndLinkQuestionsToPoolObject(), and ilObjTestGUI\copyAndLinkToQuestionpoolObject().
|
final |
persists the preview state for current user and question
Definition at line 967 of file class.assQuestion.php.
References savePreviewData(), and validateSolutionSubmit().
|
final |
persists the working state for current testactive and testpass
Definition at line 937 of file class.assQuestion.php.
References ilObjTest\_getPass(), calculateResultsFromSolution(), getProcessLocker(), removeIntermediateSolution(), savePartial(), saveWorkingData(), and validateSolutionSubmit().
assQuestion::prepareTextareaOutput | ( | string | $txt_output, |
bool | $prepare_for_latex_output = false , |
||
bool | $omitNl2BrWhenTextArea = false |
||
) |
Definition at line 2827 of file class.assQuestion.php.
References ilLegacyFormElementsUtil\prepareTextareaOutput().
Referenced by assClozeTest\getClozeTextForHTMLOutput(), getSuggestedSolutionOutput(), purifyAndPrepareTextAreaOutput(), and assClozeTest\updateClozeTextFromGaps().
|
protected |
Definition at line 3006 of file class.assQuestion.php.
References getHtmlQuestionContentPurifier(), isAdditionalContentEditingModePageObject(), and prepareTextareaOutput().
Referenced by getQuestionForHTMLOutput(), and assFormulaQuestion\substituteVariables().
assQuestion::QTIMaterialToString | ( | ilQTIMaterial | $a_material | ) |
Reads an QTI material tag and creates a text or XHTML string.
Definition at line 2840 of file class.assQuestion.php.
References $i, $mobs, ilSession\get(), ilQTIMaterial\getMaterial(), ilQTIMaterial\getMaterialCount(), and ilSession\set().
assQuestion::questionTitleExists | ( | int | $questionpool_id, |
string | $title | ||
) |
Returns TRUE if the question title exists in a question pool in the database.
Definition at line 457 of file class.assQuestion.php.
assQuestion::removeAllExistingSolutions | ( | ) |
Definition at line 4013 of file class.assQuestion.php.
References $query, and getId().
assQuestion::removeCurrentSolution | ( | int | $active_id, |
int | $pass, | ||
bool | $authorized = true |
||
) |
Definition at line 3694 of file class.assQuestion.php.
References $query, getId(), and getStep().
Referenced by assKprimChoice\isComplete(), assMultipleChoice\isForcedEmptySolution(), removeIntermediateSolution(), assOrderingHorizontal\saveWorkingData(), assErrorText\saveWorkingData(), assTextSubset\saveWorkingData(), assTextQuestion\saveWorkingData(), assLongMenu\saveWorkingData(), assFileUpload\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assOrderingQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), and assClozeTest\saveWorkingData().
assQuestion::removeExistingSolutions | ( | int | $activeId, |
int | $pass | ||
) |
Definition at line 4019 of file class.assQuestion.php.
References $query, getId(), and getStep().
Referenced by resetUsersAnswer().
assQuestion::removeIntermediateSolution | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 3684 of file class.assQuestion.php.
References getProcessLocker(), and removeCurrentSolution().
Referenced by persistWorkingState().
assQuestion::removeResultRecord | ( | int | $activeId, |
int | $pass | ||
) |
Definition at line 4055 of file class.assQuestion.php.
References $query, getId(), and getStep().
Referenced by resetUsersAnswer().
|
protected |
Definition at line 3656 of file class.assQuestion.php.
Referenced by deleteDummySolutionRecord(), assNumeric\isValidSolutionSubmit(), assSingleChoice\saveWorkingData(), and assFileUpload\saveWorkingData().
assQuestion::requiresJsSwitch | ( | ) |
Definition at line 593 of file class.assQuestion.php.
References supportsJavascriptOutput(), and supportsNonJsOutput().
|
static |
Definition at line 2092 of file class.assQuestion.php.
References $DIC, $ilDB, and $query.
Referenced by ilTestRandomQuestionSetPoolDeriver\updateTestQuestionStage().
assQuestion::resetUsersAnswer | ( | int | $activeId, |
int | $pass | ||
) |
Definition at line 4039 of file class.assQuestion.php.
References areObligationsToBeConsidered(), getProcessLocker(), getTestId(), log(), removeExistingSolutions(), and removeResultRecord().
assQuestion::saveCurrentSolution | ( | int | $active_id, |
int | $pass, | ||
$value1, | |||
$value2, | |||
bool | $authorized = true , |
||
$tstamp = 0 |
|||
) |
Definition at line 3729 of file class.assQuestion.php.
References getId(), and getStep().
Referenced by duplicateIntermediateSolutionAuthorized(), forceExistingIntermediateSolution(), assKprimChoice\isComplete(), assMultipleChoice\isForcedEmptySolution(), assNumeric\isValidSolutionSubmit(), assOrderingHorizontal\saveWorkingData(), assErrorText\saveWorkingData(), assTextSubset\saveWorkingData(), assSingleChoice\saveWorkingData(), assTextQuestion\saveWorkingData(), assLongMenu\saveWorkingData(), assFileUpload\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assOrderingQuestion\saveWorkingData(), assFormulaQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), and assClozeTest\saveWorkingData().
|
static |
Definition at line 2079 of file class.assQuestion.php.
References $DIC, $ilDB, and $query.
Referenced by ilTestRandomQuestionSetPoolDeriver\updateTestQuestionStage().
assQuestion::savePartial | ( | ) |
Definition at line 4223 of file class.assQuestion.php.
Referenced by persistWorkingState().
|
protected |
Definition at line 988 of file class.assQuestion.php.
References ilAssQuestionPreviewSession\setParticipantsSolution().
Referenced by persistPreviewState().
assQuestion::saveQuestionDataToDb | ( | int | $original_id = -1 | ) |
Definition at line 2005 of file class.assQuestion.php.
References ilRTE\_replaceMediaObjectImageSrc(), createPageObject(), getAdditionalContentEditingMode(), getAuthor(), getComment(), getExternalId(), getId(), getMaximumPoints(), getNrOfTries(), getObjId(), getOwner(), getQuestion(), getQuestionTypeID(), getTitle(), isComplete(), and setId().
Referenced by assSingleChoice\isComplete(), assOrderingHorizontal\saveToDb(), assNumeric\saveToDb(), assFlashQuestion\saveToDb(), assErrorText\saveToDb(), assFileUpload\saveToDb(), assTextSubset\saveToDb(), assTextQuestion\saveToDb(), assImagemapQuestion\saveToDb(), assOrderingQuestion\saveToDb(), assMultipleChoice\saveToDb(), assMatchingQuestion\saveToDb(), assLongMenu\saveToDb(), assKprimChoice\saveToDb(), assClozeTest\saveToDb(), and assFormulaQuestion\saveToDb().
assQuestion::saveToDb | ( | ) |
Definition at line 2048 of file class.assQuestion.php.
References ilObjQuestionPool\_updateQuestionCount(), cleanupMediaObjectUsage(), getId(), getLifecycle(), getOwner(), isComplete(), and updateSuggestedSolutions().
Referenced by assSingleChoice\isComplete(), migrateContentForLearningModule(), and syncWithOriginal().
|
abstract |
Saves the learners input of the question to the database.
int | $active_id | Active id of the user |
int | $pass | Test pass |
bool | $authorized |
Referenced by assKprimChoice\isComplete(), assMultipleChoice\isForcedEmptySolution(), assNumeric\isValidSolutionSubmit(), persistWorkingState(), and validateSolutionSubmit().
assQuestion::setAdditionalContentEditingMode | ( | ?string | $additionalContentEditingMode | ) |
Definition at line 3551 of file class.assQuestion.php.
References $additionalContentEditingMode, and getValidAdditionalContentEditingModes().
Referenced by assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), and assNumeric\saveToDb().
assQuestion::setAuthor | ( | string | $author = "" | ) |
Definition at line 500 of file class.assQuestion.php.
References $author.
Referenced by __construct(), assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), and assNumeric\saveToDb().
assQuestion::setComment | ( | string | $comment = "" | ) |
Definition at line 485 of file class.assQuestion.php.
References $comment, and ILIAS\UI\examples\Symbol\Glyph\Comment\comment().
Referenced by assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), and assNumeric\saveToDb().
assQuestion::setDefaultNrOfTries | ( | int | $defaultnroftries | ) |
assQuestion::setExportDetailsXLS | ( | ilAssExcelFormatHelper | $worksheet, |
int | $startrow, | ||
int | $active_id, | ||
int | $pass | ||
) |
Definition at line 3274 of file class.assQuestion.php.
References ilExcel\getColumnCoord(), getQuestionType(), getTitle(), ILIAS\Repository\lng(), and ilAssExcelFormatHelper\setFormattedExcelTitle().
assQuestion::setExportImagePath | ( | string | $path | ) |
assQuestion::setExternalId | ( | ?string | $external_id | ) |
Definition at line 633 of file class.assQuestion.php.
References $external_id.
Referenced by __construct().
|
static |
Definition at line 238 of file class.assQuestion.php.
References $forcePassResultsUpdateEnabled.
Referenced by ilTestScoring\recalculatePass().
assQuestion::setId | ( | int | $id = -1 | ) |
Definition at line 475 of file class.assQuestion.php.
References $id.
Referenced by createNewQuestion(), assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assImagemapQuestion\loadFromDb(), assLongMenu\loadFromDb(), saveQuestionDataToDb(), assNumeric\saveToDb(), and syncWithOriginal().
assQuestion::setLastChange | ( | $lastChange | ) |
Definition at line 3610 of file class.assQuestion.php.
References $lastChange.
Referenced by assKprimChoice\loadFromDb().
assQuestion::setLifecycle | ( | ilAssQuestionLifecycle | $lifecycle | ) |
Definition at line 628 of file class.assQuestion.php.
References $lifecycle.
Referenced by assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), and assNumeric\saveToDb().
assQuestion::setNewOriginalId | ( | int | $newId | ) |
Definition at line 2074 of file class.assQuestion.php.
References getId().
assQuestion::setNrOfTries | ( | int | $a_nr_of_tries | ) |
Definition at line 3317 of file class.assQuestion.php.
Referenced by assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), and assNumeric\saveToDb().
assQuestion::setObjId | ( | int | $obj_id = 0 | ) |
Definition at line 618 of file class.assQuestion.php.
References $obj_id.
Referenced by assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assImagemapQuestion\loadFromDb(), assLongMenu\loadFromDb(), assFormulaQuestion\loadFromDb(), assNumeric\saveToDb(), and syncWithOriginal().
assQuestion::setObligationsToBeConsidered | ( | bool | $obligationsToBeConsidered | ) |
Definition at line 4179 of file class.assQuestion.php.
References $obligationsToBeConsidered.
assQuestion::setOriginalId | ( | ?int | $original_id | ) |
Definition at line 1846 of file class.assQuestion.php.
References $original_id.
Referenced by assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assImagemapQuestion\loadFromDb(), assLongMenu\loadFromDb(), assFormulaQuestion\loadFromDb(), assNumeric\saveToDb(), and syncWithOriginal().
assQuestion::setOutputType | ( | int | $outputType = OUTPUT_HTML | ) |
Definition at line 490 of file class.assQuestion.php.
References $outputType.
assQuestion::setOwner | ( | int | $owner = -1 | ) |
Definition at line 508 of file class.assQuestion.php.
References $owner.
Referenced by __construct(), assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), and assNumeric\saveToDb().
assQuestion::setPoints | ( | float | $points | ) |
Definition at line 2637 of file class.assQuestion.php.
References $points.
Referenced by assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), assLongMenu\saveAnswerSpecificDataToDb(), and assNumeric\saveToDb().
assQuestion::setPreventRteUsage | ( | bool | $prevent_rte_usage | ) |
assQuestion::setProcessLocker | ( | ilAssQuestionProcessLocker | $processLocker | ) |
Definition at line 390 of file class.assQuestion.php.
References $processLocker.
assQuestion::setQuestion | ( | string | $question = "" | ) |
Definition at line 3020 of file class.assQuestion.php.
References $question, and getQuestionType().
Referenced by assClozeTest\__construct(), __construct(), lmMigrateQuestionTypeGenericContent(), assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assImagemapQuestion\loadFromDb(), assLongMenu\loadFromDb(), assFormulaQuestion\loadFromDb(), and assNumeric\saveToDb().
assQuestion::setSelfAssessmentEditingMode | ( | bool | $selfassessmenteditingmode | ) |
Definition at line 3385 of file class.assQuestion.php.
References $selfassessmenteditingmode.
assQuestion::setShuffle | ( | ?bool | $shuffle = true | ) |
Definition at line 495 of file class.assQuestion.php.
Referenced by assTextQuestion\loadFromDb(), assSingleChoice\loadFromDb(), and assMultipleChoice\loadFromDb().
assQuestion::setShuffler | ( | Transformation | $shuffler | ) |
Definition at line 385 of file class.assQuestion.php.
References $shuffler.
Referenced by assMatchingQuestion\toJSON().
assQuestion::setStep | ( | $step | ) |
int | null | $step |
Definition at line 3895 of file class.assQuestion.php.
References $step.
Referenced by assFileUpload\deleteUploadedFiles().
assQuestion::setSuggestedSolution | ( | string | $solution_id = "" , |
int | $subquestion_index = 0 , |
||
bool | $is_import = false |
||
) |
Sets a suggested solution for the question.
If there is more than one subquestion (i.e. close questions) may enter a subquestion index.
string | $solution_id | An internal link pointing to the suggested solution |
int | $subquestion_index | The index of a subquestion (i.e. a close test gap). Usually 0 |
bool | $is_import | A boolean indication that the internal link was imported from another ILIAS installation public |
Definition at line 2188 of file class.assQuestion.php.
References _resolveInternalLink().
Referenced by assFlashQuestion\loadFromDb().
assQuestion::setTestId | ( | int | $id = -1 | ) |
assQuestion::setThumbSize | ( | int | $a_size | ) |
Definition at line 558 of file class.assQuestion.php.
Referenced by assOrderingQuestion\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), and assOrderingQuestion\setContentType().
assQuestion::setTitle | ( | string | $title = "" | ) |
Definition at line 470 of file class.assQuestion.php.
References $title.
Referenced by assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), and assNumeric\saveToDb().
assQuestion::supportsJavascriptOutput | ( | ) |
Definition at line 583 of file class.assQuestion.php.
Referenced by requiresJsSwitch().
assQuestion::supportsNonJsOutput | ( | ) |
Definition at line 588 of file class.assQuestion.php.
Referenced by requiresJsSwitch().
assQuestion::syncHints | ( | ) |
Definition at line 3046 of file class.assQuestion.php.
References getId().
Referenced by syncWithOriginal().
assQuestion::syncSkillAssignments | ( | int | $srcParentId, |
int | $srcQuestionId, | ||
int | $trgParentId, | ||
int | $trgQuestionId | ||
) |
Definition at line 3471 of file class.assQuestion.php.
References duplicateSkillAssignments(), and ilSkillUsage\setUsage().
|
protected |
Definition at line 2234 of file class.assQuestion.php.
References $filename, $index, ilFileUtils\delDir(), getSuggestedSolutionPath(), and ilFileUtils\makeDirParents().
Referenced by updateSuggestedSolutions().
assQuestion::syncWithOriginal | ( | ) |
Definition at line 2510 of file class.assQuestion.php.
References afterSyncWithOriginal(), beforeSyncWithOriginal(), copyPageOfQuestion(), createPageObject(), deletePageOfQuestion(), getId(), getObjId(), getOriginalId(), saveToDb(), setId(), setObjId(), setOriginalId(), syncHints(), syncXHTMLMediaObjectsOfQuestion(), and updateSuggestedSolutions().
assQuestion::syncXHTMLMediaObjectsOfQuestion | ( | ) |
Definition at line 1766 of file class.assQuestion.php.
References $mobs, ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_saveUsage(), and getId().
Referenced by syncWithOriginal().
assQuestion::toJSON | ( | ) |
Definition at line 3920 of file class.assQuestion.php.
References duplicate(), and ILIAS\Repository\int().
assQuestion::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.
Definition at line 432 of file class.assQuestion.php.
References getQuestionType().
assQuestion::updateCurrentSolution | ( | int | $solutionId, |
$value1, | |||
$value2, | |||
bool | $authorized = true |
||
) |
Definition at line 3752 of file class.assQuestion.php.
References getStep().
Referenced by assNumeric\isValidSolutionSubmit(), and assSingleChoice\saveWorkingData().
assQuestion::updateCurrentSolutionsAuthorization | ( | int | $activeId, |
int | $pass, | ||
bool | $authorized, | ||
bool | $keepTime = false |
||
) |
Definition at line 3771 of file class.assQuestion.php.
References getId(), and getStep().
Referenced by forceExistingIntermediateSolution(), assFileUpload\saveWorkingData(), and assImagemapQuestion\saveWorkingData().
assQuestion::updateSuggestedSolutions | ( | int | $original_id = -1 , |
int | $original_obj_id = -1 |
||
) |
Definition at line 2281 of file class.assQuestion.php.
References $index, $original_id, $type, ilInternalLink\_deleteAllLinksOfSource(), ilRTE\_replaceMediaObjectImageSrc(), ilInternalLink\_saveLink(), cleanupMediaObjectUsage(), getId(), and syncSuggestedSolutionFiles().
Referenced by saveToDb(), and syncWithOriginal().
assQuestion::updateTimestamp | ( | ) |
Definition at line 4184 of file class.assQuestion.php.
References getId().
assQuestion::usageNumber | ( | int | $question_id = 0 | ) |
Returns the number of place the question is in use in pools or tests.
Definition at line 1387 of file class.assQuestion.php.
References getId(), and ILIAS\Repository\int().
Referenced by isInUse().
assQuestion::validateSolutionSubmit | ( | ) |
Definition at line 973 of file class.assQuestion.php.
References saveWorkingData().
Referenced by persistPreviewState(), and persistWorkingState().
|
private |
Definition at line 152 of file class.assQuestion.php.
Referenced by getAdditionalContentEditingMode(), and setAdditionalContentEditingMode().
|
staticprotected |
Definition at line 55 of file class.assQuestion.php.
|
staticprotected |
Definition at line 49 of file class.assQuestion.php.
|
staticprotected |
Definition at line 181 of file class.assQuestion.php.
|
protected |
Definition at line 76 of file class.assQuestion.php.
Referenced by assFormulaQuestion\__construct(), assLongMenu\__construct(), assOrderingHorizontal\__construct(), assFlashQuestion\__construct(), assNumeric\__construct(), assKprimChoice\__construct(), assErrorText\__construct(), assTextSubset\__construct(), assImagemapQuestion\__construct(), assSingleChoice\__construct(), assOrderingQuestion\__construct(), assTextQuestion\__construct(), assMultipleChoice\__construct(), assMatchingQuestion\__construct(), assClozeTest\__construct(), assOrderingHorizontal\duplicate(), assNumeric\duplicate(), assFileUpload\duplicate(), assOrderingQuestion\duplicate(), assImagemapQuestion\duplicate(), assTextSubset\duplicate(), assFlashQuestion\duplicate(), assTextQuestion\duplicate(), assErrorText\duplicate(), assSingleChoice\duplicate(), assMultipleChoice\duplicate(), assMatchingQuestion\duplicate(), assLongMenu\duplicate(), assFormulaQuestion\duplicate(), assKprimChoice\duplicate(), assClozeTest\duplicate(), getAuthor(), and setAuthor().
|
protected |
Definition at line 74 of file class.assQuestion.php.
Referenced by assFormulaQuestion\__construct(), assLongMenu\__construct(), assOrderingHorizontal\__construct(), assFlashQuestion\__construct(), assNumeric\__construct(), assKprimChoice\__construct(), assErrorText\__construct(), assTextSubset\__construct(), assImagemapQuestion\__construct(), assSingleChoice\__construct(), assTextQuestion\__construct(), assOrderingQuestion\__construct(), assMultipleChoice\__construct(), assMatchingQuestion\__construct(), assClozeTest\__construct(), __construct(), getComment(), and setComment().
|
protected |
Definition at line 187 of file class.assQuestion.php.
Referenced by createNewQuestion().
|
protected |
Definition at line 115 of file class.assQuestion.php.
Referenced by assClozeTest\calculateReachedPoints().
int assQuestion::$defaultnroftries = 0 |
Definition at line 160 of file class.assQuestion.php.
Referenced by getDefaultNrOfTries(), and setDefaultNrOfTries().
|
protected |
Definition at line 117 of file class.assQuestion.php.
|
private |
(Web) Path to images
Definition at line 145 of file class.assQuestion.php.
Referenced by getImagePathWeb().
|
protected |
Definition at line 147 of file class.assQuestion.php.
Referenced by getExternalId(), and setExternalId().
ilAssQuestionFeedback assQuestion::$feedbackOBJ |
Definition at line 154 of file class.assQuestion.php.
|
staticprotected |
Definition at line 236 of file class.assQuestion.php.
Referenced by setForcePassResultUpdateEnabled().
|
protected |
Definition at line 67 of file class.assQuestion.php.
|
protected |
Definition at line 72 of file class.assQuestion.php.
Referenced by assFormulaQuestion\addResultUnits(), assOrderingHorizontal\createNewOriginalFromThisDuplicate(), assNumeric\createNewOriginalFromThisDuplicate(), assFileUpload\createNewOriginalFromThisDuplicate(), assImagemapQuestion\createNewOriginalFromThisDuplicate(), assTextSubset\createNewOriginalFromThisDuplicate(), assOrderingQuestion\createNewOriginalFromThisDuplicate(), assTextQuestion\createNewOriginalFromThisDuplicate(), assFlashQuestion\createNewOriginalFromThisDuplicate(), assErrorText\createNewOriginalFromThisDuplicate(), assSingleChoice\createNewOriginalFromThisDuplicate(), assMultipleChoice\createNewOriginalFromThisDuplicate(), assMatchingQuestion\createNewOriginalFromThisDuplicate(), assLongMenu\createNewOriginalFromThisDuplicate(), assKprimChoice\createNewOriginalFromThisDuplicate(), assFormulaQuestion\createNewOriginalFromThisDuplicate(), assClozeTest\createNewOriginalFromThisDuplicate(), getId(), getImagePath(), isClone(), assImagemapQuestion\setExportDetailsXLS(), assKprimChoice\setExportDetailsXLS(), assSingleChoice\setExportDetailsXLS(), assMultipleChoice\setExportDetailsXLS(), setId(), assFormulaQuestion\setId(), and setTestId().
|
protected |
Definition at line 109 of file class.assQuestion.php.
|
protected |
Definition at line 70 of file class.assQuestion.php.
Referenced by __construct(), assKprimChoice\afterSyncWithOriginal(), assOrderingQuestion\copyImages(), assMatchingQuestion\copyImages(), assMultipleChoice\copyImages(), assMultipleChoice\deleteImage(), assImagemapQuestion\duplicateImage(), assOrderingQuestion\duplicateImages(), assMatchingQuestion\duplicateImages(), assSingleChoice\duplicateImages(), assImagemapQuestion\setImageFilename(), assSingleChoice\syncImages(), and assMultipleChoice\syncImages().
|
staticprotected |
Definition at line 1856 of file class.assQuestion.php.
|
protected |
Definition at line 171 of file class.assQuestion.php.
Referenced by getLastChange(), and setLastChange().
|
protected |
Definition at line 179 of file class.assQuestion.php.
Referenced by getLifecycle(), and setLifecycle().
|
protected |
Definition at line 113 of file class.assQuestion.php.
Referenced by __construct(), and assFileUpload\deliverFileUploadZIPFile().
|
private |
Definition at line 140 of file class.assQuestion.php.
Referenced by getNrOfTries().
|
protected |
Object id of the container object.
Definition at line 102 of file class.assQuestion.php.
Referenced by getImagePath(), getObjId(), and setObjId().
|
private |
Definition at line 175 of file class.assQuestion.php.
Referenced by areObligationsToBeConsidered(), and setObligationsToBeConsidered().
|
protected |
Definition at line 131 of file class.assQuestion.php.
Referenced by assOrderingHorizontal\copyObject(), assNumeric\copyObject(), assFileUpload\copyObject(), assImagemapQuestion\copyObject(), assOrderingQuestion\copyObject(), assTextSubset\copyObject(), assTextQuestion\copyObject(), assFlashQuestion\copyObject(), assErrorText\copyObject(), assSingleChoice\copyObject(), assMultipleChoice\copyObject(), assMatchingQuestion\copyObject(), assLongMenu\copyObject(), assFormulaQuestion\copyObject(), assKprimChoice\copyObject(), assClozeTest\copyObject(), assOrderingHorizontal\duplicate(), assNumeric\duplicate(), assFileUpload\duplicate(), assOrderingQuestion\duplicate(), assImagemapQuestion\duplicate(), assTextSubset\duplicate(), assFlashQuestion\duplicate(), assTextQuestion\duplicate(), assErrorText\duplicate(), assSingleChoice\duplicate(), assMultipleChoice\duplicate(), assMatchingQuestion\duplicate(), assLongMenu\duplicate(), assFormulaQuestion\duplicate(), assKprimChoice\duplicate(), assClozeTest\duplicate(), assTextQuestion\duplicateAnswers(), getOriginalId(), assSingleChoice\isComplete(), assOrderingHorizontal\saveToDb(), assNumeric\saveToDb(), assFlashQuestion\saveToDb(), assErrorText\saveToDb(), assFileUpload\saveToDb(), assTextSubset\saveToDb(), assTextQuestion\saveToDb(), assImagemapQuestion\saveToDb(), assOrderingQuestion\saveToDb(), assMultipleChoice\saveToDb(), assMatchingQuestion\saveToDb(), assLongMenu\saveToDb(), assClozeTest\saveToDb(), assFormulaQuestion\saveToDb(), setOriginalId(), and updateSuggestedSolutions().
|
protected |
Contains the output type of a question.
Definition at line 122 of file class.assQuestion.php.
Referenced by getOutputType(), and setOutputType().
|
protected |
Definition at line 75 of file class.assQuestion.php.
Referenced by assFormulaQuestion\__construct(), assLongMenu\__construct(), assOrderingHorizontal\__construct(), assFlashQuestion\__construct(), assNumeric\__construct(), assKprimChoice\__construct(), assErrorText\__construct(), assTextSubset\__construct(), assImagemapQuestion\__construct(), assSingleChoice\__construct(), assOrderingQuestion\__construct(), assTextQuestion\__construct(), assMultipleChoice\__construct(), assMatchingQuestion\__construct(), assClozeTest\__construct(), assOrderingHorizontal\duplicate(), assNumeric\duplicate(), assFileUpload\duplicate(), assOrderingQuestion\duplicate(), assImagemapQuestion\duplicate(), assTextSubset\duplicate(), assFlashQuestion\duplicate(), assTextQuestion\duplicate(), assErrorText\duplicate(), assSingleChoice\duplicate(), assMultipleChoice\duplicate(), assMatchingQuestion\duplicate(), assLongMenu\duplicate(), assFormulaQuestion\duplicate(), assKprimChoice\duplicate(), assClozeTest\duplicate(), getOwner(), and setOwner().
|
protected |
Definition at line 138 of file class.assQuestion.php.
Referenced by copyPageOfQuestion(), deletePageOfQuestion(), and getPageOfQuestion().
|
protected |
The maximum available points for the question.
Definition at line 87 of file class.assQuestion.php.
Referenced by _getMaximumPoints(), _getReachedPoints(), _setReachedPoints(), assTextSubset\addAnswer(), assSingleChoice\addAnswer(), assMultipleChoice\addAnswer(), assImagemapQuestion\addAnswer(), assTextQuestion\addAnswer(), assMatchingQuestion\addMatchingPair(), adjustReachedPointsByScoringOptions(), assClozeTest\calculateCombinationResult(), assOrderingHorizontal\calculateReachedPoints(), assErrorText\calculateReachedPoints(), assFlashQuestion\calculateReachedPoints(), assKprimChoice\calculateReachedPoints(), assSingleChoice\calculateReachedPoints(), assMultipleChoice\calculateReachedPoints(), assImagemapQuestion\calculateReachedPoints(), assFormulaQuestion\calculateReachedPoints(), assMatchingQuestion\calculateReachedPoints(), assTextQuestion\calculateReachedPointsForSolution(), assLongMenu\calculateReachedPointsForSolution(), assKprimChoice\calculateReachedPointsForSolution(), assOrderingHorizontal\calculateReachedPointsForSolution(), assTextSubset\calculateReachedPointsForSolution(), assImagemapQuestion\calculateReachedPointsForSolution(), assMultipleChoice\calculateReachedPointsForSolution(), assMatchingQuestion\calculateReachedPointsForSolution(), assClozeTest\calculateReachedPointsForSolution(), assNumeric\calculateReachedPointsFromPreviewSession(), assFlashQuestion\calculateReachedPointsFromPreviewSession(), assSingleChoice\calculateReachedPointsFromPreviewSession(), assFormulaQuestion\calculateReachedPointsFromPreviewSession(), assLongMenu\checkQuestionCustomPart(), assMatchingQuestion\createMatchingPair(), ensureNonNegativePoints(), assNumeric\getExpressionTypes(), assOrderingHorizontal\getExpressionTypes(), assTextSubset\getExpressionTypes(), assImagemapQuestion\getExpressionTypes(), assSingleChoice\getExpressionTypes(), assOrderingQuestion\getExpressionTypes(), assFormulaQuestion\getExpressionTypes(), assMultipleChoice\getExpressionTypes(), assMatchingQuestion\getExpressionTypes(), assClozeTest\getExpressionTypes(), assClozeTest\getMaximumGapPoints(), assLongMenu\getMaximumPoints(), assTextQuestion\getMaximumPoints(), assFlashQuestion\getMaximumPoints(), assTextSubset\getMaximumPoints(), assSingleChoice\getMaximumPoints(), assMultipleChoice\getMaximumPoints(), assImagemapQuestion\getMaximumPoints(), getMaximumPoints(), assFormulaQuestion\getMaximumPoints(), assClozeTest\getMaximumPoints(), assMatchingQuestion\getMaximumPoints(), assTextQuestion\getMinimumPoints(), getPoints(), assLongMenu\getPointsForGap(), assErrorText\getPointsForSelectedPositions(), assLongMenu\getUserQuestionResult(), assErrorText\getUserQuestionResult(), assFileUpload\handleSubmission(), assMatchingQuestion\insertMatchingPair(), assLongMenu\saveAnswerSpecificDataToDb(), assErrorText\setErrorsFromParsedErrorText(), assClozeTest\setGapAnswerPoints(), setPoints(), and assTextQuestion\setReachedPoints().
bool assQuestion::$prevent_rte_usage = false |
Definition at line 156 of file class.assQuestion.php.
Referenced by getPreventRteUsage(), and setPreventRteUsage().
|
protected |
Definition at line 162 of file class.assQuestion.php.
Referenced by getProcessLocker(), and setProcessLocker().
|
protected |
The question text.
Definition at line 82 of file class.assQuestion.php.
Referenced by assFormulaQuestion\__construct(), assLongMenu\__construct(), assOrderingHorizontal\__construct(), assFlashQuestion\__construct(), assNumeric\__construct(), assKprimChoice\__construct(), assErrorText\__construct(), assTextSubset\__construct(), assImagemapQuestion\__construct(), assSingleChoice\__construct(), assTextQuestion\__construct(), assOrderingQuestion\__construct(), assMultipleChoice\__construct(), assMatchingQuestion\__construct(), assClozeTest\__construct(), assKprimChoice\beforeSyncWithOriginal(), getQuestion(), instantiateQuestion(), and setQuestion().
string assQuestion::$questionActionCmd = 'handleQuestionAction' |
Definition at line 164 of file class.assQuestion.php.
|
protected |
Definition at line 68 of file class.assQuestion.php.
Referenced by assClozeTest\getTextgapPoints(), assTextSubset\isAnswerCorrect(), and assTextQuestion\isKeywordMatching().
bool assQuestion::$selfassessmenteditingmode = false |
Definition at line 158 of file class.assQuestion.php.
Referenced by getSelfAssessmentEditingMode(), and setSelfAssessmentEditingMode().
|
protected |
Indicates whether the answers will be shuffled or not.
Definition at line 92 of file class.assQuestion.php.
Referenced by getShuffle(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assClozeTest\setGapShuffle(), assMatchingQuestion\setShuffle(), and assMatchingQuestion\setShuffleMode().
|
protected |
Definition at line 173 of file class.assQuestion.php.
Referenced by getShuffler(), and setShuffler().
|
protected |
Definition at line 169 of file class.assQuestion.php.
Referenced by assFileUpload\deleteUploadedFiles(), getStep(), and setStep().
|
protected |
Definition at line 129 of file class.assQuestion.php.
Referenced by getSuggestedSolutions().
|
protected |
The database id of a test in which the question is contained.
Definition at line 97 of file class.assQuestion.php.
Referenced by assFileUpload\deleteUploadedFiles(), assFileUpload\deliverFileUploadZIPFile(), getTestId(), assFileUpload\getUploadedFilesForWeb(), assFileUpload\hasFileUploads(), lookupTestId(), assFileUpload\removeIntermediateSolution(), and assFileUpload\saveWorkingData().
|
protected |
Definition at line 177 of file class.assQuestion.php.
|
private |
Definition at line 4199 of file class.assQuestion.php.
Referenced by getTestPresentationConfig().
|
protected |
Definition at line 77 of file class.assQuestion.php.
Referenced by getThumbSize().
|
protected |
Definition at line 73 of file class.assQuestion.php.
Referenced by assFormulaQuestion\__construct(), assLongMenu\__construct(), assOrderingHorizontal\__construct(), assFlashQuestion\__construct(), assNumeric\__construct(), assKprimChoice\__construct(), assErrorText\__construct(), assTextSubset\__construct(), assImagemapQuestion\__construct(), assSingleChoice\__construct(), assOrderingQuestion\__construct(), assTextQuestion\__construct(), assMultipleChoice\__construct(), assMatchingQuestion\__construct(), assClozeTest\__construct(), __construct(), assOrderingHorizontal\copyObject(), assNumeric\copyObject(), assFileUpload\copyObject(), assImagemapQuestion\copyObject(), assOrderingQuestion\copyObject(), assTextSubset\copyObject(), assTextQuestion\copyObject(), assFlashQuestion\copyObject(), assErrorText\copyObject(), assSingleChoice\copyObject(), assMultipleChoice\copyObject(), assMatchingQuestion\copyObject(), assLongMenu\copyObject(), assFormulaQuestion\copyObject(), assKprimChoice\copyObject(), assClozeTest\copyObject(), assOrderingHorizontal\duplicate(), assNumeric\duplicate(), assFileUpload\duplicate(), assOrderingQuestion\duplicate(), assImagemapQuestion\duplicate(), assTextSubset\duplicate(), assFlashQuestion\duplicate(), assTextQuestion\duplicate(), assErrorText\duplicate(), assSingleChoice\duplicate(), assMultipleChoice\duplicate(), assMatchingQuestion\duplicate(), assLongMenu\duplicate(), assFormulaQuestion\duplicate(), assKprimChoice\duplicate(), assClozeTest\duplicate(), getSuggestedSolutionTitle(), getTitle(), and setTitle().
|
protected |
Definition at line 111 of file class.assQuestion.php.
Referenced by __construct().
const assQuestion::ADDITIONAL_CONTENT_EDITING_MODE_IPE = 'pageobject' |
Definition at line 150 of file class.assQuestion.php.
Referenced by assQuestionGUI\addBasicQuestionFormProperties(), ilTestExpressPageObjectGUI\addQuestion(), ilObjTestGUI\addQuestionObject(), ilObjQuestionPoolGUI\buildCreateQuestionForm(), ilObjTestGUI\createQuestionObject(), ilPCQuestionGUI\insert(), and isAdditionalContentEditingModePageObject().
const assQuestion::ADDITIONAL_CONTENT_EDITING_MODE_RTE = 'default' |
Definition at line 149 of file class.assQuestion.php.
Referenced by assClozeTestGUI\addBasicQuestionFormProperties(), ilTestExpressPageObjectGUI\addQuestion(), ilObjTestGUI\addQuestionObject(), ilObjQuestionPoolGUI\buildCreateQuestionForm(), ilObjQuestionPoolGUI\createQuestionForTestObject(), ilObjQuestionPoolGUI\createQuestionObject(), ilObjTestGUI\createQuestionObject(), ilPCQuestionGUI\edit(), assQuestionImport\fetchAdditionalContentEditingModeInformation(), ilTestExpressPageObjectGUI\handleToolbarCommand(), ilPCQuestionGUI\insert(), assLongMenuGUI\populateQuestionSpecificFormPart(), and assClozeTestGUI\populateQuestionSpecificFormPart().
|
private |
Definition at line 61 of file class.assQuestion.php.
|
protected |
Definition at line 47 of file class.assQuestion.php.
const assQuestion::IMG_MIME_TYPE_GIF = 'image/gif' |
Definition at line 45 of file class.assQuestion.php.
const assQuestion::IMG_MIME_TYPE_JPG = 'image/jpeg' |
Definition at line 43 of file class.assQuestion.php.
const assQuestion::IMG_MIME_TYPE_PNG = 'image/png' |
Definition at line 44 of file class.assQuestion.php.
const assQuestion::KEY_VALUES_IMPLOSION_SEPARATOR = ':' |
Definition at line 3796 of file class.assQuestion.php.
Referenced by explodeKeyValues(), and implodeKeyValues().
|
private |
Definition at line 63 of file class.assQuestion.php.
|
private |
Definition at line 62 of file class.assQuestion.php.
const assQuestion::TRIM_PATTERN = '/^[\p{C}\p{Z}]+|[\p{C}\p{Z}]+$/u' |
Definition at line 65 of file class.assQuestion.php.