|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Class for cloze tests. More...
Inheritance diagram for assClozeTest:
Collaboration diagram for assClozeTest:Public Member Functions | |
| __construct (string $title="", string $comment="", string $author="", int $owner=-1, string $question="") | |
| isComplete () | |
| Returns TRUE, if a cloze test is complete for use. More... | |
| cleanQuestiontext ($text) | |
| Cleans cloze question text to remove attributes or tags from older ILIAS versions. More... | |
| replaceFirstGap (string $gaptext, string $content) | |
| loadFromDb (int $question_id) | |
| saveToDb (?int $original_id=null) | |
| saveAnswerSpecificDataToDb () | |
| Saves the answer specific records into a question types answer table. More... | |
| saveAdditionalQuestionDataToDb () | |
| Saves a record to the question types additional data table. More... | |
| getGaps () | |
| flushGaps () | |
| setClozeText (string $cloze_text='') | |
| setClozeTextValue ($cloze_text="") | |
| getClozeText () | |
| Returns the cloze text. More... | |
| getClozeTextForHTMLOutput () | |
| Returns the cloze text as HTML (with optional nl2br) Fix for Mantis 29987: We assume Tiny embeds any text in tags, so if no tags are present, we derive it's non-HTML content and apply nl2br. More... | |
| getStartTag () | |
| Returns the start tag of a cloze gap. More... | |
| setStartTag ($start_tag="[gap]") | |
| Sets the start tag of a cloze gap. More... | |
| getEndTag () | |
| Returns the end tag of a cloze gap. More... | |
| setEndTag ($end_tag="[/gap]") | |
| Sets the end tag of a cloze gap. More... | |
| getFeedbackMode () | |
| setFeedbackMode ($feedbackMode) | |
| createGapsFromQuestiontext () | |
| Create gap entries by parsing the question text. More... | |
| setGapType ($gap_index, $gap_type) | |
| Set the type of a gap with a given index. More... | |
| setGapShuffle ($gap_index=0, $shuffle=1) | |
| Sets the shuffle state of a gap with a given index. More... | |
| clearGapAnswers () | |
| Removes all answers from the gaps. More... | |
| getGapCount () | |
| Returns the number of gaps. More... | |
| addGapAnswer ($gap_index, $order, $answer) | |
| Sets the answer text of a gap with a given index. More... | |
| getGap (int $gap_index=0) | |
| setGapSize ($gap_index, $size) | |
| setGapAnswerPoints ($gap_index, $order, $points) | |
| Sets the points of a gap with a given index and an answer with a given order. More... | |
| addGapText ($gap_index) | |
| Adds a new answer text value to a text gap with a given index. More... | |
| addGapAtIndex ($gap, $index) | |
| Adds a ClozeGap object at a given index. More... | |
| setGapAnswerLowerBound ($gap_index, $order, $bound) | |
| Sets the lower bound of a gap with a given index and an answer with a given order. More... | |
| setGapAnswerUpperBound ($gap_index, $order, $bound) | |
| Sets the upper bound of a gap with a given index and an answer with a given order. More... | |
| getMaximumPoints () | |
| Returns the maximum points, a learner can reach answering the question. More... | |
| cloneQuestionTypeSpecificProperties (\assQuestion $target) | |
| updateClozeTextFromGaps () | |
| Updates the gap parameters in the cloze text from the form input. More... | |
| deleteAnswerText ($gap_index, $answer_index) | |
| Deletes the answer text of a gap with a given index and an answer with a given order. More... | |
| deleteGap ($gap_index) | |
| Deletes a gap with a given index. More... | |
| getTextgapPoints ($a_original, $a_entered, $max_points) | |
| Returns the points for a text gap and compares the given solution with the entered solution using the text gap rating options. More... | |
| getNumericgapPoints ($a_original, $a_entered, $max_points, $lowerBound, $upperBound) | |
| Returns the points for a text gap and compares the given solution with the entered solution using the text gap rating options. More... | |
| checkForValidFormula (string $value) | |
| calculateReachedPoints (int $active_id, ?int $pass=null, bool $authorized_solution=true) | |
| getUserResultDetails (int $active_id, ?int $pass=null, bool $authorized_solution=true) | |
| fetchSolutionSubmit () | |
| saveWorkingData (int $active_id, ?int $pass=null, bool $authorized=true) | |
| getQuestionType () | |
| Returns the question type of the question. More... | |
| getTextgapRating () | |
| Returns the rating option for text gaps. More... | |
| setTextgapRating ($a_textgap_rating) | |
| Sets the rating option for text gaps. More... | |
| getIdenticalScoring () | |
| Returns the identical scoring status of the question. More... | |
| setIdenticalScoring (bool $identical_scoring) | |
| Sets the identical scoring option for cloze questions. More... | |
| getAdditionalTableName () | |
| Returns the name of the additional question data table in the database. More... | |
| getAnswerTableName () | |
| setFixedTextLength (?int $fixed_text_length) | |
| Sets a fixed text length for all text fields in the cloze question. More... | |
| getFixedTextLength () | |
| Gets the fixed text length for all text fields in the cloze question. More... | |
| getMaximumGapPoints ($gap_index) | |
| Returns the maximum points for a gap. More... | |
| getRTETextWithMediaObjects () | |
| Collects all text in the question which could contain media objects which were created with the Rich Text Editor. More... | |
| getGapCombinationsExists () | |
| getGapCombinations () | |
| setGapCombinationsExists ($value) | |
| setGapCombinations ($value) | |
| toJSON () | |
| Returns a JSON representation of the question. More... | |
| getOperators (string $expression) | |
| Get all available operations for a specific question. More... | |
| getExpressionTypes () | |
| Get all available expression types for a specific question. More... | |
| getUserQuestionResult (int $active_id, int $pass) | |
| Get the user solution for a question by active_id and the test pass. More... | |
| getAvailableAnswerOptions ($index=null) | |
| If index is null, the function returns an array with all anwser options Else it returns the specific answer option. More... | |
| calculateCombinationResult ($user_result) | |
| calculateReachedPointsFromPreviewSession (ilAssQuestionPreviewSession $preview_session) | |
| fetchAnswerValueForGap ($userSolution, $gapIndex) | |
| isAddableAnswerOptionValue (int $qIndex, string $answerOptionValue) | |
| addAnswerOptionValue (int $qIndex, string $answerOptionValue, float $points) | |
| toLog (AdditionalInformationGenerator $additional_info) | |
| solutionValuesToText (array $solution_values) | |
| getCorrectSolutionForTextOutput (int $active_id, int $pass) | |
Public Member Functions inherited from assQuestion | |
| getQuestionType () | |
| isComplete () | |
| saveWorkingData (int $active_id, ?int $pass=null, bool $authorized=true) | |
| calculateReachedPoints (int $active_id, ?int $pass=null, bool $authorized_solution=true) | |
| getAdditionalTableName () | |
| getAnswerTableName () | |
| toLog (AdditionalInformationGenerator $additional_info) | |
| MUST return an array of the question settings that can be stored in the log. More... | |
| getCurrentUser () | |
| getShuffler () | |
| setShuffler (Transformation $shuffler) | |
| setProcessLocker (ilAssQuestionProcessLocker $processLocker) | |
| getProcessLocker () | |
| fromXML (string $importdirectory, int $user_id, ilQTIItem $item, int $questionpool_id, ?int $tst_id, ?ilObject &$tst_object, int &$question_counter, array $import_mapping, array $solutionhints=[]) | |
| toXML (bool $a_include_header=true, bool $a_include_binary=true, bool $a_shuffle=false, bool $test_output=false, bool $force_image_references=false) | |
| Returns a QTI xml representation of the question. More... | |
| setTitle (string $title="") | |
| setId (int $id=-1) | |
| setTestId (int $id=-1) | |
| setComment (string $comment="") | |
| setShuffle (?bool $shuffle=true) | |
| setAuthor (string $author="") | |
| setOwner (int $owner=-1) | |
| getTitle () | |
| getTitleForHTMLOutput () | |
| getTitleFilenameCompliant () | |
| getId () | |
| getShuffle () | |
| getTestId () | |
| getComment () | |
| getDescriptionForHTMLOutput () | |
| getThumbSize () | |
| setThumbSize (int $a_size) | |
| getMinimumThumbSize () | |
| getMaximumThumbSize () | |
| getAuthor () | |
| getAuthorForHTMLOutput () | |
| getOwner () | |
| getObjId () | |
| setObjId (int $obj_id=0) | |
| getLifecycle () | |
| setLifecycle (ilAssQuestionLifecycle $lifecycle) | |
| setExternalId (?string $external_id) | |
| getExternalId () | |
| getSuggestedSolutionOutput () | |
| getSuggestedSolutions () | |
| getReachedPoints (int $active_id, int $pass) | |
| getMaximumPoints () | |
| getAdjustedReachedPoints (int $active_id, int $pass, bool $authorized_solution=true) | |
| calculateResultsFromSolution (int $active_id, int $pass) | |
| Calculates the question results from a previously saved question solution. More... | |
| persistWorkingState (int $active_id, $pass, bool $authorized=true) | |
| persists the working state for current testactive and testpass More... | |
| persistPreviewState (ilAssQuestionPreviewSession $preview_session) | |
| persists the preview state for current user and question More... | |
| validateSolutionSubmit () | |
| getSuggestedSolutionPath () | |
| getImagePath ($question_id=null, $object_id=null) | |
| Returns the image path for web accessable images of a question. More... | |
| getSuggestedSolutionPathWeb () | |
| getImagePathWeb () | |
| Returns the web image path for web accessable images of a question. More... | |
| getTestOutputSolutions (int $activeId, int $pass) | |
| getUserSolutionPreferingIntermediate (int $active_id, ?int $pass=null) | |
| getSolutionValues (int $active_id, ?int $pass=null, bool $authorized=true) | |
| Loads solutions of a given user from the database an returns it. More... | |
| deleteAnswers (int $question_id) | |
| deleteAdditionalTableData (int $question_id) | |
| delete (int $question_id) | |
| getTotalAnswers () | |
| cloneXHTMLMediaObjectsOfQuestion (int $source_question_id) | |
| createPageObject () | |
| clonePageOfQuestion (int $a_q_id) | |
| getPageOfQuestion () | |
| setOriginalId (?int $original_id) | |
| getOriginalId () | |
| static | fixSvgToPng (string $imageFilenameContainingString) |
| fixUnavailableSkinImageSources (string $html) | |
| loadFromDb (int $question_id) | |
| createNewQuestion (bool $a_create_page=true) | |
| Creates a new question without an owner when a new question is created This assures that an ID is given to the question if a file upload or something else occurs. More... | |
| saveQuestionDataToDb (?int $original_id=null) | |
| duplicate (bool $for_test=true, string $title='', string $author='', int $owner=-1, $test_obj_id=null) | |
| copyObject (int $target_parent_id, string $title='') | |
| createNewOriginalFromThisDuplicate (int $target_parent_id, string $target_question_title='') | |
| saveToDb (?int $original_id=null) | |
| deleteSuggestedSolutions () | |
| getSuggestedSolution (int $subquestion_index=0) | |
| resolveInternalLink (string $internal_link) | |
| resolveSuggestedSolutionLinks () | |
| getInternalLinkHref (string $target) | |
| syncWithOriginal () | |
| getPoints () | |
| setPoints (float $points) | |
| getSolutionMaxPass (int $active_id) | |
| isWriteable () | |
| deductHintPointsFromReachedPoints (ilAssQuestionPreviewSession $preview_session, $reached_points) | |
| calculateReachedPointsFromPreviewSession (ilAssQuestionPreviewSession $preview_session) | |
| isPreviewSolutionCorrect (ilAssQuestionPreviewSession $preview_session) | |
| adjustReachedPointsByScoringOptions (float $points, int $active_id) | |
| Adjust the given reached points by checks for all special scoring options in the test container. More... | |
| buildHashedImageFilename (string $plain_image_filename, bool $unique=false) | |
| getQuestion () | |
| getQuestionForHTMLOutput () | |
| setQuestion (string $question="") | |
| getQuestionTypeID () | |
| cloneHints (int $source_question_id, int $target_question_id) | |
| cleanupMediaObjectUsage () | |
| getInstances () | |
| getActiveUserData (int $active_id) | |
| Returns the user id and the test id for a given active id. More... | |
| hasSpecificFeedback () | |
| getNrOfTries () | |
| setNrOfTries (int $a_nr_of_tries) | |
| setExportImagePath (string $path) | |
| formatSAQuestion ($a_q) | |
| setPreventRteUsage (bool $prevent_rte_usage) | |
| getPreventRteUsage () | |
| migrateContentForLearningModule (ilAssSelfAssessmentMigrator $migrator) | |
| setSelfAssessmentEditingMode (bool $selfassessmenteditingmode) | |
| getSelfAssessmentEditingMode () | |
| setDefaultNrOfTries (int $defaultnroftries) | |
| getDefaultNrOfTries () | |
| syncSkillAssignments (int $srcParentId, int $srcQuestionId, int $trgParentId, int $trgQuestionId) | |
| ensureHintPageObjectExists ($pageObjectId) | |
| isAnswered (int $active_id, int $pass) | |
| getAdditionalContentEditingMode () | |
| setAdditionalContentEditingMode (?string $additionalContentEditingMode) | |
| isAdditionalContentEditingModePageObject () | |
| isValidAdditionalContentEditingMode (string $additionalContentEditingMode) | |
| getValidAdditionalContentEditingModes () | |
| getHtmlUserSolutionPurifier () | |
| getHtmlQuestionContentPurifier () | |
| setLastChange (int $lastChange) | |
| getLastChange () | |
| removeIntermediateSolution (int $active_id, int $pass) | |
| removeCurrentSolution (int $active_id, int $pass, bool $authorized=true) | |
| saveCurrentSolution (int $active_id, int $pass, $value1, $value2, bool $authorized=true, $tstamp=0) | |
| updateCurrentSolution (int $solutionId, $value1, $value2, bool $authorized=true) | |
| updateCurrentSolutionsAuthorization (int $activeId, int $pass, bool $authorized, bool $keepTime=false) | |
| setStep ($step) | |
| getStep () | |
| toJSON () | |
| intermediateSolutionExists (int $active_id, int $pass) | |
| authorizedSolutionExists (int $active_id, ?int $pass) | |
| authorizedOrIntermediateSolutionExists (int $active_id, int $pass) | |
| lookupForExistingSolutions (int $activeId, int $pass) | |
| Lookup if an authorized or intermediate solution exists. More... | |
| isAddableAnswerOptionValue (int $qIndex, string $answerOptionValue) | |
| addAnswerOptionValue (int $qIndex, string $answerOptionValue, float $points) | |
| removeAllExistingSolutions () | |
| removeExistingSolutions (int $activeId, int $pass) | |
| resetUsersAnswer (int $activeId, int $pass) | |
| removeResultRecord (int $activeId, int $pass) | |
| fetchValuePairsFromIndexedValues (array $indexedValues) | |
| fetchIndexedValuesFromValuePairs (array $value_pairs) | |
| updateTimestamp () | |
| getTestPresentationConfig () | |
| hasWritableOriginalInQuestionPool () | |
| answerToParticipantInteraction (AdditionalInformationGenerator $additional_info, int $test_ref_id, int $active_id, int $pass, string $source_ip, TestParticipantInteractionTypes $interaction_type) | |
| toQuestionAdministrationInteraction (AdditionalInformationGenerator $additional_info, int $test_ref_id, TestQuestionAdministrationInteractionTypes $interaction_type) | |
| getSolutionForTextOutput (int $active_id, int $pass) | |
| getCorrectSolutionForTextOutput (int $active_id, int $pass) | |
| getVariablesAsTextArray (int $active_id, int $pass) | |
Public Member Functions inherited from iQuestionCondition | |
| getAvailableAnswerOptions (?int $index=null) | |
| If index is null, the function returns an array with all anwser options else it returns the specific answer option. More... | |
Data Fields | |
| array | $gaps = [] |
| string | $textgap_rating = assClozeGap::TEXTGAP_RATING_CASEINSENSITIVE |
| The rating option for text gaps. More... | |
| ilAssQuestionFeedback | $feedbackOBJ |
Data Fields inherited from assQuestion | |
| const | ADDITIONAL_CONTENT_EDITING_MODE_RTE = 'default' |
| const | ADDITIONAL_CONTENT_EDITING_MODE_IPE = 'pageobject' |
| const | TRIM_PATTERN = '/^[\p{C}\p{Z}]+|[\p{C}\p{Z}]+$/u' |
| ilAssQuestionFeedback | $feedbackOBJ |
| bool | $prevent_rte_usage = false |
| bool | $selfassessmenteditingmode = false |
| int | $defaultnroftries = 0 |
| string | $questionActionCmd = 'handleQuestionAction' |
| const | KEY_VALUES_IMPLOSION_SEPARATOR = ':' |
Data Fields inherited from iQuestionCondition | |
| const | StringResultExpression = '~TEXT~' |
| const | PercentageResultExpression = '%n%' |
| const | NumericResultExpression = '#n#' |
| const | MatchingResultExpression = ';n:m;' |
| const | OrderingResultExpression = '$n,m,o,p$' |
| const | NumberOfResultExpression = '+n+' |
| const | ExclusiveResultExpression = '*n,m,o,p*' |
| const | EmptyAnswerExpression = "?" |
Protected Member Functions | |
| saveClozeGapItemsToDb (assClozeGap $gap, int $key) | |
| saveClozeTextGapRecordToDb (int $next_id, int $key, assAnswerCloze $item, assClozeGap $gap) | |
| saveClozeSelectGapRecordToDb (int $next_id, int $key, assAnswerCloze $item, assClozeGap $gap) | |
| saveClozeNumericGapRecordToDb (int $next_id, int $key, assAnswerCloze $item, assClozeGap $gap) | |
| isValidNumericSubmitValue ($submittedValue) | |
| getSolutionSubmit () | |
| lmMigrateQuestionTypeSpecificContent (ilAssSelfAssessmentMigrator $migrator) | |
| calculateReachedPointsForSolution (?array $user_result, array &$detailed=[]) | |
| solutionValuesToLog (AdditionalInformationGenerator $additional_info, array $solution_values) | |
Protected Member Functions inherited from assQuestion | |
| solutionValuesToLog (AdditionalInformationGenerator $additional_info, array $solution_values) | |
| MUST convert the given solution values into an array or a string that can be stored in the log. More... | |
| solutionValuesToText (array $solution_values) | |
| MUST convert the given solution values into text. More... | |
| getQuestionAction () | |
| isNonEmptyItemListPostSubmission (string $post_submission_field_name) | |
| savePreviewData (ilAssQuestionPreviewSession $preview_session) | |
| deletePageOfQuestion (int $question_id) | |
| cloneQuestionTypeSpecificProperties (self $target) | |
| removeAllImageFiles (string $image_target_path) | |
| onDuplicate (int $original_parent_id, int $original_question_id, int $duplicate_parent_id, int $duplicate_question_id) | |
| afterSyncWithOriginal (int $original_question_id, int $clone_question_id, int $original_parent_id, int $clone_parent_id) | |
| onCopy (int $sourceParentId, int $sourceQuestionId, int $targetParentId, int $targetQuestionId) | |
| duplicateComments (int $parent_source_id, int $source_id, int $parent_target_id, int $target_id) | |
| deleteComments () | |
| getNotesManager () | |
| getNotesDataService () | |
| getNotesRepo () | |
| cloneSuggestedSolutions (int $source_question_id, int $target_question_id) | |
| duplicateSuggestedSolutionFiles (int $parent_id, int $question_id) | |
| Duplicates the files of a suggested solution if the question is duplicated. More... | |
| cloneSuggestedSolutionFiles (int $source_question_id, int $target_question_id) | |
| copySuggestedSolutions (int $target_question_id) | |
| ensureNonNegativePoints (float $points) | |
| purifyAndPrepareTextAreaOutput (string $content) | |
| getRTETextWithMediaObjects () | |
| getSelfAssessmentFormatter () | |
| lmMigrateQuestionTypeGenericContent (ilAssSelfAssessmentMigrator $migrator) | |
| lmMigrateQuestionTypeSpecificContent (ilAssSelfAssessmentMigrator $migrator) | |
| duplicateQuestionHints (int $original_question_id, int $duplicate_question_id) | |
| duplicateSkillAssignments (int $srcParentId, int $srcQuestionId, int $trgParentId, int $trgQuestionId) | |
| buildQuestionDataQuery () | |
| getCurrentSolutionResultSet (int $active_id, int $pass, bool $authorized=true) | |
| removeSolutionRecordById (int $solutionId) | |
| getSolutionRecordById (int $solutionId) | |
| deleteDummySolutionRecord (int $activeId, int $passIndex) | |
| isDummySolutionRecord (array $solutionRecord) | |
| deleteSolutionRecordByValues (int $activeId, int $passIndex, bool $authorized, array $matchValues) | |
| duplicateIntermediateSolutionAuthorized (int $activeId, int $passIndex) | |
| forceExistingIntermediateSolution (int $activeId, int $passIndex, bool $considerDummyRecordCreation) | |
| lookupMaxStep (int $active_id, int $pass) | |
| buildTestPresentationConfig () | |
| getSuggestedSolutionsRepo () | |
| loadSuggestedSolutions () | |
| answerToLog (AdditionalInformationGenerator $additional_info, int $active_id, int $pass) | |
Private Member Functions | |
| fetchUserResult (int $active_id, ?int $pass) | |
Private Attributes | |
| string | $start_tag = '[gap]' |
| string | $end_tag = '[/gap]' |
| RandomGroup | $randomGroup |
Additional Inherited Members | |
Static Public Member Functions inherited from assQuestion | |
| static | setForcePassResultUpdateEnabled (bool $force_pass_results_update_enabled) |
| static | isForcePassResultUpdateEnabled () |
| static | _getSuggestedSolutionOutput (int $question_id) |
| static | _getReachedPoints (int $active_id, int $question_id, int $pass) |
| static | isFileAvailable (string $file) |
| static | saveOriginalId (int $questionId, int $originalId) |
| static | resetOriginalId (int $questionId) |
| static | instantiateQuestion (int $question_id) |
| static | _getSolutionMaxPass (int $question_id, int $active_id) |
| Returns the maximum pass a users question solution. More... | |
| static | getFeedbackClassNameByQuestionType (string $questionType) |
| static | _questionExistsInTest (int $question_id, int $test_id) |
| static | lookupParentObjId (int $question_id) |
| static | implodeKeyValues (array $keyValues) |
| static | explodeKeyValues (string $keyValues) |
| static | convertISO8601FormatH_i_s_ExtendedToSeconds (string $time) |
| static | extendedTrim (string $value) |
| Trim non-printable characters from the beginning and end of a string. More... | |
Static Protected Member Functions inherited from assQuestion | |
| static | getNumExistingSolutionRecords (int $activeId, int $pass, int $questionId) |
Static Protected Attributes inherited from assQuestion | |
| static | $force_pass_results_update_enabled = false |
| static | $imageSourceFixReplaceMap |
| assClozeTest::__construct | ( | string | $title = "", |
| string | $comment = "", |
||
| string | $author = "", |
||
| int | $owner = -1, |
||
| string | $question = "" |
||
| ) |
Definition at line 82 of file class.assClozeTest.php.
References assQuestion\$author, assQuestion\$comment, $DIC, assQuestion\$owner, assQuestion\$question, assQuestion\$title, ILIAS\GlobalScreen\Provider\__construct(), and assQuestion\setQuestion().
Here is the call graph for this function:| assClozeTest::addAnswerOptionValue | ( | int | $qIndex, |
| string | $answerOptionValue, | ||
| float | $points | ||
| ) |
Definition at line 1615 of file class.assClozeTest.php.
References getGap().
Here is the call graph for this function:| assClozeTest::addGapAnswer | ( | $gap_index, | |
| $order, | |||
| $answer | |||
| ) |
Sets the answer text of a gap with a given index.
The index of the first gap is 0, the index of the second gap is 1 and so on.
| integer | $gap_index | A nonnegative index of the n-th gap |
| integer | $order | The order of the answer text |
| string | $answer | The answer text public |
Definition at line 626 of file class.assClozeTest.php.
References assClozeGap\TYPE_NUMERIC.
| assClozeTest::addGapAtIndex | ( | $gap, | |
| $index | |||
| ) |
Adds a ClozeGap object at a given index.
| object | $gap | The gap object |
| integer | $index | A nonnegative index of the n-th gap public |
Definition at line 697 of file class.assClozeTest.php.
| assClozeTest::addGapText | ( | $gap_index | ) |
Adds a new answer text value to a text gap with a given index.
The index of the first gap is 0, the index of the second gap is 1 and so on.
| integer | $gap_index | A nonnegative index of the n-th gap public |
Definition at line 677 of file class.assClozeTest.php.
| assClozeTest::calculateCombinationResult | ( | $user_result | ) |
Definition at line 1399 of file class.assClozeTest.php.
References assQuestion\$points, assQuestion\getId(), getNumericgapPoints(), getTextgapPoints(), assClozeGap\TYPE_NUMERIC, assClozeGap\TYPE_SELECT, and assClozeGap\TYPE_TEXT.
Referenced by calculateReachedPointsForSolution().
Here is the call graph for this function:
Here is the caller graph for this function:| assClozeTest::calculateReachedPoints | ( | int | $active_id, |
| ?int | $pass = null, |
||
| bool | $authorized_solution = true |
||
| ) |
Definition at line 968 of file class.assClozeTest.php.
References calculateReachedPointsForSolution(), and fetchUserResult().
Referenced by getUserQuestionResult().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| array | $user_result | |
| array | $detailed |
Definition at line 1471 of file class.assClozeTest.php.
References assQuestion\$points, calculateCombinationResult(), getIdenticalScoring(), getMaximumGapPoints(), getNumericgapPoints(), getTextgapPoints(), assClozeGap\TYPE_NUMERIC, assClozeGap\TYPE_SELECT, and assClozeGap\TYPE_TEXT.
Referenced by calculateReachedPoints(), calculateReachedPointsFromPreviewSession(), and getUserResultDetails().
Here is the call graph for this function:
Here is the caller graph for this function:| assClozeTest::calculateReachedPointsFromPreviewSession | ( | ilAssQuestionPreviewSession | $preview_session | ) |
Definition at line 1564 of file class.assClozeTest.php.
References calculateReachedPointsForSolution(), assQuestion\deductHintPointsFromReachedPoints(), assQuestion\ensureNonNegativePoints(), and ilAssQuestionPreviewSession\getParticipantsSolution().
Here is the call graph for this function:| assClozeTest::checkForValidFormula | ( | string | $value | ) |
Definition at line 963 of file class.assClozeTest.php.
| assClozeTest::cleanQuestiontext | ( | $text | ) |
Cleans cloze question text to remove attributes or tags from older ILIAS versions.
| string | $text | The cloze question text |
Definition at line 119 of file class.assClozeTest.php.
References $text.
Referenced by loadFromDb(), and setClozeText().
Here is the caller graph for this function:| assClozeTest::clearGapAnswers | ( | ) |
Removes all answers from the gaps.
public
Definition at line 593 of file class.assClozeTest.php.
| assClozeTest::cloneQuestionTypeSpecificProperties | ( | \assQuestion | $target | ) |
Definition at line 784 of file class.assClozeTest.php.
References $gap_combinations, and assQuestion\getId().
Here is the call graph for this function:| assClozeTest::createGapsFromQuestiontext | ( | ) |
Create gap entries by parsing the question text.
public
Definition at line 540 of file class.assClozeTest.php.
References getClozeText(), and assClozeGap\TYPE_TEXT.
Referenced by setClozeText().
Here is the call graph for this function:
Here is the caller graph for this function:| assClozeTest::deleteAnswerText | ( | $gap_index, | |
| $answer_index | |||
| ) |
Deletes the answer text of a gap with a given index and an answer with a given order.
The index of the first gap is 0, the index of the second gap is 1 and so on.
| integer | $gap_index | A nonnegative index of the n-th gap |
| integer | $answer_index | The order of the answer text public |
Definition at line 828 of file class.assClozeTest.php.
References deleteGap(), and updateClozeTextFromGaps().
Here is the call graph for this function:| assClozeTest::deleteGap | ( | $gap_index | ) |
Deletes a gap with a given index.
The index of the first gap is 0, the index of the second gap is 1 and so on.
| integer | $gap_index | A nonnegative index of the n-th gap public |
Definition at line 850 of file class.assClozeTest.php.
References getClozeText(), getGaps(), and replaceFirstGap().
Referenced by deleteAnswerText().
Here is the call graph for this function:
Here is the caller graph for this function:| assClozeTest::fetchAnswerValueForGap | ( | $userSolution, | |
| $gapIndex | |||
| ) |
Definition at line 1584 of file class.assClozeTest.php.
| assClozeTest::fetchSolutionSubmit | ( | ) |
Definition at line 1025 of file class.assClozeTest.php.
References getGaps(), assClozeGap\TYPE_NUMERIC, and assClozeGap\TYPE_SELECT.
Referenced by getSolutionSubmit(), and saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 988 of file class.assClozeTest.php.
References $data, assQuestion\getCurrentSolutionResultSet(), and assQuestion\getSolutionMaxPass().
Referenced by calculateReachedPoints(), and getUserResultDetails().
Here is the call graph for this function:
Here is the caller graph for this function:| assClozeTest::flushGaps | ( | ) |
Definition at line 413 of file class.assClozeTest.php.
| assClozeTest::getAdditionalTableName | ( | ) |
Returns the name of the additional question data table in the database.
Definition at line 1171 of file class.assClozeTest.php.
Referenced by loadFromDb(), and saveAdditionalQuestionDataToDb().
Here is the caller graph for this function:| assClozeTest::getAnswerTableName | ( | ) |
Definition at line 1176 of file class.assClozeTest.php.
| assClozeTest::getAvailableAnswerOptions | ( | $index = null | ) |
If index is null, the function returns an array with all anwser options Else it returns the specific answer option.
| null | int | $index |
Definition at line 1390 of file class.assClozeTest.php.
References getGap(), and getGaps().
Here is the call graph for this function:| assClozeTest::getClozeText | ( | ) |
Returns the cloze text.
Definition at line 437 of file class.assClozeTest.php.
References $cloze_text.
Referenced by createGapsFromQuestiontext(), deleteGap(), getClozeTextForHTMLOutput(), getRTETextWithMediaObjects(), isComplete(), lmMigrateQuestionTypeSpecificContent(), saveAdditionalQuestionDataToDb(), toJSON(), toLog(), and updateClozeTextFromGaps().
Here is the caller graph for this function:| assClozeTest::getClozeTextForHTMLOutput | ( | ) |
Returns the cloze text as HTML (with optional nl2br) Fix for Mantis 29987: We assume Tiny embeds any text in tags, so if no tags are present, we derive it's non-HTML content and apply nl2br.
Definition at line 450 of file class.assClozeTest.php.
References getClozeText(), assQuestion\getHtmlQuestionContentPurifier(), assQuestion\isAdditionalContentEditingModePageObject(), and ilLegacyFormElementsUtil\prepareTextareaOutput().
Here is the call graph for this function:| assClozeTest::getCorrectSolutionForTextOutput | ( | int | $active_id, |
| int | $pass | ||
| ) |
Definition at line 1713 of file class.assClozeTest.php.
References getGaps(), and ILIAS\Repository\lng().
Here is the call graph for this function:| assClozeTest::getEndTag | ( | ) |
Returns the end tag of a cloze gap.
Definition at line 501 of file class.assClozeTest.php.
References $end_tag.
| assClozeTest::getExpressionTypes | ( | ) |
Get all available expression types for a specific question.
Implements iQuestionCondition.
Definition at line 1323 of file class.assClozeTest.php.
References iQuestionCondition\EmptyAnswerExpression, iQuestionCondition\NumberOfResultExpression, iQuestionCondition\NumericResultExpression, iQuestionCondition\PercentageResultExpression, and iQuestionCondition\StringResultExpression.
| assClozeTest::getFeedbackMode | ( | ) |
Definition at line 521 of file class.assClozeTest.php.
References $feedbackMode.
Referenced by saveAdditionalQuestionDataToDb().
Here is the caller graph for this function:| assClozeTest::getFixedTextLength | ( | ) |
Gets the fixed text length for all text fields in the cloze question.
Definition at line 1198 of file class.assClozeTest.php.
References $fixed_text_length.
Referenced by saveAdditionalQuestionDataToDb().
Here is the caller graph for this function:| assClozeTest::getGap | ( | int | $gap_index = 0 | ) |
Definition at line 637 of file class.assClozeTest.php.
Referenced by addAnswerOptionValue(), getAvailableAnswerOptions(), isAddableAnswerOptionValue(), and saveWorkingData().
Here is the caller graph for this function:| assClozeTest::getGapCombinations | ( | ) |
| assClozeTest::getGapCombinationsExists | ( | ) |
Definition at line 1235 of file class.assClozeTest.php.
References $gap_combinations_exist.
| assClozeTest::getGapCount | ( | ) |
Returns the number of gaps.
Definition at line 607 of file class.assClozeTest.php.
| assClozeTest::getGaps | ( | ) |
Definition at line 408 of file class.assClozeTest.php.
References $gaps.
Referenced by deleteGap(), fetchSolutionSubmit(), getAvailableAnswerOptions(), getCorrectSolutionForTextOutput(), isComplete(), solutionValuesToLog(), solutionValuesToText(), toJSON(), toLog(), and updateClozeTextFromGaps().
Here is the caller graph for this function:| assClozeTest::getIdenticalScoring | ( | ) |
Returns the identical scoring status of the question.
Definition at line 1148 of file class.assClozeTest.php.
References $identical_scoring.
Referenced by calculateReachedPointsForSolution(), and saveAdditionalQuestionDataToDb().
Here is the caller graph for this function:| assClozeTest::getMaximumGapPoints | ( | $gap_index | ) |
Returns the maximum points for a gap.
| integer | $gap_index | The index of the gap |
Definition at line 1211 of file class.assClozeTest.php.
References assQuestion\$points.
Referenced by calculateReachedPointsForSolution().
Here is the caller graph for this function:| assClozeTest::getMaximumPoints | ( | ) |
Returns the maximum points, a learner can reach answering the question.
public
Definition at line 742 of file class.assClozeTest.php.
References assQuestion\$points, assQuestion\getId(), assClozeGap\TYPE_NUMERIC, assClozeGap\TYPE_SELECT, and assClozeGap\TYPE_TEXT.
Referenced by getUserQuestionResult(), and isComplete().
Here is the call graph for this function:
Here is the caller graph for this function:| assClozeTest::getNumericgapPoints | ( | $a_original, | |
| $a_entered, | |||
| $max_points, | |||
| $lowerBound, | |||
| $upperBound | |||
| ) |
Returns the points for a text gap and compares the given solution with the entered solution using the text gap rating options.
| string | $a_original | The original (correct) text |
| string | $a_entered | The text entered by the user |
| float | $max_points | The maximum number of points for the solution public |
Definition at line 937 of file class.assClozeTest.php.
Referenced by calculateCombinationResult(), and calculateReachedPointsForSolution().
Here is the caller graph for this function:| assClozeTest::getOperators | ( | string | $expression | ) |
Get all available operations for a specific question.
| $expression |
Implements iQuestionCondition.
Definition at line 1318 of file class.assClozeTest.php.
| assClozeTest::getQuestionType | ( | ) |
Returns the question type of the question.
Definition at line 1099 of file class.assClozeTest.php.
Referenced by toJSON(), and toLog().
Here is the caller graph for this function:| assClozeTest::getRTETextWithMediaObjects | ( | ) |
Collects all text in the question which could contain media objects which were created with the Rich Text Editor.
Definition at line 1231 of file class.assClozeTest.php.
References getClozeText().
Here is the call graph for this function:
|
protected |
Definition at line 1058 of file class.assClozeTest.php.
References fetchSolutionSubmit().
Here is the call graph for this function:| assClozeTest::getStartTag | ( | ) |
Returns the start tag of a cloze gap.
Definition at line 477 of file class.assClozeTest.php.
References $start_tag.
| assClozeTest::getTextgapPoints | ( | $a_original, | |
| $a_entered, | |||
| $max_points | |||
| ) |
Returns the points for a text gap and compares the given solution with the entered solution using the text gap rating options.
| string | $a_original | The original (correct) text |
| string | $a_entered | The text entered by the user |
| integer | $max_points | The maximum number of points for the solution public |
Definition at line 885 of file class.assClozeTest.php.
References $DIC, assQuestion\$refinery, getTextgapRating(), ilStr\strToLower(), assClozeGap\TEXTGAP_RATING_CASEINSENSITIVE, assClozeGap\TEXTGAP_RATING_CASESENSITIVE, assClozeGap\TEXTGAP_RATING_LEVENSHTEIN1, assClozeGap\TEXTGAP_RATING_LEVENSHTEIN2, assClozeGap\TEXTGAP_RATING_LEVENSHTEIN3, assClozeGap\TEXTGAP_RATING_LEVENSHTEIN4, and assClozeGap\TEXTGAP_RATING_LEVENSHTEIN5.
Referenced by calculateCombinationResult(), and calculateReachedPointsForSolution().
Here is the call graph for this function:
Here is the caller graph for this function:| assClozeTest::getTextgapRating | ( | ) |
Returns the rating option for text gaps.
Definition at line 1111 of file class.assClozeTest.php.
References $textgap_rating.
Referenced by getTextgapPoints(), and saveAdditionalQuestionDataToDb().
Here is the caller graph for this function:| assClozeTest::getUserQuestionResult | ( | int | $active_id, |
| int | $pass | ||
| ) |
Get the user solution for a question by active_id and the test pass.
Implements iQuestionCondition.
Definition at line 1334 of file class.assClozeTest.php.
References $data, assQuestion\$points, calculateReachedPoints(), assQuestion\getId(), getMaximumPoints(), and assQuestion\lookupMaxStep().
Here is the call graph for this function:| assClozeTest::getUserResultDetails | ( | int | $active_id, |
| ?int | $pass = null, |
||
| bool | $authorized_solution = true |
||
| ) |
Definition at line 977 of file class.assClozeTest.php.
References calculateReachedPointsForSolution(), and fetchUserResult().
Here is the call graph for this function:| assClozeTest::isAddableAnswerOptionValue | ( | int | $qIndex, |
| string | $answerOptionValue | ||
| ) |
Definition at line 1598 of file class.assClozeTest.php.
References getGap(), and assClozeGap\TYPE_TEXT.
Here is the call graph for this function:| assClozeTest::isComplete | ( | ) |
Returns TRUE, if a cloze test is complete for use.
Definition at line 100 of file class.assClozeTest.php.
References assQuestion\getAuthor(), getClozeText(), getGaps(), getMaximumPoints(), and assQuestion\getTitle().
Here is the call graph for this function:
|
protected |
Definition at line 1012 of file class.assClozeTest.php.
|
protected |
| ilAssSelfAssessmentMigrator | $migrator |
Definition at line 1258 of file class.assClozeTest.php.
References getClozeText(), and ilAssSelfAssessmentMigrator\migrateToLmContent().
Here is the call graph for this function:| assClozeTest::loadFromDb | ( | int | $question_id | ) |
Definition at line 147 of file class.assClozeTest.php.
References $data, Vendor\Package\$e, ilRTE\_replaceMediaObjectImageSrc(), cleanQuestiontext(), ilAssClozeTestFeedback\FB_MODE_GAP_QUESTION, getAdditionalTableName(), ilAssQuestionLifecycle\getDraftInstance(), ilAssQuestionLifecycle\getInstance(), assQuestion\setAdditionalContentEditingMode(), assQuestion\setAuthor(), setClozeText(), assQuestion\setComment(), setFeedbackMode(), setFixedTextLength(), setGapCombinations(), setGapCombinationsExists(), assQuestion\setId(), setIdenticalScoring(), assQuestion\setLifecycle(), assQuestion\setNrOfTries(), assQuestion\setObjId(), assQuestion\setOriginalId(), assQuestion\setOwner(), assQuestion\setPoints(), assQuestion\setQuestion(), setTextgapRating(), assQuestion\setTitle(), assClozeGap\TYPE_NUMERIC, assClozeGap\TYPE_SELECT, and assClozeGap\TYPE_TEXT.
Here is the call graph for this function:| assClozeTest::replaceFirstGap | ( | string | $gaptext, |
| string | $content | ||
| ) |
Definition at line 134 of file class.assClozeTest.php.
Referenced by deleteGap(), and updateClozeTextFromGaps().
Here is the caller graph for this function:| assClozeTest::saveAdditionalQuestionDataToDb | ( | ) |
Saves a record to the question types additional data table.
Implements ilObjQuestionScoringAdjustable.
Definition at line 268 of file class.assClozeTest.php.
References ilRTE\_replaceMediaObjectImageSrc(), getAdditionalTableName(), getClozeText(), getFeedbackMode(), getFixedTextLength(), assQuestion\getId(), getIdenticalScoring(), and getTextgapRating().
Referenced by saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| assClozeTest::saveAnswerSpecificDataToDb | ( | ) |
Saves the answer specific records into a question types answer table.
Implements ilObjAnswerScoringAdjustable.
Definition at line 255 of file class.assClozeTest.php.
References assQuestion\getId(), and saveClozeGapItemsToDb().
Referenced by saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 285 of file class.assClozeTest.php.
References assClozeGap\getItems(), assClozeGap\getType(), saveClozeNumericGapRecordToDb(), saveClozeSelectGapRecordToDb(), saveClozeTextGapRecordToDb(), assClozeGap\TYPE_NUMERIC, assClozeGap\TYPE_SELECT, and assClozeGap\TYPE_TEXT.
Referenced by saveAnswerSpecificDataToDb().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 367 of file class.assClozeTest.php.
References ASS_AnswerSimple\getAnswertext(), assClozeGap\getGapSize(), assQuestion\getId(), assAnswerCloze\getLowerBound(), ASS_AnswerSimple\getOrder(), ASS_AnswerSimple\getPoints(), assClozeGap\getType(), assAnswerCloze\getUpperBound(), and ILIAS\Repository\int().
Referenced by saveClozeGapItemsToDb().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 336 of file class.assClozeTest.php.
References ASS_AnswerSimple\getAnswertext(), assQuestion\getId(), ASS_AnswerSimple\getOrder(), ASS_AnswerSimple\getPoints(), assClozeGap\getShuffle(), and assClozeGap\getType().
Referenced by saveClozeGapItemsToDb().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 305 of file class.assClozeTest.php.
References ASS_AnswerSimple\getAnswertext(), assClozeGap\getGapSize(), assQuestion\getId(), ASS_AnswerSimple\getOrder(), ASS_AnswerSimple\getPoints(), assClozeGap\getType(), and ILIAS\Repository\int().
Referenced by saveClozeGapItemsToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| assClozeTest::saveToDb | ( | ?int | $original_id = null | ) |
Definition at line 246 of file class.assClozeTest.php.
References assQuestion\$original_id, saveAdditionalQuestionDataToDb(), saveAnswerSpecificDataToDb(), and assQuestion\saveQuestionDataToDb().
Here is the call graph for this function:| assClozeTest::saveWorkingData | ( | int | $active_id, |
| ?int | $pass = null, |
||
| bool | $authorized = true |
||
| ) |
Definition at line 1063 of file class.assClozeTest.php.
References ilObjTest\_getPass(), fetchSolutionSubmit(), getGap(), assQuestion\getProcessLocker(), assQuestion\removeCurrentSolution(), assQuestion\saveCurrentSolution(), and assClozeGap\TYPE_SELECT.
Here is the call graph for this function:| assClozeTest::setClozeText | ( | string | $cloze_text = '' | ) |
Definition at line 418 of file class.assClozeTest.php.
References cleanQuestiontext(), and createGapsFromQuestiontext().
Referenced by loadFromDb().
Here is the call graph for this function:
Here is the caller graph for this function:| assClozeTest::setClozeTextValue | ( | $cloze_text = "" | ) |
| assClozeTest::setEndTag | ( | $end_tag = "[/gap]" | ) |
Sets the end tag of a cloze gap.
| string | $end_tag | The end tag for a cloze gap public |
Definition at line 513 of file class.assClozeTest.php.
References $end_tag.
| assClozeTest::setFeedbackMode | ( | $feedbackMode | ) |
| string | $feedbackMode |
Definition at line 529 of file class.assClozeTest.php.
References $feedbackMode.
Referenced by loadFromDb().
Here is the caller graph for this function:| assClozeTest::setFixedTextLength | ( | ?int | $fixed_text_length | ) |
Sets a fixed text length for all text fields in the cloze question.
| integer | $a_text_len | The text field length public |
Definition at line 1187 of file class.assClozeTest.php.
References $fixed_text_length.
Referenced by loadFromDb().
Here is the caller graph for this function:| assClozeTest::setGapAnswerLowerBound | ( | $gap_index, | |
| $order, | |||
| $bound | |||
| ) |
Sets the lower bound of a gap with a given index and an answer with a given order.
The index of the first gap is 0, the index of the second gap is 1 and so on.
| integer | $gap_index | A nonnegative index of the n-th gap |
| integer | $order | The order of the answer text |
| string | $answer | The lower bound of the answer public |
Definition at line 712 of file class.assClozeTest.php.
| assClozeTest::setGapAnswerPoints | ( | $gap_index, | |
| $order, | |||
| $points | |||
| ) |
Sets the points of a gap with a given index and an answer with a given order.
The index of the first gap is 0, the index of the second gap is 1 and so on.
| integer | $gap_index | A nonnegative index of the n-th gap |
| integer | $order | The order of the answer text |
| string | $answer | The points of the answer public |
Definition at line 662 of file class.assClozeTest.php.
References assQuestion\$points.
| assClozeTest::setGapAnswerUpperBound | ( | $gap_index, | |
| $order, | |||
| $bound | |||
| ) |
Sets the upper bound of a gap with a given index and an answer with a given order.
The index of the first gap is 0, the index of the second gap is 1 and so on.
| integer | $gap_index | A nonnegative index of the n-th gap |
| integer | $order | The order of the answer text |
| string | $answer | The upper bound of the answer public |
Definition at line 729 of file class.assClozeTest.php.
| assClozeTest::setGapCombinations | ( | $value | ) |
Definition at line 1250 of file class.assClozeTest.php.
Referenced by loadFromDb().
Here is the caller graph for this function:| assClozeTest::setGapCombinationsExists | ( | $value | ) |
Definition at line 1245 of file class.assClozeTest.php.
Referenced by loadFromDb().
Here is the caller graph for this function:| assClozeTest::setGapShuffle | ( | $gap_index = 0, |
|
$shuffle = 1 |
|||
| ) |
Sets the shuffle state of a gap with a given index.
The index of the first gap is 0, the index of the second gap is 1 and so on.
| integer | $index | A nonnegative index of the n-th gap |
| integer | $shuffle | Turn shuffle on (=1) or off (=0) public |
Definition at line 580 of file class.assClozeTest.php.
References assQuestion\$shuffle.
| assClozeTest::setGapSize | ( | $gap_index, | |
| $size | |||
| ) |
Definition at line 645 of file class.assClozeTest.php.
| assClozeTest::setGapType | ( | $gap_index, | |
| $gap_type | |||
| ) |
Set the type of a gap with a given index.
private
Definition at line 564 of file class.assClozeTest.php.
| assClozeTest::setIdenticalScoring | ( | bool | $identical_scoring | ) |
Sets the identical scoring option for cloze questions.
| boolean | $a_identical_scoring | The identical scoring option for cloze questions |
Definition at line 1160 of file class.assClozeTest.php.
References $identical_scoring.
Referenced by loadFromDb().
Here is the caller graph for this function:| assClozeTest::setStartTag | ( | $start_tag = "[gap]" | ) |
Sets the start tag of a cloze gap.
| string | $start_tag | The start tag for a cloze gap public |
Definition at line 489 of file class.assClozeTest.php.
References $start_tag.
| assClozeTest::setTextgapRating | ( | $a_textgap_rating | ) |
Sets the rating option for text gaps.
| string | $a_textgap_rating | The rating option for text gaps |
Definition at line 1123 of file class.assClozeTest.php.
References assClozeGap\TEXTGAP_RATING_CASEINSENSITIVE, assClozeGap\TEXTGAP_RATING_CASESENSITIVE, assClozeGap\TEXTGAP_RATING_LEVENSHTEIN1, assClozeGap\TEXTGAP_RATING_LEVENSHTEIN2, assClozeGap\TEXTGAP_RATING_LEVENSHTEIN3, assClozeGap\TEXTGAP_RATING_LEVENSHTEIN4, and assClozeGap\TEXTGAP_RATING_LEVENSHTEIN5.
Referenced by loadFromDb().
Here is the caller graph for this function:
|
protected |
Definition at line 1669 of file class.assClozeTest.php.
References getGaps(), and assClozeGap\TYPE_SELECT.
Here is the call graph for this function:| assClozeTest::solutionValuesToText | ( | array | $solution_values | ) |
Definition at line 1691 of file class.assClozeTest.php.
References getGaps(), ILIAS\Repository\lng(), and assClozeGap\TYPE_SELECT.
Here is the call graph for this function:| assClozeTest::toJSON | ( | ) |
Returns a JSON representation of the question.
Implements ILIAS\TestQuestionPool\Questions\QuestionLMExportable.
Definition at line 1269 of file class.assClozeTest.php.
References $gaps, ilObjMediaObject\_getMobsOfObject(), assQuestion\formatSAQuestion(), getClozeText(), getGaps(), assQuestion\getId(), assQuestion\getNrOfTries(), assQuestion\getQuestion(), getQuestionType(), assQuestion\getShuffle(), assQuestion\getTitleForHTMLOutput(), assClozeGap\TYPE_NUMERIC, and assClozeGap\TYPE_TEXT.
Here is the call graph for this function:| assClozeTest::toLog | ( | AdditionalInformationGenerator | $additional_info | ) |
Implements ILIAS\TestQuestionPool\Questions\Question.
Definition at line 1625 of file class.assClozeTest.php.
References $gaps, assQuestion\formatSAQuestion(), getClozeText(), getGaps(), assQuestion\getQuestion(), getQuestionType(), assQuestion\getShuffle(), assQuestion\getTitleForHTMLOutput(), ILIAS\Test\Logging\AdditionalInformationGenerator\getTrueFalseTagForBool(), and assClozeGap\TYPE_NUMERIC.
Here is the call graph for this function:| assClozeTest::updateClozeTextFromGaps | ( | ) |
Updates the gap parameters in the cloze text from the form input.
private
Definition at line 803 of file class.assClozeTest.php.
References getClozeText(), getGaps(), ilLegacyFormElementsUtil\prepareTextareaOutput(), and replaceFirstGap().
Referenced by deleteAnswerText().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 77 of file class.assClozeTest.php.
Referenced by getClozeText(), and setClozeTextValue().
|
private |
Definition at line 56 of file class.assClozeTest.php.
Referenced by getEndTag(), and setEndTag().
|
protected |
Definition at line 79 of file class.assClozeTest.php.
Referenced by getFeedbackMode(), and setFeedbackMode().
| ilAssQuestionFeedback assClozeTest::$feedbackOBJ |
Definition at line 78 of file class.assClozeTest.php.
|
protected |
Definition at line 76 of file class.assClozeTest.php.
Referenced by getFixedTextLength(), and setFixedTextLength().
|
protected |
Definition at line 53 of file class.assClozeTest.php.
Referenced by cloneQuestionTypeSpecificProperties(), and getGapCombinations().
|
protected |
Definition at line 54 of file class.assClozeTest.php.
Referenced by getGapCombinationsExists().
| array assClozeTest::$gaps = [] |
Definition at line 44 of file class.assClozeTest.php.
|
protected |
Defines the scoring for "identical solutions".
If the learner selects the same solution twice or more in different gaps, only the first choice will be scored if identical_scoring is 0.
Definition at line 75 of file class.assClozeTest.php.
Referenced by getIdenticalScoring(), and setIdenticalScoring().
|
private |
Definition at line 80 of file class.assClozeTest.php.
|
private |
Definition at line 55 of file class.assClozeTest.php.
Referenced by getStartTag(), and setStartTag().
| string assClozeTest::$textgap_rating = assClozeGap::TEXTGAP_RATING_CASEINSENSITIVE |
The rating option for text gaps.
This could contain one of the following options:
Definition at line 66 of file class.assClozeTest.php.
Referenced by getTextgapRating().