|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Abstract basic class which is to be extended by the concrete assessment question type classes. More...
Inheritance diagram for assQuestion:
Collaboration diagram for assQuestion: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... | |
| setTitle (string $title="") | |
| setId (int $id=-1) | |
| setTestId (int $id=-1) | |
| setComment (string $comment="") | |
| setShuffle (?bool $shuffle=true) | |
| setAuthor (string $author="") | |
| setOwner (int $owner=-1) | |
| getTitle () | |
| getTitleForHTMLOutput () | |
| getTitleFilenameCompliant () | |
| getId () | |
| getShuffle () | |
| getTestId () | |
| getComment () | |
| getDescriptionForHTMLOutput () | |
| getThumbSize () | |
| setThumbSize (int $a_size) | |
| getMinimumThumbSize () | |
| getMaximumThumbSize () | |
| getAuthor () | |
| getAuthorForHTMLOutput () | |
| getOwner () | |
| getObjId () | |
| setObjId (int $obj_id=0) | |
| getLifecycle () | |
| setLifecycle (ilAssQuestionLifecycle $lifecycle) | |
| setExternalId (?string $external_id) | |
| getExternalId () | |
| getSuggestedSolutionOutput () | |
| getSuggestedSolutions () | |
| getReachedPoints (int $active_id, int $pass) | |
| getMaximumPoints () | |
| getAdjustedReachedPoints (int $active_id, int $pass, bool $authorizedSolution=true) | |
| returns the reached points ... More... | |
| calculateResultsFromSolution (int $active_id, int $pass, bool $obligationsEnabled=false) | |
| Calculates the question results from a previously saved question solution. More... | |
| persistWorkingState (int $active_id, $pass, bool $obligationsEnabled=false, bool $authorized=true) | |
| persists the working state for current testactive and testpass More... | |
| persistPreviewState (ilAssQuestionPreviewSession $previewSession) | |
| persists the preview state for current user and question More... | |
| validateSolutionSubmit () | |
| saveWorkingData (int $active_id, int $pass, bool $authorized=true) | |
| Saves the learners input of the question to the database. More... | |
| getSuggestedSolutionPath () | |
| getImagePath ($question_id=null, $object_id=null) | |
| Returns the image path for web accessable images of a question. More... | |
| getSuggestedSolutionPathWeb () | |
| getImagePathWeb () | |
| Returns the web image path for web accessable images of a question. More... | |
| getTestOutputSolutions (int $activeId, int $pass) | |
| getUserSolutionPreferingIntermediate (int $active_id, $pass=null) | |
| getSolutionValues ($active_id, $pass=null, bool $authorized=true) | |
| Loads solutions of a given user from the database an returns it. More... | |
| getAdditionalTableName () | |
| getAnswerTableName () | |
| deleteAnswers (int $question_id) | |
| deleteAdditionalTableData (int $question_id) | |
| delete (int $question_id) | |
| getTotalAnswers () | |
| copyXHTMLMediaObjectsOfQuestion (int $a_q_id) | |
| syncXHTMLMediaObjectsOfQuestion () | |
| createPageObject () | |
| copyPageOfQuestion (int $a_q_id) | |
| getPageOfQuestion () | |
| setOriginalId (?int $original_id) | |
| getOriginalId () | |
| fixSvgToPng (string $imageFilenameContainingString) | |
| fixUnavailableSkinImageSources (string $html) | |
| loadFromDb (int $question_id) | |
| createNewQuestion (bool $a_create_page=true) | |
| Creates a new question without an owner when a new question is created This assures that an ID is given to the question if a file upload or something else occurs. More... | |
| saveQuestionDataToDb (int $original_id=-1) | |
| saveToDb () | |
| deleteSuggestedSolutions () | |
| getSuggestedSolution (int $subquestion_index=0) | |
| resolveInternalLink (string $internal_link) | |
| resolveSuggestedSolutionLinks () | |
| syncWithOriginal () | |
| getPoints () | |
| setPoints (float $points) | |
| getSolutionMaxPass (int $active_id) | |
| calculateReachedPoints ($active_id, $pass=null, $authorizedSolution=true, $returndetails=false) | |
| Returns the points, a learner has reached answering the question. More... | |
| deductHintPointsFromReachedPoints (ilAssQuestionPreviewSession $previewSession, $reachedPoints) | |
| calculateReachedPointsFromPreviewSession (ilAssQuestionPreviewSession $previewSession) | |
| isPreviewSolutionCorrect (ilAssQuestionPreviewSession $previewSession) | |
| adjustReachedPointsByScoringOptions ($points, $active_id, $pass=null) | |
| Adjust the given reached points by checks for all special scoring options in the test container. More... | |
| buildHashedImageFilename (string $plain_image_filename, bool $unique=false) | |
| getQuestion () | |
| getQuestionForHTMLOutput () | |
| setQuestion (string $question="") | |
| getQuestionType () | |
| Returns the question type of the question. More... | |
| getQuestionTypeID () | |
| syncHints () | |
| cleanupMediaObjectUsage () | |
| getInstances () | |
| getActiveUserData (int $active_id) | |
| Returns the user id and the test id for a given active id. More... | |
| hasSpecificFeedback () | |
| setExportDetailsXLSX (ilAssExcelFormatHelper $worksheet, int $startrow, int $col, int $active_id, int $pass) | |
| getNrOfTries () | |
| setNrOfTries (int $a_nr_of_tries) | |
| setExportImagePath (string $path) | |
| formatSAQuestion ($a_q) | |
| setPreventRteUsage (bool $prevent_rte_usage) | |
| getPreventRteUsage () | |
| migrateContentForLearningModule (ilAssSelfAssessmentMigrator $migrator) | |
| setSelfAssessmentEditingMode (bool $selfassessmenteditingmode) | |
| getSelfAssessmentEditingMode () | |
| setDefaultNrOfTries (int $defaultnroftries) | |
| getDefaultNrOfTries () | |
| syncSkillAssignments (int $srcParentId, int $srcQuestionId, int $trgParentId, int $trgQuestionId) | |
| ensureHintPageObjectExists ($pageObjectId) | |
| isAnswered (int $active_id, int $pass) | |
| getAdditionalContentEditingMode () | |
| setAdditionalContentEditingMode (?string $additionalContentEditingMode) | |
| isAdditionalContentEditingModePageObject () | |
| isValidAdditionalContentEditingMode (string $additionalContentEditingMode) | |
| getValidAdditionalContentEditingModes () | |
| getHtmlUserSolutionPurifier () | |
| getHtmlQuestionContentPurifier () | |
| setLastChange ($lastChange) | |
| getLastChange () | |
| removeIntermediateSolution (int $active_id, int $pass) | |
| removeCurrentSolution (int $active_id, int $pass, bool $authorized=true) | |
| saveCurrentSolution (int $active_id, int $pass, $value1, $value2, bool $authorized=true, $tstamp=0) | |
| updateCurrentSolution (int $solutionId, $value1, $value2, bool $authorized=true) | |
| updateCurrentSolutionsAuthorization (int $activeId, int $pass, bool $authorized, bool $keepTime=false) | |
| setStep ($step) | |
| getStep () | |
| toJSON () | |
| duplicate (bool $for_test=true, string $title="", string $author="", int $owner=-1, $testObjId=null) | |
| intermediateSolutionExists (int $active_id, int $pass) | |
| authorizedSolutionExists (int $active_id, ?int $pass) | |
| authorizedOrIntermediateSolutionExists (int $active_id, int $pass) | |
| lookupForExistingSolutions (int $activeId, int $pass) | |
| Lookup if an authorized or intermediate solution exists. More... | |
| isAddableAnswerOptionValue (int $qIndex, string $answerOptionValue) | |
| addAnswerOptionValue (int $qIndex, string $answerOptionValue, float $points) | |
| removeAllExistingSolutions () | |
| removeExistingSolutions (int $activeId, int $pass) | |
| resetUsersAnswer (int $activeId, int $pass) | |
| removeResultRecord (int $activeId, int $pass) | |
| fetchValuePairsFromIndexedValues (array $indexedValues) | |
| fetchIndexedValuesFromValuePairs (array $valuePairs) | |
| areObligationsToBeConsidered () | |
| setObligationsToBeConsidered (bool $obligationsToBeConsidered) | |
| updateTimestamp () | |
| getTestPresentationConfig () | |
Static Public Member Functions | |
| static | setForcePassResultUpdateEnabled (bool $forcePassResultsUpdateEnabled) |
| static | isForcePassResultUpdateEnabled () |
| static | _getSuggestedSolutionOutput (int $question_id) |
| static | _getReachedPoints (int $active_id, int $question_id, int $pass) |
| static | logAction (string $logtext, int $active_id, int $question_id) |
| static | isFileAvailable (string $file) |
| static | saveOriginalId (int $questionId, int $originalId) |
| static | resetOriginalId (int $questionId) |
| static | _getInternalLinkHref (string $target="") |
| static | instantiateQuestion (int $question_id) |
| static | _getSolutionMaxPass (int $question_id, int $active_id) |
| Returns the maximum pass a users question solution. More... | |
| static | _isWriteable (int $question_id, int $user_id) |
| static | _setReachedPoints (int $active_id, int $question_id, float $points, float $maxpoints, int $pass, bool $manualscoring, bool $obligationsEnabled, ?int $test_id=null) |
| Sets the points, a learner has reached answering the question Additionally objective results are updated. More... | |
| static | _needsManualScoring (int $question_id) |
| static | getFeedbackClassNameByQuestionType (string $questionType) |
| static | instantiateQuestionGUI (int $a_question_id) |
| static | _questionExistsInTest (int $question_id, int $test_id) |
| static | lookupParentObjId (int $questionId) |
| static | isObligationPossible (int $questionId) |
| static | implodeKeyValues (array $keyValues) |
| static | explodeKeyValues (string $keyValues) |
| static | convertISO8601FormatH_i_s_ExtendedToSeconds (string $time) |
| static | extendedTrim (string $value) |
| Trim non-printable characters from the beginning and end of a string. More... | |
Data Fields | |
| const | 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) | |
| log (int $active_id, string $langVar) | |
| savePreviewData (ilAssQuestionPreviewSession $previewSession) | |
| deletePageOfQuestion (int $question_id) | |
| onDuplicate (int $originalParentId, int $originalQuestionId, int $duplicateParentId, int $duplicateQuestionId) | |
| beforeSyncWithOriginal (int $origQuestionId, int $dupQuestionId, int $origParentObjId, int $dupParentObjId) | |
| afterSyncWithOriginal (int $origQuestionId, int $dupQuestionId, int $origParentObjId, int $dupParentObjId) | |
| onCopy (int $sourceParentId, int $sourceQuestionId, int $targetParentId, int $targetQuestionId) | |
| duplicateComments (int $parent_source_id, int $source_id, int $parent_target_id, int $target_id) | |
| deleteComments () | |
| getNotesManager () | |
| getNotesDataService () | |
| getNotesRepo () | |
| syncSuggestedSolutions (int $target_question_id, int $target_obj_id) | |
| duplicateSuggestedSolutionFiles (int $parent_id, int $question_id) | |
| Duplicates the files of a suggested solution if the question is duplicated. More... | |
| syncSuggestedSolutionFiles (int $target_question_id, int $target_obj_id) | |
| copySuggestedSolutionFiles (int $source_questionpool_id, int $source_question_id) | |
| copySuggestedSolutions (int $target_question_id) | |
| ensureNonNegativePoints ($points) | |
| purifyAndPrepareTextAreaOutput (string $content) | |
| getRTETextWithMediaObjects () | |
| getSelfAssessmentFormatter () | |
| lmMigrateQuestionTypeGenericContent (ilAssSelfAssessmentMigrator $migrator) | |
| lmMigrateQuestionTypeSpecificContent (ilAssSelfAssessmentMigrator $migrator) | |
| duplicateQuestionHints (int $originalQuestionId, int $duplicateQuestionId) | |
| duplicateSkillAssignments (int $srcParentId, int $srcQuestionId, int $trgParentId, int $trgQuestionId) | |
| buildQuestionDataQuery () | |
| getCurrentSolutionResultSet (int $active_id, int $pass, bool $authorized=true) | |
| removeSolutionRecordById (int $solutionId) | |
| getSolutionRecordById (int $solutionId) | |
| deleteDummySolutionRecord (int $activeId, int $passIndex) | |
| isDummySolutionRecord (array $solutionRecord) | |
| deleteSolutionRecordByValues (int $activeId, int $passIndex, bool $authorized, array $matchValues) | |
| duplicateIntermediateSolutionAuthorized (int $activeId, int $passIndex) | |
| forceExistingIntermediateSolution (int $activeId, int $passIndex, bool $considerDummyRecordCreation) | |
| lookupMaxStep (int $active_id, int $pass) | |
| buildTestPresentationConfig () | |
| build basic test question configuration instance More... | |
| getSuggestedSolutionsRepo () | |
| loadSuggestedSolutions () | |
Static Protected Member Functions | |
| static | getNumExistingSolutionRecords (int $activeId, int $pass, int $questionId) |
Static Protected Attributes | |
| static | $forcePassResultsUpdateEnabled = false |
| static | $imageSourceFixReplaceMap |
Private Member Functions | |
| importHint (int $question_id, array $hint_array) | |
| 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 46 of file class.assQuestion.php.
| assQuestion::__construct | ( | string | $title = "", |
| string | $comment = "", |
||
| string | $author = "", |
||
| int | $owner = -1, |
||
| string | $question = "" |
||
| ) |
assQuestion constructor
Definition at line 174 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().
Here is the call graph for this function:
|
static |
Definition at line 1683 of file class.assQuestion.php.
References $DIC.
Referenced by getSuggestedSolutionOutput(), and assQuestionGUI\suggestedsolution().
Here is the caller graph for this function:
|
static |
Definition at line 565 of file class.assQuestion.php.
References $DIC, $ilDB, and $points.
Referenced by ilTestScoringByQuestionsGUI\appendFormToModal(), ilTestScoringGUI\buildManScoringParticipantForm(), ilTestServiceGUI\getPassListOfAnswersWithScoring(), ilTestScoringByQuestionsGUI\saveManScoringByQuestion(), ilTestScoringGUI\saveManScoringParticipantScreen(), and ilTestScoringByQuestionsGUI\showManScoringByQuestionParticipantsTable().
Here is the caller graph for this function:
|
static |
Returns the maximum pass a users question solution.
Definition at line 1796 of file class.assQuestion.php.
Referenced by _setReachedPoints(), and ilObjTest\getTextAnswer().
Here is the caller graph for this function:
|
static |
Definition at line 510 of file class.assQuestion.php.
Referenced by ilTestScoringByQuestionsGUI\getAnswerDetail(), and ilObjTest\getTestResult().
Here is the caller graph for this function:
|
static |
Definition at line 1817 of file class.assQuestion.php.
References $DIC, $ilDB, ilObjQuestionPool\_isWriteable(), calculateReachedPoints(), and ILIAS\Repository\int().
Referenced by ilAssQuestionFeedbackEditingGUI\isSyncAfterSaveRequired(), ilAssQuestionHintsGUI\performDeleteCmd(), assQuestionGUI\saveEdit(), ilAssQuestionHintGUI\saveFormCmd(), ilAssQuestionHintsGUI\saveListOrderCmd(), assQuestionGUI\saveQuestionToTest(), and assQuestionGUI\suggestedsolution().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 2175 of file class.assQuestion.php.
References $DIC, and ilObjAssessmentFolder\_getManualScoringTypes().
Referenced by ilTestExpressPageObjectGUI\insertQuestions(), ilTestQuestionBrowserTableGUI\insertQuestionsCmd(), and ilObjTestGUI\insertQuestionsObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 2279 of file class.assQuestion.php.
Referenced by assQuestionGUI\saveQuestionToTest().
Here is the caller graph for this function:
|
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 1936 of file class.assQuestion.php.
References $DIC, Vendor\Package\$e, $ilDB, $points, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), ilObjTest\_getObjectIDFromTestID(), ilObjTestAccess\_getParticipantData(), _getSolutionMaxPass(), ilObjTest\_getUserIdFromActiveId(), ilObjTest\_lookupTestObjIdForQuestionId(), ilCourseObjectiveResult\_updateObjectiveResult(), ILIAS\Repository\int(), logAction(), and ilLanguage\txtlng().
Referenced by assFileUpload\handleSubmission(), ilTestScoringByQuestionsGUI\saveManScoringByQuestion(), and ilTestScoringGUI\saveManScoringParticipantScreen().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::addAnswerOptionValue | ( | int | $qIndex, |
| string | $answerOptionValue, | ||
| float | $points | ||
| ) |
Definition at line 2943 of file class.assQuestion.php.
|
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 1895 of file class.assQuestion.php.
References $points, ilObjTest\_getCountSystem(), ilObjTest\_getScoreCutting(), and getMaximumPoints().
Referenced by calculateResultsFromSolution(), and getAdjustedReachedPoints().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1419 of file class.assQuestion.php.
Referenced by syncWithOriginal().
Here is the caller graph for this function:| assQuestion::areObligationsToBeConsidered | ( | ) |
Definition at line 3035 of file class.assQuestion.php.
References $obligationsToBeConsidered.
Referenced by resetUsersAnswer().
Here is the caller graph for this function:| assQuestion::authorizedOrIntermediateSolutionExists | ( | int | $active_id, |
| int | $pass | ||
| ) |
Definition at line 2877 of file class.assQuestion.php.
References lookupForExistingSolutions().
Here is the call graph for this function:| assQuestion::authorizedSolutionExists | ( | int | $active_id, |
| ?int | $pass | ||
| ) |
Definition at line 2868 of file class.assQuestion.php.
References lookupForExistingSolutions().
Here is the call graph for this function:
|
protected |
Definition at line 1415 of file class.assQuestion.php.
Referenced by syncWithOriginal().
Here is the caller graph for this function:| assQuestion::buildHashedImageFilename | ( | string | $plain_image_filename, |
| bool | $unique = false |
||
| ) |
Definition at line 1911 of file class.assQuestion.php.
Referenced by assKprimChoice\handleFileUpload(), assMatchingQuestion\rebuildThumbnails(), assOrderingQuestion\storeImageFile(), and assOrderingQuestion\updateImageFile().
Here is the caller graph for this function:
|
protected |
Definition at line 2534 of file class.assQuestion.php.
Referenced by assKprimChoice\loadFromDb().
Here is the caller graph for this function:
|
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 3077 of file class.assQuestion.php.
Referenced by getTestPresentationConfig().
Here is the caller graph for this function:
|
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 _isWriteable(), assNumeric\calculateReachedPointsFromPreviewSession(), calculateResultsFromSolution(), getAdjustedReachedPoints(), and assNumeric\getExpressionTypes().
Here is the caller graph for this function:| assQuestion::calculateReachedPointsFromPreviewSession | ( | ilAssQuestionPreviewSession | $previewSession | ) |
Definition at line 1864 of file class.assQuestion.php.
References deductHintPointsFromReachedPoints(), ensureNonNegativePoints(), and ilAssQuestionPreviewSession\getParticipantsSolution().
Referenced by isPreviewSolutionCorrect().
Here is the call graph for this function:
Here is the caller graph for this function:
|
final |
Calculates the question results from a previously saved question solution.
Definition at line 618 of file class.assQuestion.php.
References ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), ilCourseObjectiveResult\_updateObjectiveResult(), adjustReachedPointsByScoringOptions(), calculateReachedPoints(), getId(), getObjId(), getProcessLocker(), getStep(), isAnswered(), ilObjTest\isQuestionObligatory(), ILIAS\Repository\lng(), logAction(), and lookupForExistingSolutions().
Referenced by persistWorkingState().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::cleanupMediaObjectUsage | ( | ) |
Definition at line 2131 of file class.assQuestion.php.
References ilRTE\_cleanupMediaObjectUsage(), getId(), and getRTETextWithMediaObjects().
Referenced by saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 2842 of file class.assQuestion.php.
References ILIAS\Repository\int().
Here is the call graph for this function:| assQuestion::copyPageOfQuestion | ( | int | $a_q_id | ) |
Definition at line 1157 of file class.assQuestion.php.
References $page.
|
protected |
Definition at line 1581 of file class.assQuestion.php.
References $filename, getSuggestedSolutionPath(), and ilFileUtils\makeDirParents().
Referenced by onCopy().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1601 of file class.assQuestion.php.
References getSuggestedSolutions(), and getSuggestedSolutionsRepo().
Referenced by onCopy(), and onDuplicate().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::copyXHTMLMediaObjectsOfQuestion | ( | int | $a_q_id | ) |
Definition at line 1129 of file class.assQuestion.php.
References ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_saveUsage(), and getId().
Here is the call graph for this function:| 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 1265 of file class.assQuestion.php.
References $current_user, ilObject\_lookupObjId(), createPageObject(), getAdditionalContentEditingMode(), getAuthor(), getDefaultNrOfTries(), getExternalId(), getId(), getObjId(), getQuestionTypeID(), and setId().
Here is the call graph for this function:| assQuestion::createPageObject | ( | ) |
Definition at line 1145 of file class.assQuestion.php.
References getId(), and getObjId().
Referenced by createNewQuestion(), and saveQuestionDataToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::deductHintPointsFromReachedPoints | ( | ilAssQuestionPreviewSession | $previewSession, |
| $reachedPoints | |||
| ) |
Definition at line 1853 of file class.assQuestion.php.
References $DIC, and ilAssQuestionPreviewHintTracking\getRequestStatisticData().
Referenced by assNumeric\calculateReachedPointsFromPreviewSession(), assErrorText\calculateReachedPointsFromPreviewSession(), assSingleChoice\calculateReachedPointsFromPreviewSession(), assImagemapQuestion\calculateReachedPointsFromPreviewSession(), assOrderingQuestion\calculateReachedPointsFromPreviewSession(), assFormulaQuestion\calculateReachedPointsFromPreviewSession(), calculateReachedPointsFromPreviewSession(), and assClozeTest\calculateReachedPointsFromPreviewSession().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::delete | ( | int | $question_id | ) |
Definition at line 967 of file class.assQuestion.php.
References Vendor\Package\$e, ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_removeUsage(), ilObjQuestionPool\_updateQuestionCount(), CLIENT_WEB_DIR, ilFileUtils\delDir(), deleteAdditionalTableData(), deleteAnswers(), deleteComments(), ilAssQuestionHintList\deleteHintsByQuestionIds(), deletePageOfQuestion(), deleteTaxonomyAssignments(), getObjId(), getSuggestedSolutionsRepo(), and isAdditionalContentEditingModePageObject().
Here is the call graph for this function:| assQuestion::deleteAdditionalTableData | ( | int | $question_id | ) |
Definition at line 940 of file class.assQuestion.php.
References getAdditionalTableName().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::deleteAnswers | ( | int | $question_id | ) |
Definition at line 921 of file class.assQuestion.php.
References getAnswerTableName().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1468 of file class.assQuestion.php.
References getId(), getNotesManager(), getNotesRepo(), and getObjId().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 2744 of file class.assQuestion.php.
References getSolutionValues(), and removeSolutionRecordById().
Referenced by assFileUpload\saveWorkingData(), and assImagemapQuestion\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 959 of file class.assQuestion.php.
References $page, and ilPageObject\_exists().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 2758 of file class.assQuestion.php.
References getId(), and getStep().
Referenced by assImagemapQuestion\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::deleteSuggestedSolutions | ( | ) |
Definition at line 1501 of file class.assQuestion.php.
References ilInternalLink\_deleteAllLinksOfSource(), ilFileUtils\delDir(), getId(), getSuggestedSolutionPath(), and getSuggestedSolutionsRepo().
Here is the call graph for this function:
|
private |
Definition at line 1081 of file class.assQuestion.php.
References getId(), getObjId(), and ilObjTaxonomy\getUsageOfObject().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstract |
|
protected |
Definition at line 1434 of file class.assQuestion.php.
References getNotesDataService(), and getNotesManager().
Referenced by onCopy(), and onDuplicate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 2798 of file class.assQuestion.php.
References getSolutionValues(), and saveCurrentSolution().
Referenced by forceExistingIntermediateSolution().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 2372 of file class.assQuestion.php.
References ilAssQuestionHintList\duplicateListForQuestion(), ensureHintPageObjectExists(), getId(), and isAdditionalContentEditingModePageObject().
Referenced by onCopy(), and onDuplicate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 2391 of file class.assQuestion.php.
Referenced by onCopy(), onDuplicate(), and syncSkillAssignments().
Here is the caller graph for this function:
|
protected |
Duplicates the files of a suggested solution if the question is duplicated.
Definition at line 1529 of file class.assQuestion.php.
References $filename, getSuggestedSolutionPath(), and ilFileUtils\makeDirParents().
Referenced by onDuplicate().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::ensureHintPageObjectExists | ( | $pageObjectId | ) |
Definition at line 2435 of file class.assQuestion.php.
References ilPageObject\_exists(), and getId().
Referenced by duplicateQuestionHints().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1872 of file class.assQuestion.php.
References $points.
Referenced by assNumeric\calculateReachedPointsFromPreviewSession(), assErrorText\calculateReachedPointsFromPreviewSession(), assSingleChoice\calculateReachedPointsFromPreviewSession(), assImagemapQuestion\calculateReachedPointsFromPreviewSession(), assOrderingQuestion\calculateReachedPointsFromPreviewSession(), assFormulaQuestion\calculateReachedPointsFromPreviewSession(), calculateReachedPointsFromPreviewSession(), and assClozeTest\calculateReachedPointsFromPreviewSession().
Here is the caller graph for this function:
|
static |
Definition at line 2739 of file class.assQuestion.php.
References KEY_VALUES_IMPLOSION_SEPARATOR.
Referenced by assImagemapQuestion\getReuseSolutionSelectionParameter().
Here is the caller graph for this function:
|
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 3112 of file class.assQuestion.php.
Referenced by assTextSubset\getSolutionSubmit(), and assTextSubsetGUI\writeAnswerSpecificPostData().
Here is the caller graph for this function:| assQuestion::fetchIndexedValuesFromValuePairs | ( | array | $valuePairs | ) |
Definition at line 3024 of file class.assQuestion.php.
Referenced by assOrderingQuestion\calculateReachedPoints(), assOrderingQuestion\getOrderingElementListForSolutionOutput(), and assOrderingQuestion\getSolutionOrderingElementListForTestOutput().
Here is the caller graph for this function:| assQuestion::fetchValuePairsFromIndexedValues | ( | array | $indexedValues | ) |
Definition at line 3013 of file class.assQuestion.php.
| assQuestion::fixSvgToPng | ( | string | $imageFilenameContainingString | ) |
Definition at line 1194 of file class.assQuestion.php.
| assQuestion::fixUnavailableSkinImageSources | ( | string | $html | ) |
Definition at line 1201 of file class.assQuestion.php.
References ilUtil\getImagePath(), and ilFileUtils\removeTrailingPathSeparators().
Here is the call graph for this function:
|
protected |
Definition at line 2805 of file class.assQuestion.php.
References duplicateIntermediateSolutionAuthorized(), getSolutionValues(), saveCurrentSolution(), and updateCurrentSolutionsAuthorization().
Referenced by assFileUpload\saveWorkingData(), and assImagemapQuestion\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::formatSAQuestion | ( | $a_q | ) |
Definition at line 2296 of file class.assQuestion.php.
References getSelfAssessmentFormatter().
Referenced by assOrderingHorizontal\toJSON(), assTextSubset\toJSON(), assTextQuestion\toJSON(), assLongMenu\toJSON(), assKprimChoice\toJSON(), assErrorText\toJSON(), assImagemapQuestion\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), assOrderingQuestion\toJSON(), assMatchingQuestion\toJSON(), and assClozeTest\toJSON().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 301 of file class.assQuestion.php.
References getQuestionType(), and importHint().
Here is the call graph for this function:| 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 2194 of file class.assQuestion.php.
| assQuestion::getAdditionalContentEditingMode | ( | ) |
Definition at line 2482 of file class.assQuestion.php.
References $additionalContentEditingMode.
Referenced by createNewQuestion(), importHint(), isAdditionalContentEditingModePageObject(), assMultipleChoice\isForcedEmptySolution(), assSingleChoice\savePreviewData(), and saveQuestionDataToDb().
Here is the caller graph for this function:
|
abstract |
Referenced by deleteAdditionalTableData(), and getSolutionValues().
Here is the caller graph for this function:
|
final |
returns the reached points ...
Definition at line 601 of file class.assQuestion.php.
References adjustReachedPointsByScoringOptions(), calculateReachedPoints(), and getId().
Here is the call graph for this function:
|
abstract |
Referenced by deleteAnswers(), and getSolutionValues().
Here is the caller graph for this function:| assQuestion::getAuthor | ( | ) |
Definition at line 459 of file class.assQuestion.php.
References $author.
Referenced by createNewQuestion(), assOrderingQuestion\isComplete(), assClozeTest\isComplete(), and saveQuestionDataToDb().
Here is the caller graph for this function:| assQuestion::getAuthorForHTMLOutput | ( | ) |
Definition at line 464 of file class.assQuestion.php.
References ILIAS\Repository\refinery().
Here is the call graph for this function:| assQuestion::getComment | ( | ) |
Definition at line 425 of file class.assQuestion.php.
References $comment.
Referenced by saveQuestionDataToDb().
Here is the caller graph for this function:
|
protected |
Definition at line 2556 of file class.assQuestion.php.
References getId(), and getStep().
Referenced by assOrderingHorizontal\calculateReachedPoints(), assFileUpload\calculateReachedPoints(), assErrorText\calculateReachedPoints(), assKprimChoice\calculateReachedPoints(), assMultipleChoice\calculateReachedPoints(), assSingleChoice\calculateReachedPoints(), assTextSubset\calculateReachedPoints(), assTextQuestion\calculateReachedPoints(), assLongMenu\calculateReachedPoints(), assImagemapQuestion\calculateReachedPoints(), assMatchingQuestion\calculateReachedPoints(), assClozeTest\calculateReachedPoints(), assNumeric\calculateReachedPointsFromPreviewSession(), assNumeric\isValidSolutionSubmit(), and assSingleChoice\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getDefaultNrOfTries | ( | ) |
Definition at line 2352 of file class.assQuestion.php.
References $defaultnroftries.
Referenced by createNewQuestion().
Here is the caller graph for this function:| assQuestion::getDescriptionForHTMLOutput | ( | ) |
Definition at line 430 of file class.assQuestion.php.
References ILIAS\UI\examples\Symbol\Glyph\Comment\comment().
Here is the call graph for this function:| assQuestion::getExternalId | ( | ) |
Definition at line 499 of file class.assQuestion.php.
References $external_id, getId(), and IL_INST_ID.
Referenced by createNewQuestion(), and saveQuestionDataToDb().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 2214 of file class.assQuestion.php.
Referenced by assQuestionGUI\_getQuestionGUI(), and ilObjTest\createQuestionGUI().
Here is the caller graph for this function:| assQuestion::getHtmlQuestionContentPurifier | ( | ) |
Definition at line 2529 of file class.assQuestion.php.
References ilHtmlPurifierFactory\getInstanceByType().
Referenced by assKprimChoice\addAnswer(), assSingleChoice\addAnswer(), assMultipleChoice\addAnswer(), assClozeTest\getClozeTextForHTMLOutput(), purifyAndPrepareTextAreaOutput(), assKprimChoice\setAnswers(), and assLongMenu\setLongMenuTextValue().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getHtmlUserSolutionPurifier | ( | ) |
Definition at line 2521 of file class.assQuestion.php.
References ilHtmlPurifierFactory\getInstanceByType().
Referenced by assTextQuestion\getSolutionSubmit(), and assTextSubset\getSolutionSubmit().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getId | ( | ) |
Definition at line 410 of file class.assQuestion.php.
References $id.
Referenced by ilQuestionUsagesTableGUI\__construct(), ilQuestionCumulatedStatisticsTableGUI\__construct(), ilAssQuestionHintsOrderingClipboard\__construct(), assLongMenu\buildFolderName(), assOrderingQuestion\buildNestedOrderingElementInputGui(), assClozeTest\calculateCombinationResult(), calculateResultsFromSolution(), cleanupMediaObjectUsage(), assOrderingHorizontal\copyObject(), assFileUpload\copyObject(), assImagemapQuestion\copyObject(), assTextSubset\copyObject(), assOrderingQuestion\copyObject(), assTextQuestion\copyObject(), assMultipleChoice\copyObject(), assSingleChoice\copyObject(), assErrorText\copyObject(), assMatchingQuestion\copyObject(), assLongMenu\copyObject(), assKprimChoice\copyObject(), assFormulaQuestion\copyObject(), assClozeTest\copyObject(), copyXHTMLMediaObjectsOfQuestion(), assOrderingHorizontal\createNewOriginalFromThisDuplicate(), assNumeric\createNewOriginalFromThisDuplicate(), assFileUpload\createNewOriginalFromThisDuplicate(), assTextSubset\createNewOriginalFromThisDuplicate(), assImagemapQuestion\createNewOriginalFromThisDuplicate(), assTextQuestion\createNewOriginalFromThisDuplicate(), assOrderingQuestion\createNewOriginalFromThisDuplicate(), assSingleChoice\createNewOriginalFromThisDuplicate(), assMultipleChoice\createNewOriginalFromThisDuplicate(), assErrorText\createNewOriginalFromThisDuplicate(), assMatchingQuestion\createNewOriginalFromThisDuplicate(), assLongMenu\createNewOriginalFromThisDuplicate(), assKprimChoice\createNewOriginalFromThisDuplicate(), assFormulaQuestion\createNewOriginalFromThisDuplicate(), assClozeTest\createNewOriginalFromThisDuplicate(), createNewQuestion(), createPageObject(), deleteComments(), deleteSolutionRecordByValues(), deleteSuggestedSolutions(), deleteTaxonomyAssignments(), assOrderingHorizontal\duplicate(), assNumeric\duplicate(), assFileUpload\duplicate(), assOrderingQuestion\duplicate(), assImagemapQuestion\duplicate(), assTextSubset\duplicate(), assTextQuestion\duplicate(), assSingleChoice\duplicate(), assMultipleChoice\duplicate(), assErrorText\duplicate(), assMatchingQuestion\duplicate(), assLongMenu\duplicate(), assKprimChoice\duplicate(), assFormulaQuestion\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(), assMultipleChoice\getExpressionTypes(), assOrderingQuestion\getExpressionTypes(), assFormulaQuestion\getExpressionTypes(), assClozeTest\getExpressionTypes(), getExternalId(), assFileUpload\getFileUploadPath(), assFileUpload\getFileUploadPathWeb(), getInstances(), assTextQuestion\getLatestAutosaveContent(), assClozeTest\getMaximumPoints(), assOrderingQuestion\getOrderingElementList(), assErrorText\getParsedErrorTextForJS(), getReachedPoints(), assImagemapQuestion\getRTETextWithMediaObjects(), assMultipleChoice\getRTETextWithMediaObjects(), assSingleChoice\getRTETextWithMediaObjects(), getRTETextWithMediaObjects(), getSolutionMaxPass(), assOrderingQuestion\getSolutionOrderingElementList(), assTextQuestion\getSolutionSubmit(), getSolutionValues(), assFileUpload\getUploadedFiles(), assErrorText\getUserQuestionResult(), assMatchingQuestion\getUserQuestionResult(), assFormulaQuestion\getVariableSolutionValuesForPass(), assFileUpload\handleSubmission(), assFileUpload\hasFileUploads(), isAnswered(), assSingleChoice\isComplete(), assKprimChoice\isComplete(), assMultipleChoice\isForcedEmptySolution(), assNumeric\isValidSolutionSubmit(), assTextQuestion\loadFromDb(), loadSuggestedSolutions(), log(), assErrorText\logUserAction(), assLongMenu\lookupForExistingSolutions(), assFormulaQuestion\lookupForExistingSolutions(), lookupForExistingSolutions(), lookupMaxStep(), migrateContentForLearningModule(), ilAssNestedOrderingElementsInputGUI\prepareReprintable(), removeAllExistingSolutions(), removeCurrentSolution(), assFormulaQuestion\removeExistingSolutions(), removeExistingSolutions(), removeResultRecord(), ilAssOrderingQuestionAuthoringFormGUI\renewOrderingElementInput(), resolveSuggestedSolutionLinks(), 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(), assFormulaQuestion\saveCurrentSolution(), saveCurrentSolution(), assNumeric\savePreviewData(), assSingleChoice\savePreviewData(), assOrderingQuestion\savePreviewData(), saveQuestionDataToDb(), assMultipleChoice\saveToDb(), assFormulaQuestion\saveToDb(), saveToDb(), assOrderingHorizontal\saveWorkingData(), assSingleChoice\saveWorkingData(), assTextQuestion\saveWorkingData(), assTextSubset\saveWorkingData(), assLongMenu\saveWorkingData(), assFileUpload\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assFormulaQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), assClozeTest\saveWorkingData(), assFormulaQuestion\setId(), assOrderingQuestion\setOrderingElementList(), syncHints(), assMultipleChoice\syncImages(), syncSuggestedSolutions(), syncWithOriginal(), syncXHTMLMediaObjectsOfQuestion(), assOrderingHorizontal\toJSON(), assTextSubset\toJSON(), assTextQuestion\toJSON(), assLongMenu\toJSON(), assKprimChoice\toJSON(), assErrorText\toJSON(), assImagemapQuestion\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), assOrderingQuestion\toJSON(), assMatchingQuestion\toJSON(), assClozeTest\toJSON(), updateCurrentSolutionsAuthorization(), ilLOTestQuestionAdapter\updateQuestionResult(), and updateTimestamp().
Here is the caller graph for this function:| 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 795 of file class.assQuestion.php.
Referenced by assOrderingQuestion\buildOrderingImagesFormDataConverter(), assOrderingQuestion\cleanImagefiles(), assImagemapQuestion\copyImage(), assOrderingQuestion\copyImages(), assMatchingQuestion\copyImages(), assMultipleChoice\copyImages(), assMultipleChoice\deleteImage(), assSingleChoice\deleteImage(), assImagemapQuestion\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(), assOrderingQuestion\rebuildThumbnails(), assMatchingQuestion\rebuildThumbnails(), assSingleChoice\savePreviewData(), assMatchingQuestion\setExportDetailsXLSX(), assMultipleChoice\setImageFile(), assSingleChoice\setImageFile(), assMatchingQuestion\setImageFile(), assImagemapQuestion\setImageFilename(), assOrderingQuestion\storeImageFile(), assMultipleChoice\syncImages(), assSingleChoice\syncImages(), and assOrderingQuestion\updateImageFile().
Here is the caller graph for this function:| 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 823 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(), assKprimChoice\toJSON(), assImagemapQuestion\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), and assOrderingQuestion\toJSON().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getInstances | ( | ) |
Definition at line 2137 of file class.assQuestion.php.
References ILIAS\LTI\ToolProvider\$key, ilObject\_getAllReferences(), ilObjTest\_lookupAuthor(), ilObject\_lookupTitle(), and getId().
Here is the call graph for this function:| assQuestion::getLastChange | ( | ) |
| assQuestion::getLifecycle | ( | ) |
Definition at line 484 of file class.assQuestion.php.
References $lifecycle.
Referenced by saveToDb().
Here is the caller graph for this function:| assQuestion::getMaximumPoints | ( | ) |
Definition at line 589 of file class.assQuestion.php.
References $points.
Referenced by adjustReachedPointsByScoringOptions(), isPreviewSolutionCorrect(), and saveQuestionDataToDb().
Here is the caller graph for this function:| assQuestion::getMaximumThumbSize | ( | ) |
Definition at line 454 of file class.assQuestion.php.
| assQuestion::getMinimumThumbSize | ( | ) |
Definition at line 449 of file class.assQuestion.php.
Referenced by assOrderingQuestion\loadFromDb(), assSingleChoice\loadFromDb(), and assMultipleChoice\loadFromDb().
Here is the caller graph for this function:
|
protected |
Definition at line 1489 of file class.assQuestion.php.
References $service.
Referenced by duplicateComments().
Here is the caller graph for this function:
|
protected |
Definition at line 1483 of file class.assQuestion.php.
References $service.
Referenced by deleteComments(), and duplicateComments().
Here is the caller graph for this function:
|
protected |
Definition at line 1495 of file class.assQuestion.php.
References $service.
Referenced by deleteComments().
Here is the caller graph for this function:| assQuestion::getNrOfTries | ( | ) |
Definition at line 2264 of file class.assQuestion.php.
References $nr_of_tries.
Referenced by saveQuestionDataToDb(), assOrderingHorizontal\toJSON(), assTextSubset\toJSON(), assTextQuestion\toJSON(), assLongMenu\toJSON(), assKprimChoice\toJSON(), assErrorText\toJSON(), assImagemapQuestion\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), assOrderingQuestion\toJSON(), assMatchingQuestion\toJSON(), and assClozeTest\toJSON().
Here is the caller graph for this function:
|
staticprotected |
Definition at line 2456 of file class.assQuestion.php.
References $DIC, $ilDB, and $res.
Referenced by isAnswered().
Here is the caller graph for this function:| assQuestion::getObjId | ( | ) |
Definition at line 474 of file class.assQuestion.php.
References $obj_id.
Referenced by calculateResultsFromSolution(), assOrderingHorizontal\copyObject(), assNumeric\copyObject(), assFileUpload\copyObject(), assImagemapQuestion\copyObject(), assOrderingQuestion\copyObject(), assTextSubset\copyObject(), assTextQuestion\copyObject(), assMultipleChoice\copyObject(), assSingleChoice\copyObject(), assErrorText\copyObject(), assMatchingQuestion\copyObject(), assLongMenu\copyObject(), assKprimChoice\copyObject(), assFormulaQuestion\copyObject(), assClozeTest\copyObject(), assOrderingHorizontal\createNewOriginalFromThisDuplicate(), assNumeric\createNewOriginalFromThisDuplicate(), assFileUpload\createNewOriginalFromThisDuplicate(), assTextSubset\createNewOriginalFromThisDuplicate(), assImagemapQuestion\createNewOriginalFromThisDuplicate(), assTextQuestion\createNewOriginalFromThisDuplicate(), assOrderingQuestion\createNewOriginalFromThisDuplicate(), assMultipleChoice\createNewOriginalFromThisDuplicate(), assSingleChoice\createNewOriginalFromThisDuplicate(), assErrorText\createNewOriginalFromThisDuplicate(), assMatchingQuestion\createNewOriginalFromThisDuplicate(), assLongMenu\createNewOriginalFromThisDuplicate(), assKprimChoice\createNewOriginalFromThisDuplicate(), assFormulaQuestion\createNewOriginalFromThisDuplicate(), assClozeTest\createNewOriginalFromThisDuplicate(), createNewQuestion(), createPageObject(), delete(), deleteComments(), deleteTaxonomyAssignments(), assOrderingHorizontal\duplicate(), assNumeric\duplicate(), assFileUpload\duplicate(), assOrderingQuestion\duplicate(), assImagemapQuestion\duplicate(), assTextSubset\duplicate(), assTextQuestion\duplicate(), assSingleChoice\duplicate(), assMultipleChoice\duplicate(), assErrorText\duplicate(), assMatchingQuestion\duplicate(), assLongMenu\duplicate(), assKprimChoice\duplicate(), assFormulaQuestion\duplicate(), assClozeTest\duplicate(), saveQuestionDataToDb(), saveToDb(), and syncWithOriginal().
Here is the caller graph for this function:| assQuestion::getOriginalId | ( | ) |
Definition at line 1180 of file class.assQuestion.php.
References $original_id.
Referenced by syncWithOriginal().
Here is the caller graph for this function:| assQuestion::getOwner | ( | ) |
Definition at line 469 of file class.assQuestion.php.
References $owner.
Referenced by saveQuestionDataToDb(), and saveToDb().
Here is the caller graph for this function:| assQuestion::getPageOfQuestion | ( | ) |
Definition at line 1169 of file class.assQuestion.php.
References $page.
| assQuestion::getPoints | ( | ) |
Definition at line 1774 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(), assOrderingHorizontal\toJSON(), and assOrderingQuestion\toJSON().
Here is the caller graph for this function:| assQuestion::getPreventRteUsage | ( | ) |
| assQuestion::getProcessLocker | ( | ) |
Definition at line 286 of file class.assQuestion.php.
References $processLocker.
Referenced by calculateResultsFromSolution(), assKprimChoice\isComplete(), assMultipleChoice\isForcedEmptySolution(), assNumeric\isValidSolutionSubmit(), persistWorkingState(), removeIntermediateSolution(), resetUsersAnswer(), assOrderingHorizontal\saveWorkingData(), assErrorText\saveWorkingData(), assSingleChoice\saveWorkingData(), assTextQuestion\saveWorkingData(), assTextSubset\saveWorkingData(), assLongMenu\saveWorkingData(), assFileUpload\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assOrderingQuestion\saveWorkingData(), assFormulaQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), and assClozeTest\saveWorkingData().
Here is the caller graph for this function:| assQuestion::getQuestion | ( | ) |
Definition at line 2029 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(), assKprimChoice\toJSON(), assErrorText\toJSON(), assImagemapQuestion\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), assOrderingQuestion\toJSON(), assMatchingQuestion\toJSON(), and assClozeTest\toJSON().
Here is the caller graph for this function:
|
protected |
Definition at line 233 of file class.assQuestion.php.
Referenced by assFileUpload\isFileDeletionAction().
Here is the caller graph for this function:| assQuestion::getQuestionForHTMLOutput | ( | ) |
Definition at line 2034 of file class.assQuestion.php.
References purifyAndPrepareTextAreaOutput().
Here is the call graph for this function:
|
abstract |
Returns the question type of the question.
Referenced by fromXML(), getQuestionTypeID(), setExportDetailsXLSX(), setQuestion(), and toXML().
Here is the caller graph for this function:| assQuestion::getQuestionTypeID | ( | ) |
Definition at line 2065 of file class.assQuestion.php.
References getQuestionType().
Referenced by createNewQuestion(), and saveQuestionDataToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getReachedPoints | ( | int | $active_id, |
| int | $pass | ||
| ) |
Definition at line 584 of file class.assQuestion.php.
References getId().
Referenced by ilLOTestQuestionAdapter\updateQuestionResult().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 2113 of file class.assQuestion.php.
References getId(), ilAssQuestionHintList\getListByQuestionId(), and getQuestion().
Referenced by cleanupMediaObjectUsage().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getSelfAssessmentEditingMode | ( | ) |
Definition at line 2342 of file class.assQuestion.php.
References $selfassessmenteditingmode.
Referenced by ilAssQuestionAuthoringFormGUI\addGenericAssessmentQuestionCommandButtons().
Here is the caller graph for this function:
|
protected |
Definition at line 2301 of file class.assQuestion.php.
Referenced by formatSAQuestion().
Here is the caller graph for this function:| assQuestion::getShuffle | ( | ) |
Definition at line 415 of file class.assQuestion.php.
References $shuffle.
Referenced by assMultipleChoice\isForcedEmptySolution(), assSingleChoice\savePreviewData(), assTextQuestion\toJSON(), assLongMenu\toJSON(), assErrorText\toJSON(), assImagemapQuestion\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), and assClozeTest\toJSON().
Here is the caller graph for this function:| assQuestion::getShuffler | ( | ) |
Definition at line 271 of file class.assQuestion.php.
References $shuffler.
Referenced by assOrderingHorizontal\getRandomOrderingElements(), assOrderingQuestion\getShuffledOrderingElementList(), assOrderingQuestion\toJSON(), and assMatchingQuestion\toJSON().
Here is the caller graph for this function:| assQuestion::getSolutionMaxPass | ( | int | $active_id | ) |
Definition at line 1788 of file class.assQuestion.php.
References getId().
Referenced by assOrderingHorizontal\calculateReachedPoints(), assFileUpload\calculateReachedPoints(), assErrorText\calculateReachedPoints(), assKprimChoice\calculateReachedPoints(), assMultipleChoice\calculateReachedPoints(), assSingleChoice\calculateReachedPoints(), assTextSubset\calculateReachedPoints(), assTextQuestion\calculateReachedPoints(), assLongMenu\calculateReachedPoints(), assImagemapQuestion\calculateReachedPoints(), assOrderingQuestion\calculateReachedPoints(), assMatchingQuestion\calculateReachedPoints(), assFormulaQuestion\calculateReachedPoints(), assClozeTest\calculateReachedPoints(), assNumeric\calculateReachedPointsFromPreviewSession(), getSolutionValues(), and assFileUpload\getUploadedFiles().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 2605 of file class.assQuestion.php.
Referenced by assFileUpload\saveWorkingData().
Here is the caller graph for this function:| 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 862 of file class.assQuestion.php.
References getAdditionalTableName(), getAnswerTableName(), getId(), getSolutionMaxPass(), and getStep().
Referenced by assOrderingQuestion\calculateReachedPoints(), assFormulaQuestion\calculateReachedPoints(), deleteDummySolutionRecord(), duplicateIntermediateSolutionAuthorized(), forceExistingIntermediateSolution(), assOrderingQuestion\getOrderingElementListForSolutionOutput(), ilTestCorrectionsGUI\getSolutions(), ilTestCorrectionsGUI\getSolutionsByParticipantResults(), getTestOutputSolutions(), assFileUpload\getUploadedFilesForWeb(), assFileUpload\getUserSolutionPreferingIntermediate(), getUserSolutionPreferingIntermediate(), assOrderingHorizontal\setExportDetailsXLSX(), assErrorText\setExportDetailsXLSX(), assNumeric\setExportDetailsXLSX(), assTextSubset\setExportDetailsXLSX(), assTextQuestion\setExportDetailsXLSX(), assLongMenu\setExportDetailsXLSX(), assImagemapQuestion\setExportDetailsXLSX(), assFileUpload\setExportDetailsXLSX(), assKprimChoice\setExportDetailsXLSX(), assMultipleChoice\setExportDetailsXLSX(), assSingleChoice\setExportDetailsXLSX(), assOrderingQuestion\setExportDetailsXLSX(), assMatchingQuestion\setExportDetailsXLSX(), assFormulaQuestion\setExportDetailsXLSX(), and assClozeTest\setExportDetailsXLSX().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getStep | ( | ) |
Definition at line 2837 of file class.assQuestion.php.
References $step.
Referenced by calculateResultsFromSolution(), deleteSolutionRecordByValues(), getCurrentSolutionResultSet(), getSolutionValues(), assFileUpload\getUploadedFilesForWeb(), assLongMenu\lookupForExistingSolutions(), assFormulaQuestion\lookupForExistingSolutions(), lookupForExistingSolutions(), removeCurrentSolution(), assFormulaQuestion\removeExistingSolutions(), removeExistingSolutions(), removeResultRecord(), saveCurrentSolution(), assFormulaQuestion\saveWorkingData(), updateCurrentSolution(), and updateCurrentSolutionsAuthorization().
Here is the caller graph for this function:| assQuestion::getSuggestedSolution | ( | int | $subquestion_index = 0 | ) |
Definition at line 1510 of file class.assQuestion.php.
| assQuestion::getSuggestedSolutionOutput | ( | ) |
Definition at line 519 of file class.assQuestion.php.
References _getInternalLinkHref(), getSuggestedSolutionPathWeb(), ILIAS\Repository\lng(), ilLegacyFormElementsUtil\prepareFormOutput(), ilWACSignedPath\setTokenMaxLifetimeInSeconds(), and ilWACSignedPath\signFile().
Here is the call graph for this function:| assQuestion::getSuggestedSolutionPath | ( | ) |
Definition at line 786 of file class.assQuestion.php.
References CLIENT_WEB_DIR.
Referenced by copySuggestedSolutionFiles(), deleteSuggestedSolutions(), duplicateSuggestedSolutionFiles(), and syncSuggestedSolutionFiles().
Here is the caller graph for this function:| assQuestion::getSuggestedSolutionPathWeb | ( | ) |
Definition at line 808 of file class.assQuestion.php.
References CLIENT_WEB_DIR, and ilFileUtils\removeTrailingPathSeparators().
Referenced by getSuggestedSolutionOutput().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getSuggestedSolutions | ( | ) |
Definition at line 560 of file class.assQuestion.php.
References $suggested_solutions.
Referenced by copySuggestedSolutions().
Here is the caller graph for this function:
|
protected |
Definition at line 3083 of file class.assQuestion.php.
References $suggestedsolution_repo, and ilQuestionPoolDIC\dic().
Referenced by copySuggestedSolutions(), delete(), deleteSuggestedSolutions(), loadSuggestedSolutions(), and syncSuggestedSolutions().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getTestId | ( | ) |
Definition at line 420 of file class.assQuestion.php.
References $test_id.
Referenced by resetUsersAnswer().
Here is the caller graph for this function:| assQuestion::getTestOutputSolutions | ( | int | $activeId, |
| int | $pass | ||
| ) |
Definition at line 837 of file class.assQuestion.php.
References getSolutionValues(), getTestPresentationConfig(), and getUserSolutionPreferingIntermediate().
Referenced by assOrderingQuestion\getSolutionOrderingElementListForTestOutput().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getTestPresentationConfig | ( | ) |
Definition at line 3062 of file class.assQuestion.php.
References $testQuestionConfigInstance, and buildTestPresentationConfig().
Referenced by getTestOutputSolutions(), ilTestPlayerAbstractGUI\initTestQuestionConfig(), assFileUpload\isFileReuseHandlingRequired(), and assImagemapQuestion\isReuseSolutionSelectionRequest().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getThumbSize | ( | ) |
Definition at line 435 of file class.assQuestion.php.
References $thumb_size.
Referenced by assOrderingQuestion\generateThumbForFile(), assSingleChoice\isComplete(), assMultipleChoice\isForcedEmptySolution(), assSingleChoice\savePreviewData(), assOrderingQuestion\savePreviewData(), assOrderingQuestion\setContentType(), assMultipleChoice\setImageFile(), assSingleChoice\setImageFile(), assOrderingQuestion\storeImageFile(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), and assOrderingQuestion\updateImageFile().
Here is the caller graph for this function:| assQuestion::getTitle | ( | ) |
Definition at line 395 of file class.assQuestion.php.
References $title.
Referenced by getTitleFilenameCompliant(), assOrderingQuestion\isComplete(), assClozeTest\isComplete(), saveQuestionDataToDb(), and setExportDetailsXLSX().
Here is the caller graph for this function:| assQuestion::getTitleFilenameCompliant | ( | ) |
Definition at line 405 of file class.assQuestion.php.
References ilFileUtils\getASCIIFilename(), and getTitle().
Here is the call graph for this function:| assQuestion::getTitleForHTMLOutput | ( | ) |
Definition at line 400 of file class.assQuestion.php.
Referenced by ilAssQuestionHintsTableGUI\__construct(), assOrderingHorizontal\toJSON(), assTextSubset\toJSON(), assTextQuestion\toJSON(), assLongMenu\toJSON(), assKprimChoice\toJSON(), assErrorText\toJSON(), assImagemapQuestion\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), assOrderingQuestion\toJSON(), assMatchingQuestion\toJSON(), and assClozeTest\toJSON().
Here is the caller graph for this function:| assQuestion::getTotalAnswers | ( | ) |
Definition at line 1091 of file class.assQuestion.php.
| assQuestion::getUserSolutionPreferingIntermediate | ( | int | $active_id, |
$pass = null |
|||
| ) |
Definition at line 846 of file class.assQuestion.php.
References getSolutionValues().
Referenced by getTestOutputSolutions().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getValidAdditionalContentEditingModes | ( | ) |
Definition at line 2510 of file class.assQuestion.php.
Referenced by isValidAdditionalContentEditingMode(), and setAdditionalContentEditingMode().
Here is the caller graph for this function:| assQuestion::hasSpecificFeedback | ( | ) |
Definition at line 2209 of file class.assQuestion.php.
|
static |
Definition at line 2734 of file class.assQuestion.php.
References KEY_VALUES_IMPLOSION_SEPARATOR.
Referenced by assImagemapQuestionGUI\buildSelectionParameter().
Here is the caller graph for this function:
|
private |
Definition at line 313 of file class.assQuestion.php.
References getAdditionalContentEditingMode().
Referenced by fromXML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| int | $question_id |
| InvalidArgumentException |
Definition at line 1753 of file class.assQuestion.php.
References $DIC, $ilDB, and $question.
Referenced by ilObjTest\_instanciateQuestion(), ilTestFixedQuestionSetConfig\cloneQuestionSetRelatedData(), ilObjTestGUI\copyAndLinkQuestionsToPoolObject(), ilPCQuestion\copyPoolQuestionIntoPage(), ilObjQuestionPool\deleteQuestion(), ilTestEvaluationGUI\exportFileUploadsForAllParticipants(), ilTestEvaluationGUI\exportQuestionForAllParticipants(), ilTestResultsToXML\exportTestResults(), ilAssLacQuestionProvider\getQuestion(), ilTestPlayerAbstractGUI\getQuestionInstance(), ilTestExport\getQuestionQtiXml(), ilTestRandomQuestionSetPoolDeriver\getQuestionsForPool(), ilTestSequence\getSequenceSummary(), ilPCQuestion\handleCopiedContent(), ilQuestionPageParser\processPagesToParse(), ilAssIncompleteQuestionPurger\purgeQuestionIds(), ilTestRandomQuestionSetStagingPoolBuilder\removeStagedQuestions(), ilTestScoringByQuestionsGUI\saveManScoringByQuestion(), ilSoapTestAdministration\saveQuestion(), ilSoapTestAdministration\saveQuestionSolution(), ilTestEvaluationGUI\singleResults(), ilTestRandomQuestionSetStagingPoolBuilder\stageQuestionsFromSourcePool(), ilTestRandomQuestionSetStagingPoolBuilder\stageQuestionsFromSourcePoolCheap(), ilAssQuestionSkillAssignmentsGUI\syncOriginalCmd(), and ilExcelTestExport\withUserPages().
Here is the caller graph for this function:
|
static |
Definition at line 2221 of file class.assQuestion.php.
References $DIC, $ilDB, and ilObjAssessmentFolder\_enabledAssessmentLogging().
Referenced by ilObjTestGUI\copyQuestionObject(), ilObjTestGUI\copyQuestionToPool(), ilObjQuestionPool\createQuestion(), ilQuestionPoolPrintViewTableGUI\fillRow(), ilTestCorrectionsGUI\getQuestion(), and ilAssQuestionPreviewGUI\initQuestion().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::intermediateSolutionExists | ( | int | $active_id, |
| int | $pass | ||
| ) |
Definition at line 2862 of file class.assQuestion.php.
References lookupForExistingSolutions().
Referenced by assFileUpload\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::isAddableAnswerOptionValue | ( | int | $qIndex, |
| string | $answerOptionValue | ||
| ) |
Definition at line 2938 of file class.assQuestion.php.
| assQuestion::isAdditionalContentEditingModePageObject | ( | ) |
Definition at line 2496 of file class.assQuestion.php.
References ADDITIONAL_CONTENT_EDITING_MODE_IPE, and getAdditionalContentEditingMode().
Referenced by delete(), duplicateQuestionHints(), assClozeTest\getClozeTextForHTMLOutput(), and purifyAndPrepareTextAreaOutput().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::isAnswered | ( | int | $active_id, |
| int | $pass | ||
| ) |
Definition at line 2445 of file class.assQuestion.php.
References getId(), and getNumExistingSolutionRecords().
Referenced by calculateResultsFromSolution().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstract |
Returns true, if a question is complete for use.
Referenced by saveQuestionDataToDb(), saveToDb(), and toXML().
Here is the caller graph for this function:
|
protected |
Definition at line 2753 of file class.assQuestion.php.
Referenced by assFileUpload\calculateReachedPoints().
Here is the caller graph for this function:
|
static |
Definition at line 1112 of file class.assQuestion.php.
Referenced by assMatchingQuestion\copyImages().
Here is the caller graph for this function:
|
static |
Definition at line 228 of file class.assQuestion.php.
|
protected |
Definition at line 246 of file class.assQuestion.php.
Referenced by assFileUpload\isFileDeletionSubmitAvailable(), and assFileUpload\isFileReuseSubmitAvailable().
Here is the caller graph for this function:
|
static |
Definition at line 2451 of file class.assQuestion.php.
Referenced by assMultipleChoice\getSpecificFeedbackAllCorrectOptionLabel().
Here is the caller graph for this function:| assQuestion::isPreviewSolutionCorrect | ( | ilAssQuestionPreviewSession | $previewSession | ) |
Definition at line 1877 of file class.assQuestion.php.
References calculateReachedPointsFromPreviewSession(), and getMaximumPoints().
Here is the call graph for this function:| assQuestion::isValidAdditionalContentEditingMode | ( | string | $additionalContentEditingMode | ) |
Definition at line 2501 of file class.assQuestion.php.
References getValidAdditionalContentEditingModes().
Here is the call graph for this function:
|
protected |
Definition at line 2327 of file class.assQuestion.php.
References ilAssSelfAssessmentMigrator\migrateToLmContent(), and setQuestion().
Referenced by migrateContentForLearningModule().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 2332 of file class.assQuestion.php.
Referenced by migrateContentForLearningModule().
Here is the caller graph for this function:| assQuestion::loadFromDb | ( | int | $question_id | ) |
Definition at line 1238 of file class.assQuestion.php.
References $data, and loadSuggestedSolutions().
Referenced by assNumeric\saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 3092 of file class.assQuestion.php.
References getId(), and getSuggestedSolutionsRepo().
Referenced by loadFromDb().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 263 of file class.assQuestion.php.
References $message, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), getId(), ILIAS\Repository\lng(), and logAction().
Referenced by resetUsersAnswer(), and assOrderingQuestion\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 772 of file class.assQuestion.php.
References $DIC, $original_id, ilObjAssessmentFolder\_addLog(), and ilObjTest\_getObjectIDFromActiveID().
Referenced by _setReachedPoints(), calculateResultsFromSolution(), assKprimChoice\isComplete(), assMultipleChoice\isForcedEmptySolution(), assNumeric\isValidSolutionSubmit(), log(), assErrorText\logUserAction(), assOrderingHorizontal\saveWorkingData(), assSingleChoice\saveWorkingData(), assTextQuestion\saveWorkingData(), assTextSubset\saveWorkingData(), assLongMenu\saveWorkingData(), assFileUpload\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assFormulaQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), and assClozeTest\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::lookupForExistingSolutions | ( | int | $activeId, |
| int | $pass | ||
| ) |
Lookup if an authorized or intermediate solution exists.
Definition at line 2902 of file class.assQuestion.php.
References getId(), and getStep().
Referenced by authorizedOrIntermediateSolutionExists(), authorizedSolutionExists(), calculateResultsFromSolution(), and intermediateSolutionExists().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 2884 of file class.assQuestion.php.
References getId().
Referenced by assNumeric\getExpressionTypes(), assOrderingHorizontal\getExpressionTypes(), assTextSubset\getExpressionTypes(), assImagemapQuestion\getExpressionTypes(), assSingleChoice\getExpressionTypes(), assMultipleChoice\getExpressionTypes(), assOrderingQuestion\getExpressionTypes(), assFormulaQuestion\getExpressionTypes(), assClozeTest\getExpressionTypes(), and assMatchingQuestion\getUserQuestionResult().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 2359 of file class.assQuestion.php.
References $DIC, $ilDB, and $res.
Referenced by ilObjTestGUI\copyAndLinkToQuestionpoolObject(), and ilAssQuestionSkillAssignmentsGUI\isSyncOriginalPossibleAndAllowed().
Here is the caller graph for this function:| assQuestion::migrateContentForLearningModule | ( | ilAssSelfAssessmentMigrator | $migrator | ) |
Definition at line 2318 of file class.assQuestion.php.
References getId(), lmMigrateQuestionTypeGenericContent(), lmMigrateQuestionTypeSpecificContent(), and saveToDb().
Referenced by ilAssSelfAssessmentQuestionFormatter\prepareQuestionForLearningModule().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1424 of file class.assQuestion.php.
References copySuggestedSolutionFiles(), copySuggestedSolutions(), duplicateComments(), duplicateQuestionHints(), and duplicateSkillAssignments().
Here is the call graph for this function:
|
protected |
Definition at line 1405 of file class.assQuestion.php.
References copySuggestedSolutions(), duplicateComments(), duplicateQuestionHints(), duplicateSkillAssignments(), and duplicateSuggestedSolutionFiles().
Here is the call graph for this function:
|
final |
persists the preview state for current user and question
Definition at line 746 of file class.assQuestion.php.
References savePreviewData(), and validateSolutionSubmit().
Here is the call graph for this function:
|
final |
persists the working state for current testactive and testpass
Definition at line 716 of file class.assQuestion.php.
References ilObjTest\_getPass(), calculateResultsFromSolution(), getProcessLocker(), removeIntermediateSolution(), saveWorkingData(), and validateSolutionSubmit().
Here is the call graph for this function:
|
protected |
Definition at line 2039 of file class.assQuestion.php.
References getHtmlQuestionContentPurifier(), isAdditionalContentEditingModePageObject(), and ilLegacyFormElementsUtil\prepareTextareaOutput().
Referenced by getQuestionForHTMLOutput(), and assFormulaQuestion\substituteVariables().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::removeAllExistingSolutions | ( | ) |
Definition at line 2947 of file class.assQuestion.php.
References getId().
Here is the call graph for this function:| assQuestion::removeCurrentSolution | ( | int | $active_id, |
| int | $pass, | ||
| bool | $authorized = true |
||
| ) |
Definition at line 2630 of file class.assQuestion.php.
References getId(), and getStep().
Referenced by assKprimChoice\isComplete(), assMultipleChoice\isForcedEmptySolution(), removeIntermediateSolution(), assOrderingHorizontal\saveWorkingData(), assErrorText\saveWorkingData(), assTextQuestion\saveWorkingData(), assTextSubset\saveWorkingData(), assLongMenu\saveWorkingData(), assFileUpload\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assOrderingQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), and assClozeTest\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::removeExistingSolutions | ( | int | $activeId, |
| int | $pass | ||
| ) |
Definition at line 2953 of file class.assQuestion.php.
References getId(), and getStep().
Referenced by resetUsersAnswer().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::removeIntermediateSolution | ( | int | $active_id, |
| int | $pass | ||
| ) |
Definition at line 2620 of file class.assQuestion.php.
References getProcessLocker(), and removeCurrentSolution().
Referenced by persistWorkingState().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::removeResultRecord | ( | int | $activeId, |
| int | $pass | ||
| ) |
Definition at line 2993 of file class.assQuestion.php.
References getId(), and getStep().
Referenced by resetUsersAnswer().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 2592 of file class.assQuestion.php.
Referenced by deleteDummySolutionRecord(), assNumeric\isValidSolutionSubmit(), and assSingleChoice\saveWorkingData().
Here is the caller graph for this function:
|
static |
Definition at line 1391 of file class.assQuestion.php.
Referenced by ilTestRandomQuestionSetPoolDeriver\updateTestQuestionStage().
Here is the caller graph for this function:| assQuestion::resetUsersAnswer | ( | int | $activeId, |
| int | $pass | ||
| ) |
Definition at line 2973 of file class.assQuestion.php.
References areObligationsToBeConsidered(), getProcessLocker(), getTestId(), log(), removeExistingSolutions(), and removeResultRecord().
Here is the call graph for this function:| assQuestion::resolveInternalLink | ( | string | $internal_link | ) |
Definition at line 1611 of file class.assQuestion.php.
References ilInternalLink\_getIdForImportId(), and ilLMObject\_getIdForImportId().
Referenced by resolveSuggestedSolutionLinks().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::resolveSuggestedSolutionLinks | ( | ) |
Definition at line 1640 of file class.assQuestion.php.
References ilInternalLink\_deleteAllLinksOfSource(), ilInternalLink\_saveLink(), getId(), and resolveInternalLink().
Here is the call graph for this function:| assQuestion::saveCurrentSolution | ( | int | $active_id, |
| int | $pass, | ||
| $value1, | |||
| $value2, | |||
| bool | $authorized = true, |
||
$tstamp = 0 |
|||
| ) |
Definition at line 2665 of file class.assQuestion.php.
References getId(), and getStep().
Referenced by duplicateIntermediateSolutionAuthorized(), forceExistingIntermediateSolution(), assKprimChoice\isComplete(), assMultipleChoice\isForcedEmptySolution(), assNumeric\isValidSolutionSubmit(), assOrderingHorizontal\saveWorkingData(), assErrorText\saveWorkingData(), assSingleChoice\saveWorkingData(), assTextQuestion\saveWorkingData(), assTextSubset\saveWorkingData(), assLongMenu\saveWorkingData(), assFileUpload\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assOrderingQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), and assClozeTest\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1378 of file class.assQuestion.php.
Referenced by ilObjTestGUI\copyAndLinkQuestionsToPoolObject(), and ilTestRandomQuestionSetPoolDeriver\updateTestQuestionStage().
Here is the caller graph for this function:
|
protected |
Definition at line 767 of file class.assQuestion.php.
References ilAssQuestionPreviewSession\setParticipantsSolution().
Referenced by persistPreviewState().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::saveQuestionDataToDb | ( | int | $original_id = -1 | ) |
Definition at line 1309 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(), assErrorText\saveToDb(), assFileUpload\saveToDb(), assTextSubset\saveToDb(), assTextQuestion\saveToDb(), assImagemapQuestion\saveToDb(), assOrderingQuestion\saveToDb(), assMultipleChoice\saveToDb(), assMatchingQuestion\saveToDb(), assLongMenu\saveToDb(), assClozeTest\saveToDb(), assKprimChoice\saveToDb(), and assFormulaQuestion\saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::saveToDb | ( | ) |
Definition at line 1352 of file class.assQuestion.php.
References ilObjQuestionPool\_updateQuestionCount(), cleanupMediaObjectUsage(), getId(), getLifecycle(), getObjId(), getOwner(), and isComplete().
Referenced by assSingleChoice\isComplete(), and migrateContentForLearningModule().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:| assQuestion::setAdditionalContentEditingMode | ( | ?string | $additionalContentEditingMode | ) |
Definition at line 2487 of file class.assQuestion.php.
References $additionalContentEditingMode, and getValidAdditionalContentEditingModes().
Referenced by assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), and assNumeric\saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::setAuthor | ( | string | $author = "" | ) |
Definition at line 382 of file class.assQuestion.php.
References $author.
Referenced by __construct(), assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), and assNumeric\saveToDb().
Here is the caller graph for this function:| assQuestion::setComment | ( | string | $comment = "" | ) |
Definition at line 372 of file class.assQuestion.php.
References $comment, and ILIAS\UI\examples\Symbol\Glyph\Comment\comment().
Referenced by assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), and assNumeric\saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::setDefaultNrOfTries | ( | int | $defaultnroftries | ) |
| assQuestion::setExportDetailsXLSX | ( | ilAssExcelFormatHelper | $worksheet, |
| int | $startrow, | ||
| int | $col, | ||
| int | $active_id, | ||
| int | $pass | ||
| ) |
Definition at line 2256 of file class.assQuestion.php.
References ilExcel\getColumnCoord(), getQuestionType(), getTitle(), ILIAS\Repository\lng(), and ilAssExcelFormatHelper\setFormattedExcelTitle().
Here is the call graph for this function:| assQuestion::setExportImagePath | ( | string | $path | ) |
| assQuestion::setExternalId | ( | ?string | $external_id | ) |
Definition at line 494 of file class.assQuestion.php.
References $external_id.
Referenced by __construct().
Here is the caller graph for this function:
|
static |
Definition at line 223 of file class.assQuestion.php.
References $forcePassResultsUpdateEnabled.
| assQuestion::setId | ( | int | $id = -1 | ) |
Definition at line 362 of file class.assQuestion.php.
References $id.
Referenced by createNewQuestion(), assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), saveQuestionDataToDb(), and assNumeric\saveToDb().
Here is the caller graph for this function:| assQuestion::setLastChange | ( | $lastChange | ) |
Definition at line 2546 of file class.assQuestion.php.
References $lastChange.
Referenced by assKprimChoice\loadFromDb().
Here is the caller graph for this function:| assQuestion::setLifecycle | ( | ilAssQuestionLifecycle | $lifecycle | ) |
Definition at line 489 of file class.assQuestion.php.
References $lifecycle.
Referenced by assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), and assNumeric\saveToDb().
Here is the caller graph for this function:| assQuestion::setNrOfTries | ( | int | $a_nr_of_tries | ) |
Definition at line 2269 of file class.assQuestion.php.
Referenced by assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assSingleChoice\loadFromDb(), assErrorText\loadFromDb(), assMultipleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), and assNumeric\saveToDb().
Here is the caller graph for this function:| assQuestion::setObjId | ( | int | $obj_id = 0 | ) |
Definition at line 479 of file class.assQuestion.php.
References $obj_id.
Referenced by assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), and assNumeric\saveToDb().
Here is the caller graph for this function:| assQuestion::setObligationsToBeConsidered | ( | bool | $obligationsToBeConsidered | ) |
Definition at line 3040 of file class.assQuestion.php.
References $obligationsToBeConsidered.
| assQuestion::setOriginalId | ( | ?int | $original_id | ) |
Definition at line 1175 of file class.assQuestion.php.
References $original_id.
Referenced by assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), and assNumeric\saveToDb().
Here is the caller graph for this function:| assQuestion::setOwner | ( | int | $owner = -1 | ) |
Definition at line 390 of file class.assQuestion.php.
References $owner.
Referenced by __construct(), assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), and assNumeric\saveToDb().
Here is the caller graph for this function:| assQuestion::setPoints | ( | float | $points | ) |
Definition at line 1783 of file class.assQuestion.php.
References $points.
Referenced by assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), assLongMenu\saveAnswerSpecificDataToDb(), and assNumeric\saveToDb().
Here is the caller graph for this function:| assQuestion::setPreventRteUsage | ( | bool | $prevent_rte_usage | ) |
| assQuestion::setProcessLocker | ( | ilAssQuestionProcessLocker | $processLocker | ) |
Definition at line 281 of file class.assQuestion.php.
References $processLocker.
| assQuestion::setQuestion | ( | string | $question = "" | ) |
Definition at line 2053 of file class.assQuestion.php.
References $question, and getQuestionType().
Referenced by assClozeTest\__construct(), __construct(), lmMigrateQuestionTypeGenericContent(), assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assSingleChoice\loadFromDb(), assErrorText\loadFromDb(), assMultipleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), and assNumeric\saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::setSelfAssessmentEditingMode | ( | bool | $selfassessmenteditingmode | ) |
Definition at line 2337 of file class.assQuestion.php.
References $selfassessmenteditingmode.
| assQuestion::setShuffle | ( | ?bool | $shuffle = true | ) |
Definition at line 377 of file class.assQuestion.php.
Referenced by assTextQuestion\loadFromDb(), assSingleChoice\loadFromDb(), and assMultipleChoice\loadFromDb().
Here is the caller graph for this function:| assQuestion::setShuffler | ( | Transformation | $shuffler | ) |
Definition at line 276 of file class.assQuestion.php.
References $shuffler.
Referenced by assMatchingQuestion\toJSON().
Here is the caller graph for this function:| assQuestion::setStep | ( | $step | ) |
| int | null | $step |
Definition at line 2829 of file class.assQuestion.php.
References $step.
Referenced by assFileUpload\getUploadedFilesForWeb().
Here is the caller graph for this function:| assQuestion::setTestId | ( | int | $id = -1 | ) |
| assQuestion::setThumbSize | ( | int | $a_size | ) |
Definition at line 440 of file class.assQuestion.php.
Referenced by assOrderingQuestion\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), and assOrderingQuestion\setContentType().
Here is the caller graph for this function:| assQuestion::setTitle | ( | string | $title = "" | ) |
Definition at line 357 of file class.assQuestion.php.
References $title.
Referenced by assOrderingHorizontal\loadFromDb(), assTextSubset\loadFromDb(), assFileUpload\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assImagemapQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), and assNumeric\saveToDb().
Here is the caller graph for this function:| assQuestion::syncHints | ( | ) |
Definition at line 2079 of file class.assQuestion.php.
References getId().
Referenced by syncWithOriginal().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::syncSkillAssignments | ( | int | $srcParentId, |
| int | $srcQuestionId, | ||
| int | $trgParentId, | ||
| int | $trgQuestionId | ||
| ) |
Definition at line 2412 of file class.assQuestion.php.
References duplicateSkillAssignments().
Here is the call graph for this function:
|
protected |
Definition at line 1554 of file class.assQuestion.php.
References $filename, ilFileUtils\delDir(), getSuggestedSolutionPath(), and ilFileUtils\makeDirParents().
Referenced by syncSuggestedSolutions().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1518 of file class.assQuestion.php.
References getId(), getSuggestedSolutionsRepo(), and syncSuggestedSolutionFiles().
Referenced by syncWithOriginal().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::syncWithOriginal | ( | ) |
Definition at line 1715 of file class.assQuestion.php.
References afterSyncWithOriginal(), beforeSyncWithOriginal(), getId(), getObjId(), getOriginalId(), syncHints(), syncSuggestedSolutions(), and syncXHTMLMediaObjectsOfQuestion().
Here is the call graph for this function:| assQuestion::syncXHTMLMediaObjectsOfQuestion | ( | ) |
Definition at line 1137 of file class.assQuestion.php.
References ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_saveUsage(), and getId().
Referenced by syncWithOriginal().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::toJSON | ( | ) |
Definition at line 2854 of file class.assQuestion.php.
References duplicate(), and ILIAS\Repository\int().
Here is the call graph for this function:| 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 338 of file class.assQuestion.php.
References getQuestionType(), and isComplete().
Here is the call graph for this function:| assQuestion::updateCurrentSolution | ( | int | $solutionId, |
| $value1, | |||
| $value2, | |||
| bool | $authorized = true |
||
| ) |
Definition at line 2688 of file class.assQuestion.php.
References getStep().
Referenced by assNumeric\isValidSolutionSubmit(), and assSingleChoice\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::updateCurrentSolutionsAuthorization | ( | int | $activeId, |
| int | $pass, | ||
| bool | $authorized, | ||
| bool | $keepTime = false |
||
| ) |
Definition at line 2707 of file class.assQuestion.php.
References getId(), and getStep().
Referenced by forceExistingIntermediateSolution(), assFileUpload\saveWorkingData(), and assImagemapQuestion\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::updateTimestamp | ( | ) |
Definition at line 3045 of file class.assQuestion.php.
References getId().
Here is the call graph for this function:| assQuestion::validateSolutionSubmit | ( | ) |
Definition at line 752 of file class.assQuestion.php.
References saveWorkingData().
Referenced by persistPreviewState(), and persistWorkingState().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 138 of file class.assQuestion.php.
Referenced by getAdditionalContentEditingMode(), and setAdditionalContentEditingMode().
|
protected |
Definition at line 67 of file class.assQuestion.php.
Referenced by assFormulaQuestion\__construct(), assLongMenu\__construct(), assOrderingHorizontal\__construct(), assNumeric\__construct(), assKprimChoice\__construct(), assErrorText\__construct(), assTextSubset\__construct(), assImagemapQuestion\__construct(), assSingleChoice\__construct(), assTextQuestion\__construct(), assOrderingQuestion\__construct(), assMultipleChoice\__construct(), assMatchingQuestion\__construct(), assClozeTest\__construct(), assOrderingHorizontal\duplicate(), assNumeric\duplicate(), assFileUpload\duplicate(), assOrderingQuestion\duplicate(), assImagemapQuestion\duplicate(), assTextSubset\duplicate(), assTextQuestion\duplicate(), assMultipleChoice\duplicate(), assSingleChoice\duplicate(), assErrorText\duplicate(), assMatchingQuestion\duplicate(), assLongMenu\duplicate(), assKprimChoice\duplicate(), assFormulaQuestion\duplicate(), assClozeTest\duplicate(), getAuthor(), and setAuthor().
|
protected |
Definition at line 65 of file class.assQuestion.php.
Referenced by assFormulaQuestion\__construct(), assLongMenu\__construct(), assOrderingHorizontal\__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 167 of file class.assQuestion.php.
Referenced by createNewQuestion().
|
protected |
Definition at line 106 of file class.assQuestion.php.
Referenced by assClozeTest\calculateReachedPoints(), and assFormulaQuestion\saveToDb().
| int assQuestion::$defaultnroftries = 0 |
Definition at line 146 of file class.assQuestion.php.
Referenced by getDefaultNrOfTries(), and setDefaultNrOfTries().
|
protected |
Definition at line 108 of file class.assQuestion.php.
|
private |
(Web) Path to images
Definition at line 131 of file class.assQuestion.php.
Referenced by getImagePathWeb().
|
protected |
Definition at line 133 of file class.assQuestion.php.
Referenced by getExternalId(), and setExternalId().
| ilAssQuestionFeedback assQuestion::$feedbackOBJ |
Definition at line 140 of file class.assQuestion.php.
|
staticprotected |
Definition at line 221 of file class.assQuestion.php.
Referenced by setForcePassResultUpdateEnabled().
|
protected |
Definition at line 58 of file class.assQuestion.php.
|
protected |
Definition at line 63 of file class.assQuestion.php.
Referenced by assFormulaQuestion\addResultUnits(), assOrderingHorizontal\createNewOriginalFromThisDuplicate(), assNumeric\createNewOriginalFromThisDuplicate(), assFileUpload\createNewOriginalFromThisDuplicate(), assTextSubset\createNewOriginalFromThisDuplicate(), assImagemapQuestion\createNewOriginalFromThisDuplicate(), assTextQuestion\createNewOriginalFromThisDuplicate(), assOrderingQuestion\createNewOriginalFromThisDuplicate(), assMultipleChoice\createNewOriginalFromThisDuplicate(), assSingleChoice\createNewOriginalFromThisDuplicate(), assErrorText\createNewOriginalFromThisDuplicate(), assMatchingQuestion\createNewOriginalFromThisDuplicate(), assLongMenu\createNewOriginalFromThisDuplicate(), assKprimChoice\createNewOriginalFromThisDuplicate(), assFormulaQuestion\createNewOriginalFromThisDuplicate(), assClozeTest\createNewOriginalFromThisDuplicate(), getId(), getImagePath(), assImagemapQuestion\setExportDetailsXLSX(), assKprimChoice\setExportDetailsXLSX(), assMultipleChoice\setExportDetailsXLSX(), assSingleChoice\setExportDetailsXLSX(), setId(), assFormulaQuestion\setId(), and setTestId().
|
protected |
Definition at line 100 of file class.assQuestion.php.
|
protected |
Definition at line 61 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(), assMultipleChoice\syncImages(), and assSingleChoice\syncImages().
|
staticprotected |
Definition at line 1185 of file class.assQuestion.php.
|
protected |
Definition at line 157 of file class.assQuestion.php.
Referenced by getLastChange(), and setLastChange().
|
protected |
Definition at line 165 of file class.assQuestion.php.
Referenced by getLifecycle(), and setLifecycle().
|
protected |
Definition at line 104 of file class.assQuestion.php.
Referenced by __construct().
|
private |
Definition at line 126 of file class.assQuestion.php.
Referenced by getNrOfTries().
|
protected |
Object id of the container object.
Definition at line 93 of file class.assQuestion.php.
Referenced by getImagePath(), getObjId(), and setObjId().
|
private |
Definition at line 161 of file class.assQuestion.php.
Referenced by areObligationsToBeConsidered(), and setObligationsToBeConsidered().
|
protected |
Definition at line 117 of file class.assQuestion.php.
Referenced by assOrderingHorizontal\copyObject(), assNumeric\copyObject(), assFileUpload\copyObject(), assImagemapQuestion\copyObject(), assOrderingQuestion\copyObject(), assTextSubset\copyObject(), assTextQuestion\copyObject(), assMultipleChoice\copyObject(), assSingleChoice\copyObject(), assErrorText\copyObject(), assMatchingQuestion\copyObject(), assLongMenu\copyObject(), assKprimChoice\copyObject(), assFormulaQuestion\copyObject(), assClozeTest\copyObject(), assOrderingHorizontal\duplicate(), assNumeric\duplicate(), assFileUpload\duplicate(), assOrderingQuestion\duplicate(), assImagemapQuestion\duplicate(), assTextSubset\duplicate(), assTextQuestion\duplicate(), assSingleChoice\duplicate(), assMultipleChoice\duplicate(), assErrorText\duplicate(), assMatchingQuestion\duplicate(), assLongMenu\duplicate(), assKprimChoice\duplicate(), assFormulaQuestion\duplicate(), assClozeTest\duplicate(), assTextQuestion\duplicateAnswers(), getOriginalId(), assSingleChoice\isComplete(), logAction(), assOrderingHorizontal\saveToDb(), assNumeric\saveToDb(), assErrorText\saveToDb(), assFileUpload\saveToDb(), assTextSubset\saveToDb(), assTextQuestion\saveToDb(), assImagemapQuestion\saveToDb(), assOrderingQuestion\saveToDb(), assMultipleChoice\saveToDb(), assMatchingQuestion\saveToDb(), assLongMenu\saveToDb(), assClozeTest\saveToDb(), assFormulaQuestion\saveToDb(), and setOriginalId().
|
protected |
Definition at line 66 of file class.assQuestion.php.
Referenced by assFormulaQuestion\__construct(), assLongMenu\__construct(), assOrderingHorizontal\__construct(), assNumeric\__construct(), assKprimChoice\__construct(), assErrorText\__construct(), assTextSubset\__construct(), assImagemapQuestion\__construct(), assSingleChoice\__construct(), assTextQuestion\__construct(), assOrderingQuestion\__construct(), assMultipleChoice\__construct(), assMatchingQuestion\__construct(), assClozeTest\__construct(), assOrderingHorizontal\duplicate(), assNumeric\duplicate(), assFileUpload\duplicate(), assOrderingQuestion\duplicate(), assImagemapQuestion\duplicate(), assTextSubset\duplicate(), assTextQuestion\duplicate(), assMultipleChoice\duplicate(), assSingleChoice\duplicate(), assErrorText\duplicate(), assMatchingQuestion\duplicate(), assLongMenu\duplicate(), assKprimChoice\duplicate(), assFormulaQuestion\duplicate(), assClozeTest\duplicate(), getOwner(), and setOwner().
|
protected |
Definition at line 124 of file class.assQuestion.php.
Referenced by copyPageOfQuestion(), deletePageOfQuestion(), and getPageOfQuestion().
|
protected |
The maximum available points for the question.
Definition at line 78 of file class.assQuestion.php.
Referenced by _getReachedPoints(), _setReachedPoints(), assTextSubset\addAnswer(), assSingleChoice\addAnswer(), assMultipleChoice\addAnswer(), assImagemapQuestion\addAnswer(), assTextQuestion\addAnswer(), assMatchingQuestion\addMatchingPair(), adjustReachedPointsByScoringOptions(), assClozeTest\calculateCombinationResult(), assOrderingHorizontal\calculateReachedPoints(), assErrorText\calculateReachedPoints(), assKprimChoice\calculateReachedPoints(), assMultipleChoice\calculateReachedPoints(), assSingleChoice\calculateReachedPoints(), assImagemapQuestion\calculateReachedPoints(), assMatchingQuestion\calculateReachedPoints(), assFormulaQuestion\calculateReachedPoints(), assTextQuestion\calculateReachedPointsForSolution(), assLongMenu\calculateReachedPointsForSolution(), assKprimChoice\calculateReachedPointsForSolution(), assOrderingHorizontal\calculateReachedPointsForSolution(), assTextSubset\calculateReachedPointsForSolution(), assImagemapQuestion\calculateReachedPointsForSolution(), assMultipleChoice\calculateReachedPointsForSolution(), assMatchingQuestion\calculateReachedPointsForSolution(), assClozeTest\calculateReachedPointsForSolution(), assNumeric\calculateReachedPointsFromPreviewSession(), assSingleChoice\calculateReachedPointsFromPreviewSession(), assFormulaQuestion\calculateReachedPointsFromPreviewSession(), assLongMenu\checkQuestionCustomPart(), assMatchingQuestion\createMatchingPair(), ensureNonNegativePoints(), assNumeric\getExpressionTypes(), assOrderingHorizontal\getExpressionTypes(), assTextSubset\getExpressionTypes(), assImagemapQuestion\getExpressionTypes(), assSingleChoice\getExpressionTypes(), assMultipleChoice\getExpressionTypes(), assOrderingQuestion\getExpressionTypes(), assFormulaQuestion\getExpressionTypes(), assClozeTest\getExpressionTypes(), assClozeTest\getMaximumGapPoints(), assLongMenu\getMaximumPoints(), assTextQuestion\getMaximumPoints(), assTextSubset\getMaximumPoints(), assSingleChoice\getMaximumPoints(), getMaximumPoints(), assImagemapQuestion\getMaximumPoints(), assFormulaQuestion\getMaximumPoints(), assClozeTest\getMaximumPoints(), assMatchingQuestion\getMaximumPoints(), assTextQuestion\getMinimumPoints(), getPoints(), assLongMenu\getPointsForGap(), assErrorText\getPointsForSelectedPositions(), assLongMenu\getUserQuestionResult(), assErrorText\getUserQuestionResult(), assMatchingQuestion\getUserQuestionResult(), assFileUpload\handleSubmission(), assMatchingQuestion\insertMatchingPair(), assLongMenu\saveAnswerSpecificDataToDb(), assErrorText\setErrorsFromParsedErrorText(), assClozeTest\setGapAnswerPoints(), and setPoints().
| bool assQuestion::$prevent_rte_usage = false |
Definition at line 142 of file class.assQuestion.php.
Referenced by getPreventRteUsage(), and setPreventRteUsage().
|
protected |
Definition at line 148 of file class.assQuestion.php.
Referenced by getProcessLocker(), and setProcessLocker().
|
protected |
The question text.
Definition at line 73 of file class.assQuestion.php.
Referenced by assFormulaQuestion\__construct(), assLongMenu\__construct(), assOrderingHorizontal\__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 150 of file class.assQuestion.php.
|
protected |
Definition at line 60 of file class.assQuestion.php.
|
protected |
Definition at line 55 of file class.assQuestion.php.
|
protected |
Definition at line 59 of file class.assQuestion.php.
Referenced by assClozeTest\getTextgapPoints(), assTextSubset\isAnswerCorrect(), and assTextQuestion\isKeywordMatching().
| bool assQuestion::$selfassessmenteditingmode = false |
Definition at line 144 of file class.assQuestion.php.
Referenced by getSelfAssessmentEditingMode(), and setSelfAssessmentEditingMode().
|
protected |
Indicates whether the answers will be shuffled or not.
Definition at line 83 of file class.assQuestion.php.
Referenced by getShuffle(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assClozeTest\setGapShuffle(), assMatchingQuestion\setShuffle(), and assMatchingQuestion\setShuffleMode().
|
protected |
Definition at line 159 of file class.assQuestion.php.
Referenced by getShuffler(), and setShuffler().
|
protected |
Definition at line 169 of file class.assQuestion.php.
|
protected |
Definition at line 155 of file class.assQuestion.php.
Referenced by getStep(), assFileUpload\getUploadedFilesForWeb(), and setStep().
|
protected |
Definition at line 115 of file class.assQuestion.php.
Referenced by getSuggestedSolutions().
|
protected |
Definition at line 3082 of file class.assQuestion.php.
Referenced by getSuggestedSolutionsRepo().
|
protected |
The database id of a test in which the question is contained.
Definition at line 88 of file class.assQuestion.php.
Referenced by getTestId(), assFileUpload\getUploadedFilesForWeb(), assFileUpload\removeIntermediateSolution(), and assFileUpload\saveWorkingData().
|
protected |
Definition at line 56 of file class.assQuestion.php.
|
protected |
Definition at line 163 of file class.assQuestion.php.
|
private |
Definition at line 3060 of file class.assQuestion.php.
Referenced by getTestPresentationConfig().
|
protected |
Definition at line 68 of file class.assQuestion.php.
Referenced by getThumbSize().
|
protected |
Definition at line 64 of file class.assQuestion.php.
Referenced by assFormulaQuestion\__construct(), assLongMenu\__construct(), assOrderingHorizontal\__construct(), assNumeric\__construct(), assErrorText\__construct(), assKprimChoice\__construct(), assTextSubset\__construct(), assImagemapQuestion\__construct(), assSingleChoice\__construct(), assTextQuestion\__construct(), assOrderingQuestion\__construct(), assMultipleChoice\__construct(), assMatchingQuestion\__construct(), assClozeTest\__construct(), __construct(), assOrderingHorizontal\copyObject(), assNumeric\copyObject(), assFileUpload\copyObject(), assImagemapQuestion\copyObject(), assOrderingQuestion\copyObject(), assTextSubset\copyObject(), assTextQuestion\copyObject(), assMultipleChoice\copyObject(), assSingleChoice\copyObject(), assErrorText\copyObject(), assMatchingQuestion\copyObject(), assLongMenu\copyObject(), assKprimChoice\copyObject(), assFormulaQuestion\copyObject(), assClozeTest\copyObject(), assOrderingHorizontal\duplicate(), assNumeric\duplicate(), assFileUpload\duplicate(), assOrderingQuestion\duplicate(), assImagemapQuestion\duplicate(), assTextSubset\duplicate(), assTextQuestion\duplicate(), assMultipleChoice\duplicate(), assSingleChoice\duplicate(), assErrorText\duplicate(), assMatchingQuestion\duplicate(), assLongMenu\duplicate(), assKprimChoice\duplicate(), assFormulaQuestion\duplicate(), assClozeTest\duplicate(), getTitle(), and setTitle().
|
protected |
Definition at line 102 of file class.assQuestion.php.
Referenced by __construct().
| const assQuestion::ADDITIONAL_CONTENT_EDITING_MODE_IPE = 'pageobject' |
Definition at line 136 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 135 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 50 of file class.assQuestion.php.
|
protected |
Definition at line 48 of file class.assQuestion.php.
| const assQuestion::KEY_VALUES_IMPLOSION_SEPARATOR = ':' |
Definition at line 2732 of file class.assQuestion.php.
Referenced by explodeKeyValues(), and implodeKeyValues().
|
private |
Definition at line 52 of file class.assQuestion.php.
|
private |
Definition at line 51 of file class.assQuestion.php.
| const assQuestion::TRIM_PATTERN = '/^[\p{C}\p{Z}]+|[\p{C}\p{Z}]+$/u' |
Definition at line 53 of file class.assQuestion.php.