ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Public Member Functions | |
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) | |
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 () | |
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 () | |
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) | |
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) | |
Static Public Member Functions | |
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... | |
Data Fields | |
const | ADDITIONAL_CONTENT_EDITING_MODE_RTE = 'default' |
const | ADDITIONAL_CONTENT_EDITING_MODE_IPE = 'pageobject' |
const | TRIM_PATTERN = '/^[\p{C}\p{Z}]+|[\p{C}\p{Z}]+$/u' |
ilAssQuestionFeedback | $feedbackOBJ |
bool | $prevent_rte_usage = false |
bool | $selfassessmenteditingmode = false |
int | $defaultnroftries = 0 |
string | $questionActionCmd = 'handleQuestionAction' |
const | KEY_VALUES_IMPLOSION_SEPARATOR = ':' |
Protected Member Functions | |
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) | |
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) | |
Static Protected Member Functions | |
static | getNumExistingSolutionRecords (int $activeId, int $pass, int $questionId) |
Protected Attributes | |
const | HAS_SPECIFIC_FEEDBACK = true |
GeneralQuestionPropertiesRepository | $questionrepository |
RequestDataCollector | $questionpool_request |
QuestionFiles | $question_files |
ilAssQuestionProcessLocker | $processLocker |
ilTestQuestionConfig | $testQuestionConfig |
SuggestedSolutionsDatabaseRepository | $suggestedsolution_repo |
ILIAS | $ilias |
ilGlobalPageTemplate | $tpl |
ilLanguage | $lng |
ilDBInterface | $db |
ilObjUser | $current_user |
SkillUsageService | $skillUsageService |
HTTPServices | $http |
Refinery | $refinery |
Transformation | $shuffler |
LoggingServices | $log |
Container | $dic |
ilAssQuestionLifecycle | $lifecycle |
ilAssQuestionPage | $page |
TestResultRepository | $test_result_repository |
int | $id |
string | $title |
string | $comment |
int | $owner |
string | $author |
int | $thumb_size |
string | $question |
float | $points = 0.0 |
bool | $shuffle = true |
int | $test_id |
int | $obj_id = 0 |
int | $original_id = null |
int | $lastChange = null |
string | $external_id = null |
int | $step = null |
array | $suggested_solutions |
Static Protected Attributes | |
static | $force_pass_results_update_enabled = false |
static | $imageSourceFixReplaceMap |
Private Member Functions | |
deleteTaxonomyAssignments () | |
Private Attributes | |
const | DEFAULT_THUMB_SIZE = 150 |
const | MINIMUM_THUMB_SIZE = 20 |
const | MAXIMUM_THUMB_SIZE = 8192 |
ilTestQuestionConfig | $test_question_config = null |
int | $nr_of_tries |
string | $export_image_path |
string | $additionalContentEditingMode = '' |
Definition at line 52 of file class.assQuestion.php.
|
static |
Definition at line 514 of file class.assQuestion.php.
References $DIC, $ilDB, and $points.
Referenced by ILIAS\Test\Scoring\Manual\TestScoringByParticipantGUI\buildManScoringParticipantForm(), and ILIAS\Test\Scoring\Manual\TestScoringByParticipantGUI\saveManScoringParticipantScreen().
|
static |
Returns the maximum pass a users question solution.
Definition at line 1775 of file class.assQuestion.php.
References $DIC, $ilDB, and null.
Referenced by buildHashedImageFilename(), and ilObjTest\getTextAnswer().
|
static |
Definition at line 457 of file class.assQuestion.php.
Referenced by ILIAS\Test\Scoring\Manual\TestScoringByQuestionGUI\buildFeedbackModal(), and ilObjTest\getTestResult().
|
static |
Definition at line 2114 of file class.assQuestion.php.
assQuestion::addAnswerOptionValue | ( | int | $qIndex, |
string | $answerOptionValue, | ||
float | $points | ||
) |
Definition at line 2740 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 1830 of file class.assQuestion.php.
References $points, ilObjTest\_getCountSystem(), ilObjTest\_getScoreCutting(), and getMaximumPoints().
Referenced by calculateResultsFromSolution(), and getAdjustedReachedPoints().
|
protected |
Definition at line 1418 of file class.assQuestion.php.
Referenced by syncWithOriginal().
|
protected |
Definition at line 2913 of file class.assQuestion.php.
References getReachedPoints(), getSolutionValues(), and solutionValuesToLog().
Referenced by answerToParticipantInteraction().
assQuestion::answerToParticipantInteraction | ( | AdditionalInformationGenerator | $additional_info, |
int | $test_ref_id, | ||
int | $active_id, | ||
int | $pass, | ||
string | $source_ip, | ||
TestParticipantInteractionTypes | $interaction_type | ||
) |
Implements ILIAS\TestQuestionPool\Questions\Question.
Definition at line 2879 of file class.assQuestion.php.
References answerToLog().
Referenced by ilTestPlayerAbstractGUI\save().
assQuestion::authorizedOrIntermediateSolutionExists | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 2674 of file class.assQuestion.php.
References lookupForExistingSolutions().
assQuestion::authorizedSolutionExists | ( | int | $active_id, |
?int | $pass | ||
) |
Definition at line 2665 of file class.assQuestion.php.
References lookupForExistingSolutions(), and null.
assQuestion::buildHashedImageFilename | ( | string | $plain_image_filename, |
bool | $unique = false |
||
) |
Definition at line 1846 of file class.assQuestion.php.
References $DIC, $ilDB, _getSolutionMaxPass(), ilObjTest\_getUserIdFromActiveId(), ilCourseObjectiveResult\_updateObjectiveResult(), and null.
Referenced by assKprimChoice\handleFileUpload(), assMatchingQuestion\rebuildThumbnails(), assOrderingQuestion\storeImageFile(), and assOrderingQuestion\updateImageFile().
|
protected |
Definition at line 2335 of file class.assQuestion.php.
Referenced by assKprimChoice\loadFromDb().
|
protected |
Definition at line 2837 of file class.assQuestion.php.
Referenced by getTestPresentationConfig().
|
abstract |
Referenced by calculateResultsFromSolution(), and getAdjustedReachedPoints().
assQuestion::calculateReachedPointsFromPreviewSession | ( | ilAssQuestionPreviewSession | $preview_session | ) |
Definition at line 1801 of file class.assQuestion.php.
References ensureNonNegativePoints(), and ilAssQuestionPreviewSession\getParticipantsSolution().
Referenced by isPreviewSolutionCorrect().
|
final |
Calculates the question results from a previously saved question solution.
Definition at line 556 of file class.assQuestion.php.
References ilCourseObjectiveResult\_updateObjectiveResult(), adjustReachedPointsByScoringOptions(), calculateReachedPoints(), getId(), getProcessLocker(), getStep(), lookupForExistingSolutions(), and null.
Referenced by persistWorkingState().
assQuestion::cleanupMediaObjectUsage | ( | ) |
Definition at line 1983 of file class.assQuestion.php.
References ilRTE\_cleanupMediaObjectUsage(), getId(), and getRTETextWithMediaObjects().
Referenced by saveToDb().
assQuestion::clonePageOfQuestion | ( | int | $a_q_id | ) |
Definition at line 1028 of file class.assQuestion.php.
|
protected |
Definition at line 1332 of file class.assQuestion.php.
Referenced by copyObject(), createNewOriginalFromThisDuplicate(), duplicate(), and syncWithOriginal().
|
protected |
Definition at line 1556 of file class.assQuestion.php.
References ilFileUtils\delDir(), getSuggestedSolutionPath(), and ilFileUtils\makeDirParents().
Referenced by cloneSuggestedSolutions(), and onDuplicate().
|
protected |
Definition at line 1520 of file class.assQuestion.php.
References cloneSuggestedSolutionFiles(), and getSuggestedSolutionsRepo().
Referenced by syncWithOriginal().
assQuestion::cloneXHTMLMediaObjectsOfQuestion | ( | int | $source_question_id | ) |
Definition at line 1008 of file class.assQuestion.php.
References ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_saveUsage(), and getId().
Referenced by syncWithOriginal().
|
static |
Definition at line 2641 of file class.assQuestion.php.
References ILIAS\Repository\int().
|
final |
Definition at line 1275 of file class.assQuestion.php.
References cloneQuestionTypeSpecificProperties(), getId(), and getObjId().
|
protected |
Definition at line 1581 of file class.assQuestion.php.
References getSuggestedSolutions(), and getSuggestedSolutionsRepo().
Referenced by onCopy(), and onDuplicate().
|
final |
Definition at line 1300 of file class.assQuestion.php.
References $id, cloneQuestionTypeSpecificProperties(), getId(), and getObjId().
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 1136 of file class.assQuestion.php.
References createPageObject(), getAdditionalContentEditingMode(), getAuthor(), getDefaultNrOfTries(), getExternalId(), getId(), getObjId(), getQuestionTypeID(), null, and setId().
assQuestion::createPageObject | ( | ) |
Definition at line 1016 of file class.assQuestion.php.
References getId(), and getObjId().
Referenced by createNewQuestion(), and saveQuestionDataToDb().
assQuestion::delete | ( | int | $question_id | ) |
Definition at line 844 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(), deletePageOfQuestion(), deleteTaxonomyAssignments(), getObjId(), getSuggestedSolutionsRepo(), and isAdditionalContentEditingModePageObject().
assQuestion::deleteAdditionalTableData | ( | int | $question_id | ) |
Definition at line 817 of file class.assQuestion.php.
References getAdditionalTableName().
Referenced by delete().
assQuestion::deleteAnswers | ( | int | $question_id | ) |
Definition at line 798 of file class.assQuestion.php.
References getAnswerTableName().
Referenced by delete().
|
protected |
Definition at line 1470 of file class.assQuestion.php.
References getId(), getNotesManager(), getNotesRepo(), and getObjId().
Referenced by delete().
|
protected |
Definition at line 2545 of file class.assQuestion.php.
References getSolutionValues(), and removeSolutionRecordById().
Referenced by assFileUpload\saveWorkingData().
|
protected |
Definition at line 836 of file class.assQuestion.php.
References ilPageObject\_exists().
Referenced by delete().
|
protected |
Definition at line 2559 of file class.assQuestion.php.
References getId(), getStep(), ILIAS\Repository\int(), and null.
assQuestion::deleteSuggestedSolutions | ( | ) |
Definition at line 1503 of file class.assQuestion.php.
References ilInternalLink\_deleteAllLinksOfSource(), ilFileUtils\delDir(), getId(), getSuggestedSolutionPath(), and getSuggestedSolutionsRepo().
|
private |
Definition at line 960 of file class.assQuestion.php.
References getId(), getObjId(), and ilObjTaxonomy\getUsageOfObject().
Referenced by delete().
assQuestion::duplicate | ( | bool | $for_test = true , |
string | $title = '' , |
||
string | $author = '' , |
||
int | $owner = -1 , |
||
$test_obj_id = null |
|||
) |
Definition at line 1231 of file class.assQuestion.php.
References cloneQuestionTypeSpecificProperties(), getId(), and getObjId().
|
protected |
Definition at line 1436 of file class.assQuestion.php.
References getNotesDataService(), and getNotesManager().
Referenced by onCopy(), and onDuplicate().
|
protected |
Definition at line 2599 of file class.assQuestion.php.
References getSolutionValues(), and saveCurrentSolution().
Referenced by forceExistingIntermediateSolution().
|
protected |
Definition at line 2207 of file class.assQuestion.php.
Referenced by onCopy(), onDuplicate(), and syncSkillAssignments().
|
protected |
Duplicates the files of a suggested solution if the question is duplicated.
Definition at line 1531 of file class.assQuestion.php.
References getSuggestedSolutionPath(), and ilFileUtils\makeDirParents().
Referenced by onCopy().
|
protected |
Definition at line 1807 of file class.assQuestion.php.
References $points.
Referenced by assNumeric\calculateReachedPointsFromPreviewSession(), assErrorText\calculateReachedPointsFromPreviewSession(), assSingleChoice\calculateReachedPointsFromPreviewSession(), assOrderingQuestion\calculateReachedPointsFromPreviewSession(), assFormulaQuestion\calculateReachedPointsFromPreviewSession(), assClozeTest\calculateReachedPointsFromPreviewSession(), and calculateReachedPointsFromPreviewSession().
|
static |
Definition at line 2540 of file class.assQuestion.php.
References KEY_VALUES_IMPLOSION_SEPARATOR.
|
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 2867 of file class.assQuestion.php.
Referenced by assTextSubset\getSolutionSubmit(), and assTextSubsetGUI\writeAnswerSpecificPostData().
assQuestion::fetchIndexedValuesFromValuePairs | ( | array | $value_pairs | ) |
Definition at line 2808 of file class.assQuestion.php.
Referenced by assOrderingQuestion\calculateReachedPoints(), assOrderingQuestion\getOrderingElementListForSolutionOutput(), assOrderingQuestion\getSolutionOrderingElementListForTestOutput(), assOrderingQuestion\solutionValuesToLog(), and assOrderingQuestion\solutionValuesToText().
assQuestion::fetchValuePairsFromIndexedValues | ( | array | $indexedValues | ) |
Definition at line 2797 of file class.assQuestion.php.
static assQuestion::fixSvgToPng | ( | string | $imageFilenameContainingString | ) |
Definition at line 1065 of file class.assQuestion.php.
assQuestion::fixUnavailableSkinImageSources | ( | string | $html | ) |
Definition at line 1072 of file class.assQuestion.php.
References ilUtil\getImagePath(), null, and ilFileUtils\removeTrailingPathSeparators().
|
protected |
Definition at line 2606 of file class.assQuestion.php.
References duplicateIntermediateSolutionAuthorized(), getSolutionValues(), null, saveCurrentSolution(), and updateCurrentSolutionsAuthorization().
Referenced by assFileUpload\saveWorkingData().
assQuestion::formatSAQuestion | ( | $a_q | ) |
Definition at line 2131 of file class.assQuestion.php.
References getSelfAssessmentFormatter().
Referenced by assOrderingHorizontal\toJSON(), assTextQuestion\toJSON(), assTextSubset\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), assLongMenu\toJSON(), assKprimChoice\toJSON(), assErrorText\toJSON(), assOrderingQuestion\toJSON(), assMatchingQuestion\toJSON(), assClozeTest\toJSON(), assNumeric\toLog(), assOrderingHorizontal\toLog(), assTextSubset\toLog(), assLongMenu\toLog(), assTextQuestion\toLog(), assKprimChoice\toLog(), assMultipleChoice\toLog(), assSingleChoice\toLog(), assFileUpload\toLog(), assErrorText\toLog(), assOrderingQuestion\toLog(), assFormulaQuestion\toLog(), assMatchingQuestion\toLog(), and assClozeTest\toLog().
|
final |
Definition at line 262 of file class.assQuestion.php.
References getQuestionType().
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 2033 of file class.assQuestion.php.
assQuestion::getAdditionalContentEditingMode | ( | ) |
Definition at line 2283 of file class.assQuestion.php.
References $additionalContentEditingMode.
Referenced by createNewQuestion(), isAdditionalContentEditingModePageObject(), assSingleChoice\saveAdditionalQuestionDataToDb(), assMultipleChoice\saveAnswerSpecificDataToDb(), and saveQuestionDataToDb().
|
abstract |
|
final |
Definition at line 543 of file class.assQuestion.php.
References adjustReachedPointsByScoringOptions(), and calculateReachedPoints().
|
abstract |
assQuestion::getAuthor | ( | ) |
Definition at line 406 of file class.assQuestion.php.
References $author.
Referenced by createNewQuestion(), assOrderingQuestion\isComplete(), assClozeTest\isComplete(), and saveQuestionDataToDb().
assQuestion::getAuthorForHTMLOutput | ( | ) |
Definition at line 411 of file class.assQuestion.php.
References ILIAS\Repository\refinery().
assQuestion::getComment | ( | ) |
Definition at line 372 of file class.assQuestion.php.
References $comment.
Referenced by saveQuestionDataToDb().
assQuestion::getCorrectSolutionForTextOutput | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 2937 of file class.assQuestion.php.
References getSolutionValues(), and solutionValuesToText().
|
protected |
Definition at line 2357 of file class.assQuestion.php.
References getId(), getStep(), and null.
Referenced by assOrderingHorizontal\calculateReachedPoints(), assNumeric\calculateReachedPoints(), assFileUpload\calculateReachedPoints(), assErrorText\calculateReachedPoints(), assSingleChoice\calculateReachedPoints(), assTextSubset\calculateReachedPoints(), assMultipleChoice\calculateReachedPoints(), assTextQuestion\calculateReachedPoints(), assKprimChoice\calculateReachedPoints(), assLongMenu\calculateReachedPoints(), assMatchingQuestion\calculateReachedPoints(), assClozeTest\fetchUserResult(), assNumeric\saveWorkingData(), and assSingleChoice\saveWorkingData().
assQuestion::getCurrentUser | ( | ) |
Definition at line 237 of file class.assQuestion.php.
References $current_user.
Referenced by isWriteable().
assQuestion::getDefaultNrOfTries | ( | ) |
Definition at line 2187 of file class.assQuestion.php.
References $defaultnroftries.
Referenced by createNewQuestion().
assQuestion::getDescriptionForHTMLOutput | ( | ) |
Definition at line 377 of file class.assQuestion.php.
References ILIAS\UI\examples\Symbol\Glyph\Comment\comment(), and ILIAS\Repository\refinery().
assQuestion::getExternalId | ( | ) |
Definition at line 446 of file class.assQuestion.php.
References $external_id, getId(), IL_INST_ID, and null.
Referenced by createNewQuestion(), and saveQuestionDataToDb().
|
static |
Definition at line 2053 of file class.assQuestion.php.
References $DIC, $ilDB, ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository\getForQuestionId(), and null.
Referenced by assQuestionGUI\_getQuestionGUI().
assQuestion::getHtmlQuestionContentPurifier | ( | ) |
Definition at line 2330 of file class.assQuestion.php.
References ilHtmlPurifierFactory\getInstanceByType().
Referenced by assSingleChoice\addAnswer(), assKprimChoice\addAnswer(), assMultipleChoice\addAnswer(), assClozeTest\getClozeTextForHTMLOutput(), purifyAndPrepareTextAreaOutput(), assKprimChoice\setAnswers(), and assLongMenu\setLongMenuTextValue().
assQuestion::getHtmlUserSolutionPurifier | ( | ) |
Definition at line 2322 of file class.assQuestion.php.
References ilHtmlPurifierFactory\getInstanceByType().
Referenced by assTextQuestion\getSolutionSubmit(), and assTextSubset\getSolutionSubmit().
assQuestion::getId | ( | ) |
Definition at line 357 of file class.assQuestion.php.
References $id.
Referenced by ilQuestionUsagesTableGUI\__construct(), ilQuestionCumulatedStatisticsTableGUI\__construct(), assLongMenu\buildFolderName(), assOrderingQuestion\buildNestedOrderingElementInputGui(), assClozeTest\calculateCombinationResult(), calculateResultsFromSolution(), cleanupMediaObjectUsage(), assOrderingQuestion\cloneQuestionTypeSpecificProperties(), assSingleChoice\cloneQuestionTypeSpecificProperties(), assMultipleChoice\cloneQuestionTypeSpecificProperties(), assImagemapQuestion\cloneQuestionTypeSpecificProperties(), assMatchingQuestion\cloneQuestionTypeSpecificProperties(), assKprimChoice\cloneQuestionTypeSpecificProperties(), assFormulaQuestion\cloneQuestionTypeSpecificProperties(), assClozeTest\cloneQuestionTypeSpecificProperties(), cloneXHTMLMediaObjectsOfQuestion(), copyObject(), createNewOriginalFromThisDuplicate(), createNewQuestion(), createPageObject(), deleteComments(), deleteSolutionRecordByValues(), deleteSuggestedSolutions(), deleteTaxonomyAssignments(), duplicate(), assTextQuestion\duplicateAnswers(), assOrderingQuestion\fetchSolutionListFromFormSubmissionData(), assFormulaQuestion\getBestSolution(), assLongMenu\getCorrectAnswersAsJson(), getCurrentSolutionResultSet(), assErrorText\getErrorDataAsArrayForJS(), getExternalId(), assFileUpload\getFileUploadPath(), assFileUpload\getFileUploadPathWeb(), getInstances(), assTextQuestion\getLatestAutosaveContent(), assClozeTest\getMaximumPoints(), assOrderingQuestion\getOrderingElementList(), assErrorText\getParsedErrorTextForJS(), getReachedPoints(), assMultipleChoice\getRTETextWithMediaObjects(), assSingleChoice\getRTETextWithMediaObjects(), getRTETextWithMediaObjects(), getSolutionMaxPass(), assOrderingQuestion\getSolutionOrderingElementList(), getSolutionValues(), assFileUpload\getUploadedFiles(), assNumeric\getUserQuestionResult(), assOrderingHorizontal\getUserQuestionResult(), assTextSubset\getUserQuestionResult(), assErrorText\getUserQuestionResult(), assSingleChoice\getUserQuestionResult(), assMultipleChoice\getUserQuestionResult(), assOrderingQuestion\getUserQuestionResult(), assFormulaQuestion\getUserQuestionResult(), assMatchingQuestion\getUserQuestionResult(), assClozeTest\getUserQuestionResult(), assFormulaQuestion\getVariableSolutionValuesForPass(), assFileUpload\hasFileUploads(), isAnswered(), isWriteable(), assTextQuestion\loadFromDb(), loadSuggestedSolutions(), 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(), assOrderingHorizontal\saveAdditionalQuestionDataToDb(), assLongMenu\saveAdditionalQuestionDataToDb(), assClozeTest\saveAdditionalQuestionDataToDb(), assNumeric\saveAdditionalQuestionDataToDb(), assKprimChoice\saveAdditionalQuestionDataToDb(), assTextSubset\saveAdditionalQuestionDataToDb(), assSingleChoice\saveAdditionalQuestionDataToDb(), assMultipleChoice\saveAdditionalQuestionDataToDb(), assTextQuestion\saveAdditionalQuestionDataToDb(), assOrderingQuestion\saveAdditionalQuestionDataToDb(), assErrorText\saveAnswerSpecificDataToDb(), assMatchingQuestion\saveAnswerSpecificDataToDb(), assImagemapQuestion\saveAnswerSpecificDataToDb(), assClozeTest\saveAnswerSpecificDataToDb(), assLongMenu\saveAnswerSpecificDataToDb(), assNumeric\saveAnswerSpecificDataToDb(), assKprimChoice\saveAnswerSpecificDataToDb(), assTextSubset\saveAnswerSpecificDataToDb(), assMultipleChoice\saveAnswerSpecificDataToDb(), assClozeTest\saveClozeNumericGapRecordToDb(), assClozeTest\saveClozeSelectGapRecordToDb(), assClozeTest\saveClozeTextGapRecordToDb(), assFormulaQuestion\saveCurrentSolution(), saveCurrentSolution(), assSingleChoice\savePreviewData(), saveQuestionDataToDb(), assFormulaQuestion\saveToDb(), saveToDb(), assFormulaQuestion\saveWorkingData(), assFormulaQuestion\setId(), assOrderingQuestion\setOrderingElementList(), syncWithOriginal(), assOrderingHorizontal\toJSON(), assTextQuestion\toJSON(), assTextSubset\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), assLongMenu\toJSON(), assKprimChoice\toJSON(), assErrorText\toJSON(), assOrderingQuestion\toJSON(), assMatchingQuestion\toJSON(), assClozeTest\toJSON(), updateCurrentSolutionsAuthorization(), ilLOTestQuestionAdapter\updateQuestionResult(), and updateTimestamp().
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 678 of file class.assQuestion.php.
References $id, $obj_id, and null.
Referenced by assOrderingQuestion\buildOrderingImagesFormDataConverter(), assOrderingQuestion\cleanImagefiles(), assOrderingQuestion\cloneImages(), assMatchingQuestion\cloneImages(), assImagemapQuestion\copyImagemapFiles(), assMatchingQuestion\deleteImagefile(), assOrderingQuestion\dropImageFile(), assOrderingQuestion\ensureImagePathExists(), assKprimChoice\handleFileUpload(), assOrderingQuestion\isImageFileStored(), assKprimChoice\loadAnswerData(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assOrderingQuestion\rebuildThumbnails(), assMatchingQuestion\rebuildThumbnails(), assSingleChoice\saveAdditionalQuestionDataToDb(), assMultipleChoice\saveAdditionalQuestionDataToDb(), assMultipleChoice\setImageFile(), assSingleChoice\setImageFile(), assMatchingQuestion\setImageFile(), assImagemapQuestion\setImageFilename(), assOrderingQuestion\storeImageFile(), and assOrderingQuestion\updateImageFile().
assQuestion::getImagePathWeb | ( | ) |
Returns the web image path for web accessable images of a question.
The image path is under the web accessable data dir in assessment/REFERENCE_ID_OF_QUESTION_POOL/ID_OF_QUESTION/images TODO: in use? refactor and ask for a supported path in all cases, not for THE dynamic highlander path ^^
Definition at line 707 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(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), assKprimChoice\toJSON(), and assOrderingQuestion\toJSON().
assQuestion::getInstances | ( | ) |
Definition at line 1989 of file class.assQuestion.php.
References ilObject\_getAllReferences(), ilObjTest\_lookupAuthor(), ilObject\_lookupTitle(), and getId().
assQuestion::getInternalLinkHref | ( | string | $target | ) |
Definition at line 1670 of file class.assQuestion.php.
Referenced by getSuggestedSolutionOutput().
assQuestion::getLastChange | ( | ) |
assQuestion::getLifecycle | ( | ) |
Definition at line 431 of file class.assQuestion.php.
References $lifecycle.
Referenced by saveToDb().
assQuestion::getMaximumPoints | ( | ) |
Definition at line 538 of file class.assQuestion.php.
References $points.
Referenced by adjustReachedPointsByScoringOptions(), isPreviewSolutionCorrect(), and saveQuestionDataToDb().
assQuestion::getMaximumThumbSize | ( | ) |
Definition at line 401 of file class.assQuestion.php.
assQuestion::getMinimumThumbSize | ( | ) |
Definition at line 396 of file class.assQuestion.php.
Referenced by assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), and assOrderingQuestion\loadFromDb().
|
protected |
Definition at line 1491 of file class.assQuestion.php.
References $service.
Referenced by duplicateComments().
|
protected |
Definition at line 1485 of file class.assQuestion.php.
References $service.
Referenced by deleteComments(), and duplicateComments().
|
protected |
Definition at line 1497 of file class.assQuestion.php.
References $service.
Referenced by deleteComments().
assQuestion::getNrOfTries | ( | ) |
Definition at line 2099 of file class.assQuestion.php.
References $nr_of_tries.
Referenced by saveQuestionDataToDb(), assOrderingHorizontal\toJSON(), assTextQuestion\toJSON(), assTextSubset\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), assLongMenu\toJSON(), assKprimChoice\toJSON(), assErrorText\toJSON(), assOrderingQuestion\toJSON(), assMatchingQuestion\toJSON(), and assClozeTest\toJSON().
|
staticprotected |
Definition at line 2257 of file class.assQuestion.php.
References $DIC, $ilDB, and $res.
Referenced by isAnswered().
assQuestion::getObjId | ( | ) |
Definition at line 421 of file class.assQuestion.php.
References $obj_id.
Referenced by assOrderingQuestion\cloneQuestionTypeSpecificProperties(), assSingleChoice\cloneQuestionTypeSpecificProperties(), assMultipleChoice\cloneQuestionTypeSpecificProperties(), assImagemapQuestion\cloneQuestionTypeSpecificProperties(), assMatchingQuestion\cloneQuestionTypeSpecificProperties(), assKprimChoice\cloneQuestionTypeSpecificProperties(), copyObject(), createNewOriginalFromThisDuplicate(), createNewQuestion(), createPageObject(), delete(), deleteComments(), deleteTaxonomyAssignments(), duplicate(), isWriteable(), saveQuestionDataToDb(), saveToDb(), and syncWithOriginal().
assQuestion::getOriginalId | ( | ) |
Definition at line 1051 of file class.assQuestion.php.
References $original_id.
Referenced by syncWithOriginal().
assQuestion::getOwner | ( | ) |
Definition at line 416 of file class.assQuestion.php.
References $owner.
Referenced by saveQuestionDataToDb(), and saveToDb().
assQuestion::getPageOfQuestion | ( | ) |
Definition at line 1040 of file class.assQuestion.php.
assQuestion::getPoints | ( | ) |
Definition at line 1757 of file class.assQuestion.php.
References $points.
Referenced by assNumeric\calculateReachedPoints(), assFileUpload\calculateReachedPoints(), assFileUpload\calculateReachedPointsForSolution(), assOrderingHorizontal\calculateReachedPointsForSolution(), assKprimChoice\calculateReachedPointsForSolution(), assOrderingQuestion\calculateReachedPointsForSolution(), assNumeric\calculateReachedPointsFromPreviewSession(), assNumeric\getMaximumPoints(), assOrderingHorizontal\getMaximumPoints(), assFileUpload\getMaximumPoints(), assOrderingQuestion\getMaximumPoints(), assTextSubset\isAnswerCorrect(), assLongMenu\isComplete(), assNumeric\saveAnswerSpecificDataToDb(), assOrderingHorizontal\toJSON(), assOrderingQuestion\toJSON(), assNumeric\toLog(), assOrderingHorizontal\toLog(), assFileUpload\toLog(), and assOrderingQuestion\toLog().
assQuestion::getPreventRteUsage | ( | ) |
assQuestion::getProcessLocker | ( | ) |
Definition at line 257 of file class.assQuestion.php.
References $processLocker.
Referenced by calculateResultsFromSolution(), persistWorkingState(), removeIntermediateSolution(), resetUsersAnswer(), assOrderingHorizontal\saveWorkingData(), assNumeric\saveWorkingData(), assErrorText\saveWorkingData(), assSingleChoice\saveWorkingData(), assTextSubset\saveWorkingData(), assKprimChoice\saveWorkingData(), assTextQuestion\saveWorkingData(), assMultipleChoice\saveWorkingData(), assFileUpload\saveWorkingData(), assLongMenu\saveWorkingData(), assOrderingQuestion\saveWorkingData(), assFormulaQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), and assClozeTest\saveWorkingData().
assQuestion::getQuestion | ( | ) |
Definition at line 1929 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(), assTextQuestion\toJSON(), assTextSubset\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), assLongMenu\toJSON(), assKprimChoice\toJSON(), assErrorText\toJSON(), assOrderingQuestion\toJSON(), assMatchingQuestion\toJSON(), assClozeTest\toJSON(), assNumeric\toLog(), assOrderingHorizontal\toLog(), assTextSubset\toLog(), assLongMenu\toLog(), assTextQuestion\toLog(), assKprimChoice\toLog(), assMultipleChoice\toLog(), assSingleChoice\toLog(), assFileUpload\toLog(), assErrorText\toLog(), assOrderingQuestion\toLog(), assFormulaQuestion\toLog(), assMatchingQuestion\toLog(), and assClozeTest\toLog().
|
protected |
Definition at line 227 of file class.assQuestion.php.
Referenced by assFileUpload\isFileDeletionAction().
assQuestion::getQuestionForHTMLOutput | ( | ) |
Definition at line 1934 of file class.assQuestion.php.
References purifyAndPrepareTextAreaOutput().
|
abstract |
Referenced by fromXML(), getQuestionTypeID(), and toXML().
assQuestion::getQuestionTypeID | ( | ) |
Definition at line 1958 of file class.assQuestion.php.
References getQuestionType().
Referenced by createNewQuestion(), and saveQuestionDataToDb().
assQuestion::getReachedPoints | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 533 of file class.assQuestion.php.
References getId().
Referenced by answerToLog(), and ilLOTestQuestionAdapter\updateQuestionResult().
|
protected |
Definition at line 1972 of file class.assQuestion.php.
References getId(), and getQuestion().
Referenced by cleanupMediaObjectUsage().
assQuestion::getSelfAssessmentEditingMode | ( | ) |
Definition at line 2177 of file class.assQuestion.php.
References $selfassessmenteditingmode.
Referenced by ilAssQuestionAuthoringFormGUI\addGenericAssessmentQuestionCommandButtons().
|
protected |
Definition at line 2136 of file class.assQuestion.php.
Referenced by formatSAQuestion().
assQuestion::getShuffle | ( | ) |
Definition at line 362 of file class.assQuestion.php.
References $shuffle.
Referenced by assSingleChoice\saveAdditionalQuestionDataToDb(), assMultipleChoice\saveAdditionalQuestionDataToDb(), assTextQuestion\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), assLongMenu\toJSON(), assErrorText\toJSON(), assClozeTest\toJSON(), assNumeric\toLog(), assLongMenu\toLog(), assKprimChoice\toLog(), assMultipleChoice\toLog(), assSingleChoice\toLog(), assErrorText\toLog(), assMatchingQuestion\toLog(), and assClozeTest\toLog().
assQuestion::getShuffler | ( | ) |
Definition at line 242 of file class.assQuestion.php.
References $shuffler.
Referenced by assOrderingHorizontal\getRandomOrderingElements(), assOrderingQuestion\getShuffledOrderingElementList(), assOrderingQuestion\toJSON(), and assMatchingQuestion\toJSON().
assQuestion::getSolutionForTextOutput | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 2928 of file class.assQuestion.php.
References getSolutionValues(), and solutionValuesToText().
assQuestion::getSolutionMaxPass | ( | int | $active_id | ) |
Definition at line 1767 of file class.assQuestion.php.
References getId().
Referenced by assOrderingHorizontal\calculateReachedPoints(), assNumeric\calculateReachedPoints(), assFileUpload\calculateReachedPoints(), assErrorText\calculateReachedPoints(), assSingleChoice\calculateReachedPoints(), assTextSubset\calculateReachedPoints(), assMultipleChoice\calculateReachedPoints(), assTextQuestion\calculateReachedPoints(), assKprimChoice\calculateReachedPoints(), assOrderingQuestion\calculateReachedPoints(), assLongMenu\calculateReachedPoints(), assMatchingQuestion\calculateReachedPoints(), assFormulaQuestion\calculateReachedPoints(), assClozeTest\fetchUserResult(), getSolutionValues(), and assFileUpload\getUploadedFiles().
|
protected |
Definition at line 2406 of file class.assQuestion.php.
Referenced by assFileUpload\saveWorkingData().
assQuestion::getSolutionValues | ( | int | $active_id, |
?int | $pass = null , |
||
bool | $authorized = true |
||
) |
Loads solutions of a given user from the database an returns it.
Definition at line 746 of file class.assQuestion.php.
References getId(), getSolutionMaxPass(), getStep(), and null.
Referenced by answerToLog(), assOrderingQuestion\calculateReachedPoints(), assFormulaQuestion\calculateReachedPoints(), deleteDummySolutionRecord(), duplicateIntermediateSolutionAuthorized(), forceExistingIntermediateSolution(), assFormulaQuestion\getCorrectSolutionForTextOutput(), getCorrectSolutionForTextOutput(), assOrderingQuestion\getOrderingElementListForSolutionOutput(), getSolutionForTextOutput(), ilTestCorrectionsGUI\getSolutions(), ilTestCorrectionsGUI\getSolutionsByParticipantResults(), getTestOutputSolutions(), assFileUpload\getUploadedFilesForWeb(), assFileUpload\getUserSolutionPreferingIntermediate(), and getUserSolutionPreferingIntermediate().
assQuestion::getStep | ( | ) |
Definition at line 2636 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().
assQuestion::getSuggestedSolution | ( | int | $subquestion_index = 0 | ) |
Definition at line 1512 of file class.assQuestion.php.
References null.
assQuestion::getSuggestedSolutionOutput | ( | ) |
Definition at line 466 of file class.assQuestion.php.
References getInternalLinkHref(), getSuggestedSolutionPathWeb(), ILIAS\Repository\lng(), ilLegacyFormElementsUtil\prepareFormOutput(), ilWACSignedPath\setTokenMaxLifetimeInSeconds(), and ilWACSignedPath\signFile().
assQuestion::getSuggestedSolutionPath | ( | ) |
Definition at line 669 of file class.assQuestion.php.
References CLIENT_WEB_DIR.
Referenced by cloneSuggestedSolutionFiles(), deleteSuggestedSolutions(), and duplicateSuggestedSolutionFiles().
assQuestion::getSuggestedSolutionPathWeb | ( | ) |
Definition at line 691 of file class.assQuestion.php.
References CLIENT_WEB_DIR, and ilFileUtils\removeTrailingPathSeparators().
Referenced by getSuggestedSolutionOutput().
assQuestion::getSuggestedSolutions | ( | ) |
Definition at line 509 of file class.assQuestion.php.
References $suggested_solutions.
Referenced by copySuggestedSolutions().
|
protected |
Definition at line 2842 of file class.assQuestion.php.
References $suggestedsolution_repo.
Referenced by cloneSuggestedSolutions(), copySuggestedSolutions(), delete(), deleteSuggestedSolutions(), and loadSuggestedSolutions().
assQuestion::getTestId | ( | ) |
Definition at line 367 of file class.assQuestion.php.
References $test_id.
Referenced by resetUsersAnswer().
assQuestion::getTestOutputSolutions | ( | int | $activeId, |
int | $pass | ||
) |
Definition at line 721 of file class.assQuestion.php.
References getSolutionValues(), getTestPresentationConfig(), and getUserSolutionPreferingIntermediate().
Referenced by assOrderingQuestion\getSolutionOrderingElementListForTestOutput().
assQuestion::getTestPresentationConfig | ( | ) |
Definition at line 2828 of file class.assQuestion.php.
References $test_question_config, buildTestPresentationConfig(), and null.
Referenced by getTestOutputSolutions(), ilTestPlayerAbstractGUI\initTestQuestionConfig(), and assFileUpload\isFileReuseHandlingRequired().
assQuestion::getThumbSize | ( | ) |
Definition at line 382 of file class.assQuestion.php.
References $thumb_size.
Referenced by assOrderingQuestion\generateThumbForFile(), assSingleChoice\saveAdditionalQuestionDataToDb(), assMultipleChoice\saveAdditionalQuestionDataToDb(), assOrderingQuestion\saveAdditionalQuestionDataToDb(), assOrderingQuestion\setContentType(), assMultipleChoice\setImageFile(), assSingleChoice\setImageFile(), assOrderingQuestion\storeImageFile(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), and assOrderingQuestion\updateImageFile().
assQuestion::getTitle | ( | ) |
Definition at line 342 of file class.assQuestion.php.
References $title.
Referenced by getTitleFilenameCompliant(), assOrderingQuestion\isComplete(), assClozeTest\isComplete(), and saveQuestionDataToDb().
assQuestion::getTitleFilenameCompliant | ( | ) |
Definition at line 352 of file class.assQuestion.php.
References ilFileUtils\getASCIIFilename(), and getTitle().
assQuestion::getTitleForHTMLOutput | ( | ) |
Definition at line 347 of file class.assQuestion.php.
References ILIAS\Repository\refinery().
Referenced by assOrderingHorizontal\toJSON(), assTextQuestion\toJSON(), assTextSubset\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), assLongMenu\toJSON(), assKprimChoice\toJSON(), assErrorText\toJSON(), assOrderingQuestion\toJSON(), assMatchingQuestion\toJSON(), assClozeTest\toJSON(), assNumeric\toLog(), assOrderingHorizontal\toLog(), assTextSubset\toLog(), assLongMenu\toLog(), assTextQuestion\toLog(), assKprimChoice\toLog(), assMultipleChoice\toLog(), assSingleChoice\toLog(), assFileUpload\toLog(), assErrorText\toLog(), assOrderingQuestion\toLog(), assFormulaQuestion\toLog(), assMatchingQuestion\toLog(), and assClozeTest\toLog().
assQuestion::getTotalAnswers | ( | ) |
Definition at line 970 of file class.assQuestion.php.
assQuestion::getUserSolutionPreferingIntermediate | ( | int | $active_id, |
?int | $pass = null |
||
) |
Definition at line 730 of file class.assQuestion.php.
References getSolutionValues().
Referenced by getTestOutputSolutions().
assQuestion::getValidAdditionalContentEditingModes | ( | ) |
Definition at line 2311 of file class.assQuestion.php.
Referenced by isValidAdditionalContentEditingMode(), and setAdditionalContentEditingMode().
assQuestion::getVariablesAsTextArray | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 2946 of file class.assQuestion.php.
assQuestion::hasSpecificFeedback | ( | ) |
Definition at line 2048 of file class.assQuestion.php.
assQuestion::hasWritableOriginalInQuestionPool | ( | ) |
Definition at line 2872 of file class.assQuestion.php.
References instantiateQuestion().
|
static |
Definition at line 2535 of file class.assQuestion.php.
References KEY_VALUES_IMPLOSION_SEPARATOR.
Referenced by assImagemapQuestionGUI\buildSelectionParameter().
|
static |
int | $question_id |
InvalidArgumentException |
Definition at line 1736 of file class.assQuestion.php.
References $DIC, $ilDB, $question, and ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository\getForQuestionId().
Referenced by ilObjTest\_instanciateQuestion(), ILIAS\Test\ExportImport\ResultsExportExcel\addUserContent(), ilTestFixedQuestionSetConfig\cloneQuestionSetRelatedData(), ilObjTestGUI\copyAndLinkQuestionsToPoolObject(), ilPCQuestion\copyPoolQuestionIntoPage(), ilObjQuestionPool\deleteQuestion(), ilTestResultsToXML\exportTestResults(), ilAssLacQuestionProvider\getQuestion(), ilTestPlayerAbstractGUI\getQuestionInstance(), ILIAS\Test\ExportImport\Export\getQuestionQtiXml(), ilBulkEditQuestionsGUI\getQuestions(), ilTestRandomQuestionSetPoolDeriver\getQuestionsForPool(), ilTestSequence\getSequenceSummary(), ILIAS\Test\Questions\Presentation\QuestionsTableActions\handleCommand(), ilPCQuestion\handleCopiedContent(), hasWritableOriginalInQuestionPool(), ilObjTest\insertQuestion(), ilQuestionPageParser\processPagesToParse(), ilAssIncompleteQuestionPurger\purgeQuestionIds(), ilObjTest\removeQuestionWithResults(), ilTestRandomQuestionSetStagingPoolBuilder\removeStagedQuestions(), ilSoapTestAdministration\saveQuestion(), ilSoapTestAdministration\saveQuestionSolution(), ilTestRandomQuestionSetStagingPoolBuilder\stageQuestionsFromSourcePool(), ilTestRandomQuestionSetStagingPoolBuilder\stageQuestionsFromSourcePoolCheap(), and ilAssQuestionSkillAssignmentsGUI\syncOriginalCmd().
assQuestion::intermediateSolutionExists | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 2659 of file class.assQuestion.php.
References lookupForExistingSolutions().
Referenced by assFileUpload\saveWorkingData().
assQuestion::isAddableAnswerOptionValue | ( | int | $qIndex, |
string | $answerOptionValue | ||
) |
Definition at line 2735 of file class.assQuestion.php.
assQuestion::isAdditionalContentEditingModePageObject | ( | ) |
Definition at line 2297 of file class.assQuestion.php.
References ADDITIONAL_CONTENT_EDITING_MODE_IPE, and getAdditionalContentEditingMode().
Referenced by delete(), assClozeTest\getClozeTextForHTMLOutput(), and purifyAndPrepareTextAreaOutput().
assQuestion::isAnswered | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 2251 of file class.assQuestion.php.
References getId(), and getNumExistingSolutionRecords().
|
abstract |
|
protected |
Definition at line 2554 of file class.assQuestion.php.
Referenced by assFileUpload\calculateReachedPoints().
|
static |
Definition at line 991 of file class.assQuestion.php.
|
static |
Definition at line 222 of file class.assQuestion.php.
|
protected |
Definition at line 232 of file class.assQuestion.php.
Referenced by assFileUpload\isFileDeletionSubmitAvailable(), and assFileUpload\isFileReuseSubmitAvailable().
assQuestion::isPreviewSolutionCorrect | ( | ilAssQuestionPreviewSession | $preview_session | ) |
Definition at line 1812 of file class.assQuestion.php.
References calculateReachedPointsFromPreviewSession(), and getMaximumPoints().
assQuestion::isValidAdditionalContentEditingMode | ( | string | $additionalContentEditingMode | ) |
Definition at line 2302 of file class.assQuestion.php.
References getValidAdditionalContentEditingModes().
assQuestion::isWriteable | ( | ) |
Definition at line 1796 of file class.assQuestion.php.
References ilObjQuestionPool\_isWriteable(), getCurrentUser(), getId(), and getObjId().
|
protected |
Definition at line 2162 of file class.assQuestion.php.
References ilAssSelfAssessmentMigrator\migrateToLmContent(), and setQuestion().
Referenced by migrateContentForLearningModule().
|
protected |
Definition at line 2167 of file class.assQuestion.php.
Referenced by migrateContentForLearningModule().
assQuestion::loadFromDb | ( | int | $question_id | ) |
Definition at line 1109 of file class.assQuestion.php.
References $data, and loadSuggestedSolutions().
|
protected |
Definition at line 2847 of file class.assQuestion.php.
References getId(), and getSuggestedSolutionsRepo().
Referenced by loadFromDb().
assQuestion::lookupForExistingSolutions | ( | int | $activeId, |
int | $pass | ||
) |
Lookup if an authorized or intermediate solution exists.
Definition at line 2699 of file class.assQuestion.php.
References getId(), getStep(), and null.
Referenced by authorizedOrIntermediateSolutionExists(), authorizedSolutionExists(), calculateResultsFromSolution(), and intermediateSolutionExists().
|
protected |
Definition at line 2681 of file class.assQuestion.php.
References getId().
Referenced by assNumeric\getUserQuestionResult(), assOrderingHorizontal\getUserQuestionResult(), assTextSubset\getUserQuestionResult(), assSingleChoice\getUserQuestionResult(), assMultipleChoice\getUserQuestionResult(), assOrderingQuestion\getUserQuestionResult(), assFormulaQuestion\getUserQuestionResult(), assMatchingQuestion\getUserQuestionResult(), and assClozeTest\getUserQuestionResult().
|
static |
Definition at line 2194 of file class.assQuestion.php.
References $DIC, $ilDB, $res, and null.
Referenced by ILIAS\Test\Questions\Presentation\QuestionsTableActions\checkQuestionParametersForCopyToPool(), and ilAssQuestionSkillAssignmentsGUI\isSyncOriginalPossibleAndAllowed().
assQuestion::migrateContentForLearningModule | ( | ilAssSelfAssessmentMigrator | $migrator | ) |
Definition at line 2153 of file class.assQuestion.php.
References getId(), lmMigrateQuestionTypeGenericContent(), lmMigrateQuestionTypeSpecificContent(), and saveToDb().
Referenced by ilAssSelfAssessmentQuestionFormatter\prepareQuestionForLearningModule().
|
protected |
Definition at line 1427 of file class.assQuestion.php.
References copySuggestedSolutions(), duplicateComments(), duplicateSkillAssignments(), and duplicateSuggestedSolutionFiles().
|
protected |
Definition at line 1405 of file class.assQuestion.php.
References cloneSuggestedSolutionFiles(), copySuggestedSolutions(), duplicateComments(), and duplicateSkillAssignments().
|
final |
persists the preview state for current user and question
Definition at line 653 of file class.assQuestion.php.
References savePreviewData(), and validateSolutionSubmit().
|
final |
persists the working state for current testactive and testpass
Definition at line 623 of file class.assQuestion.php.
References ilObjTest\_getPass(), calculateResultsFromSolution(), getProcessLocker(), null, removeIntermediateSolution(), saveWorkingData(), and validateSolutionSubmit().
Referenced by ilTestPlayerAbstractGUI\save().
|
protected |
Definition at line 1939 of file class.assQuestion.php.
References getHtmlQuestionContentPurifier(), isAdditionalContentEditingModePageObject(), and ilLegacyFormElementsUtil\prepareTextareaOutput().
Referenced by getQuestionForHTMLOutput(), and assFormulaQuestion\substituteVariables().
assQuestion::removeAllExistingSolutions | ( | ) |
Definition at line 2744 of file class.assQuestion.php.
References getId().
|
protected |
Definition at line 1364 of file class.assQuestion.php.
Referenced by assOrderingQuestion\cloneImages(), assMatchingQuestion\cloneImages(), and assImagemapQuestion\copyImagemapFiles().
assQuestion::removeCurrentSolution | ( | int | $active_id, |
int | $pass, | ||
bool | $authorized = true |
||
) |
Definition at line 2431 of file class.assQuestion.php.
References getId(), getStep(), and null.
Referenced by removeIntermediateSolution(), assOrderingHorizontal\saveWorkingData(), assErrorText\saveWorkingData(), assTextSubset\saveWorkingData(), assKprimChoice\saveWorkingData(), assTextQuestion\saveWorkingData(), assMultipleChoice\saveWorkingData(), assLongMenu\saveWorkingData(), assFileUpload\saveWorkingData(), assOrderingQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), and assClozeTest\saveWorkingData().
assQuestion::removeExistingSolutions | ( | int | $activeId, |
int | $pass | ||
) |
Definition at line 2750 of file class.assQuestion.php.
References getId(), getStep(), and null.
Referenced by resetUsersAnswer().
assQuestion::removeIntermediateSolution | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 2421 of file class.assQuestion.php.
References getProcessLocker(), and removeCurrentSolution().
Referenced by persistWorkingState().
assQuestion::removeResultRecord | ( | int | $activeId, |
int | $pass | ||
) |
Definition at line 2777 of file class.assQuestion.php.
References getId(), getStep(), and null.
Referenced by resetUsersAnswer().
|
protected |
Definition at line 2393 of file class.assQuestion.php.
Referenced by deleteDummySolutionRecord(), assNumeric\saveWorkingData(), and assSingleChoice\saveWorkingData().
|
static |
Definition at line 1391 of file class.assQuestion.php.
Referenced by ilTestRandomQuestionSetPoolDeriver\updateTestQuestionStage().
assQuestion::resetUsersAnswer | ( | int | $activeId, |
int | $pass | ||
) |
Definition at line 2770 of file class.assQuestion.php.
References getProcessLocker(), getTestId(), removeExistingSolutions(), and removeResultRecord().
assQuestion::resolveInternalLink | ( | string | $internal_link | ) |
Definition at line 1591 of file class.assQuestion.php.
References ilInternalLink\_getIdForImportId(), ilLMObject\_getIdForImportId(), and null.
Referenced by resolveSuggestedSolutionLinks().
assQuestion::resolveSuggestedSolutionLinks | ( | ) |
Definition at line 1622 of file class.assQuestion.php.
References ilInternalLink\_deleteAllLinksOfSource(), ilInternalLink\_saveLink(), getId(), and resolveInternalLink().
assQuestion::saveCurrentSolution | ( | int | $active_id, |
int | $pass, | ||
$value1, | |||
$value2, | |||
bool | $authorized = true , |
||
$tstamp = 0 |
|||
) |
Definition at line 2466 of file class.assQuestion.php.
References getId(), getStep(), ILIAS\Repository\int(), and null.
Referenced by duplicateIntermediateSolutionAuthorized(), forceExistingIntermediateSolution(), assOrderingHorizontal\saveWorkingData(), assNumeric\saveWorkingData(), assErrorText\saveWorkingData(), assSingleChoice\saveWorkingData(), assTextSubset\saveWorkingData(), assKprimChoice\saveWorkingData(), assTextQuestion\saveWorkingData(), assMultipleChoice\saveWorkingData(), assFileUpload\saveWorkingData(), assLongMenu\saveWorkingData(), assOrderingQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), and assClozeTest\saveWorkingData().
|
static |
Definition at line 1378 of file class.assQuestion.php.
Referenced by ilObjTestGUI\copyAndLinkQuestionsToPoolObject(), ilObjTestGUI\executeAfterQuestionCreationTasks(), and ilTestRandomQuestionSetPoolDeriver\updateTestQuestionStage().
|
protected |
Definition at line 664 of file class.assQuestion.php.
References ilAssQuestionPreviewSession\setParticipantsSolution().
Referenced by persistPreviewState().
assQuestion::saveQuestionDataToDb | ( | ?int | $original_id = null | ) |
Definition at line 1187 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 assNumeric\saveToDb(), assTextSubset\saveToDb(), assErrorText\saveToDb(), assOrderingHorizontal\saveToDb(), assSingleChoice\saveToDb(), assMultipleChoice\saveToDb(), assOrderingQuestion\saveToDb(), assTextQuestion\saveToDb(), assFileUpload\saveToDb(), assMatchingQuestion\saveToDb(), assImagemapQuestion\saveToDb(), assLongMenu\saveToDb(), assClozeTest\saveToDb(), assKprimChoice\saveToDb(), and assFormulaQuestion\saveToDb().
assQuestion::saveToDb | ( | ?int | $original_id = null | ) |
Definition at line 1338 of file class.assQuestion.php.
References ilObjQuestionPool\_updateQuestionCount(), cleanupMediaObjectUsage(), getId(), getLifecycle(), getObjId(), getOwner(), and isComplete().
Referenced by assOrderingQuestion\cloneQuestionTypeSpecificProperties(), and migrateContentForLearningModule().
|
abstract |
assQuestion::setAdditionalContentEditingMode | ( | ?string | $additionalContentEditingMode | ) |
Definition at line 2288 of file class.assQuestion.php.
References $additionalContentEditingMode, and getValidAdditionalContentEditingModes().
Referenced by assNumeric\loadFromDb(), assTextSubset\loadFromDb(), assSingleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assMultipleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assFileUpload\loadFromDb(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assKprimChoice\loadFromDb(), assImagemapQuestion\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), and assFormulaQuestion\loadFromDb().
assQuestion::setAuthor | ( | string | $author = "" | ) |
Definition at line 329 of file class.assQuestion.php.
References $author.
Referenced by assNumeric\loadFromDb(), assTextSubset\loadFromDb(), assSingleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assMultipleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assFileUpload\loadFromDb(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assKprimChoice\loadFromDb(), assImagemapQuestion\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), and assFormulaQuestion\loadFromDb().
assQuestion::setComment | ( | string | $comment = "" | ) |
Definition at line 319 of file class.assQuestion.php.
References $comment, and ILIAS\UI\examples\Symbol\Glyph\Comment\comment().
Referenced by assNumeric\loadFromDb(), assTextSubset\loadFromDb(), assSingleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assMultipleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assFileUpload\loadFromDb(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assKprimChoice\loadFromDb(), assImagemapQuestion\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), and assFormulaQuestion\loadFromDb().
assQuestion::setDefaultNrOfTries | ( | int | $defaultnroftries | ) |
assQuestion::setExportImagePath | ( | string | $path | ) |
assQuestion::setExternalId | ( | ?string | $external_id | ) |
|
static |
Definition at line 217 of file class.assQuestion.php.
References $force_pass_results_update_enabled.
assQuestion::setId | ( | int | $id = -1 | ) |
Definition at line 309 of file class.assQuestion.php.
References $id.
Referenced by createNewQuestion(), assNumeric\loadFromDb(), assTextSubset\loadFromDb(), assSingleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assMultipleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assFileUpload\loadFromDb(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assKprimChoice\loadFromDb(), assImagemapQuestion\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), and saveQuestionDataToDb().
assQuestion::setLastChange | ( | int | $lastChange | ) |
Definition at line 2347 of file class.assQuestion.php.
References $lastChange.
Referenced by assKprimChoice\loadFromDb().
assQuestion::setLifecycle | ( | ilAssQuestionLifecycle | $lifecycle | ) |
Definition at line 436 of file class.assQuestion.php.
References $lifecycle.
Referenced by assNumeric\loadFromDb(), assTextSubset\loadFromDb(), assSingleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assMultipleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assFileUpload\loadFromDb(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assKprimChoice\loadFromDb(), assImagemapQuestion\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), and assFormulaQuestion\loadFromDb().
assQuestion::setNrOfTries | ( | int | $a_nr_of_tries | ) |
Definition at line 2104 of file class.assQuestion.php.
Referenced by assNumeric\loadFromDb(), assTextSubset\loadFromDb(), assSingleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assMultipleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assFileUpload\loadFromDb(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assKprimChoice\loadFromDb(), assImagemapQuestion\loadFromDb(), assMatchingQuestion\loadFromDb(), and assLongMenu\loadFromDb().
assQuestion::setObjId | ( | int | $obj_id = 0 | ) |
Definition at line 426 of file class.assQuestion.php.
References $obj_id.
Referenced by assNumeric\loadFromDb(), assTextSubset\loadFromDb(), assSingleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assMultipleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assFileUpload\loadFromDb(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assKprimChoice\loadFromDb(), assImagemapQuestion\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), and assFormulaQuestion\loadFromDb().
assQuestion::setOriginalId | ( | ?int | $original_id | ) |
Definition at line 1046 of file class.assQuestion.php.
References $original_id.
Referenced by assNumeric\loadFromDb(), assTextSubset\loadFromDb(), assSingleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assMultipleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assFileUpload\loadFromDb(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assKprimChoice\loadFromDb(), assImagemapQuestion\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), and assFormulaQuestion\loadFromDb().
assQuestion::setOwner | ( | int | $owner = -1 | ) |
Definition at line 337 of file class.assQuestion.php.
References $owner.
Referenced by assNumeric\loadFromDb(), assTextSubset\loadFromDb(), assSingleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assMultipleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assFileUpload\loadFromDb(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assKprimChoice\loadFromDb(), assImagemapQuestion\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), and assFormulaQuestion\loadFromDb().
assQuestion::setPoints | ( | float | $points | ) |
Definition at line 1762 of file class.assQuestion.php.
References $points.
Referenced by assNumeric\loadFromDb(), assTextSubset\loadFromDb(), assSingleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assMultipleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assFileUpload\loadFromDb(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assKprimChoice\loadFromDb(), assImagemapQuestion\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assFormulaQuestion\loadFromDb(), and assLongMenu\saveAnswerSpecificDataToDb().
assQuestion::setPreventRteUsage | ( | bool | $prevent_rte_usage | ) |
assQuestion::setProcessLocker | ( | ilAssQuestionProcessLocker | $processLocker | ) |
Definition at line 252 of file class.assQuestion.php.
References $processLocker.
assQuestion::setQuestion | ( | string | $question = "" | ) |
Definition at line 1953 of file class.assQuestion.php.
References $question.
Referenced by assClozeTest\__construct(), lmMigrateQuestionTypeGenericContent(), assNumeric\loadFromDb(), assTextSubset\loadFromDb(), assSingleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assMultipleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assFileUpload\loadFromDb(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assKprimChoice\loadFromDb(), assImagemapQuestion\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), and assFormulaQuestion\loadFromDb().
assQuestion::setSelfAssessmentEditingMode | ( | bool | $selfassessmenteditingmode | ) |
Definition at line 2172 of file class.assQuestion.php.
References $selfassessmenteditingmode.
assQuestion::setShuffle | ( | ?bool | $shuffle = true | ) |
Definition at line 324 of file class.assQuestion.php.
Referenced by assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), and assTextQuestion\loadFromDb().
assQuestion::setShuffler | ( | Transformation | $shuffler | ) |
Definition at line 247 of file class.assQuestion.php.
References $shuffler.
Referenced by assMatchingQuestion\toJSON().
assQuestion::setStep | ( | $step | ) |
int | null | $step |
Definition at line 2628 of file class.assQuestion.php.
References $step.
Referenced by assFileUpload\getUploadedFilesForWeb().
assQuestion::setTestId | ( | int | $id = -1 | ) |
assQuestion::setThumbSize | ( | int | $a_size | ) |
Definition at line 387 of file class.assQuestion.php.
Referenced by assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assOrderingQuestion\loadFromDb(), and assOrderingQuestion\setContentType().
assQuestion::setTitle | ( | string | $title = "" | ) |
Definition at line 304 of file class.assQuestion.php.
References $title.
Referenced by assNumeric\loadFromDb(), assTextSubset\loadFromDb(), assSingleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assMultipleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assFileUpload\loadFromDb(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assKprimChoice\loadFromDb(), assImagemapQuestion\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), and assFormulaQuestion\loadFromDb().
|
abstractprotected |
MUST convert the given solution values into an array or a string that can be stored in the log.
Language variables must be generated through the corresponding functions in the AdditionalInformationGenerator. If an array is returned it will be rendered into a line per array entry in the format "key: value". If the key exists as a language variable, it will be translated.
Referenced by answerToLog().
|
abstractprotected |
MUST convert the given solution values into text.
If the text has multiple lines each line MUST be placed as an entry in an array.
Referenced by getCorrectSolutionForTextOutput(), and getSolutionForTextOutput().
assQuestion::syncSkillAssignments | ( | int | $srcParentId, |
int | $srcQuestionId, | ||
int | $trgParentId, | ||
int | $trgQuestionId | ||
) |
Definition at line 2228 of file class.assQuestion.php.
References duplicateSkillAssignments().
assQuestion::syncWithOriginal | ( | ) |
Definition at line 1701 of file class.assQuestion.php.
References afterSyncWithOriginal(), cloneQuestionTypeSpecificProperties(), cloneSuggestedSolutions(), cloneXHTMLMediaObjectsOfQuestion(), getId(), getObjId(), getOriginalId(), and null.
assQuestion::toJSON | ( | ) |
Definition at line 2653 of file class.assQuestion.php.
|
abstract |
MUST return an array of the question settings that can be stored in the log.
Language variables must be generated through the corresponding functions in the AdditionalInformationGenerator. If an array is returned it will be rendered into a line per array entry in the format "key: value". If the key exists as a language variable, it will be translated.
Implements ILIAS\TestQuestionPool\Questions\Question.
Referenced by toQuestionAdministrationInteraction().
assQuestion::toQuestionAdministrationInteraction | ( | AdditionalInformationGenerator | $additional_info, |
int | $test_ref_id, | ||
TestQuestionAdministrationInteractionTypes | $interaction_type | ||
) |
Implements ILIAS\TestQuestionPool\Questions\Question.
Definition at line 2898 of file class.assQuestion.php.
References toLog().
|
final |
Returns a QTI xml representation of the question.
Definition at line 292 of file class.assQuestion.php.
References getQuestionType().
assQuestion::updateCurrentSolution | ( | int | $solutionId, |
$value1, | |||
$value2, | |||
bool | $authorized = true |
||
) |
Definition at line 2489 of file class.assQuestion.php.
References getStep(), ILIAS\Repository\int(), and null.
Referenced by assNumeric\saveWorkingData(), and assSingleChoice\saveWorkingData().
assQuestion::updateCurrentSolutionsAuthorization | ( | int | $activeId, |
int | $pass, | ||
bool | $authorized, | ||
bool | $keepTime = false |
||
) |
Definition at line 2508 of file class.assQuestion.php.
References getId(), getStep(), ILIAS\Repository\int(), and null.
Referenced by forceExistingIntermediateSolution(), and assFileUpload\saveWorkingData().
assQuestion::updateTimestamp | ( | ) |
Definition at line 2819 of file class.assQuestion.php.
References getId().
assQuestion::validateSolutionSubmit | ( | ) |
Implements ILIAS\TestQuestionPool\Questions\Question.
Definition at line 659 of file class.assQuestion.php.
Referenced by persistPreviewState(), and persistWorkingState().
|
private |
Definition at line 107 of file class.assQuestion.php.
Referenced by getAdditionalContentEditingMode(), and setAdditionalContentEditingMode().
|
protected |
Definition at line 95 of file class.assQuestion.php.
Referenced by assFormulaQuestion\__construct(), assOrderingHorizontal\__construct(), assSingleChoice\__construct(), assErrorText\__construct(), assKprimChoice\__construct(), assOrderingQuestion\__construct(), assMultipleChoice\__construct(), assTextQuestion\__construct(), assClozeTest\__construct(), assImagemapQuestion\__construct(), assMatchingQuestion\__construct(), getAuthor(), and setAuthor().
|
protected |
Definition at line 93 of file class.assQuestion.php.
Referenced by assFormulaQuestion\__construct(), assOrderingHorizontal\__construct(), assSingleChoice\__construct(), assErrorText\__construct(), assKprimChoice\__construct(), assOrderingQuestion\__construct(), assMultipleChoice\__construct(), assTextQuestion\__construct(), assClozeTest\__construct(), assImagemapQuestion\__construct(), assMatchingQuestion\__construct(), getComment(), and setComment().
|
protected |
Definition at line 77 of file class.assQuestion.php.
Referenced by getCurrentUser().
|
protected |
Definition at line 76 of file class.assQuestion.php.
int assQuestion::$defaultnroftries = 0 |
Definition at line 110 of file class.assQuestion.php.
Referenced by getDefaultNrOfTries(), and setDefaultNrOfTries().
|
protected |
Definition at line 83 of file class.assQuestion.php.
|
private |
Definition at line 105 of file class.assQuestion.php.
Referenced by getImagePathWeb().
|
protected |
Definition at line 106 of file class.assQuestion.php.
Referenced by getExternalId(), and setExternalId().
ilAssQuestionFeedback assQuestion::$feedbackOBJ |
Definition at line 87 of file class.assQuestion.php.
|
staticprotected |
Definition at line 64 of file class.assQuestion.php.
Referenced by setForcePassResultUpdateEnabled().
|
protected |
Definition at line 79 of file class.assQuestion.php.
|
protected |
Definition at line 91 of file class.assQuestion.php.
Referenced by assFormulaQuestion\addResultUnits(), createNewOriginalFromThisDuplicate(), getId(), getImagePath(), setId(), assFormulaQuestion\setId(), setTestId(), assKprimChoice\solutionValuesToLog(), assMultipleChoice\solutionValuesToLog(), and assKprimChoice\solutionValuesToText().
|
protected |
Definition at line 73 of file class.assQuestion.php.
|
staticprotected |
Definition at line 1056 of file class.assQuestion.php.
|
protected |
Definition at line 104 of file class.assQuestion.php.
Referenced by getLastChange(), and setLastChange().
|
protected |
Definition at line 86 of file class.assQuestion.php.
Referenced by getLifecycle(), and setLifecycle().
|
protected |
Definition at line 75 of file class.assQuestion.php.
|
protected |
Definition at line 82 of file class.assQuestion.php.
|
private |
Definition at line 103 of file class.assQuestion.php.
Referenced by getNrOfTries().
|
protected |
Definition at line 101 of file class.assQuestion.php.
Referenced by getImagePath(), getObjId(), and setObjId().
|
protected |
Definition at line 102 of file class.assQuestion.php.
Referenced by assTextQuestion\duplicateAnswers(), getOriginalId(), assNumeric\saveToDb(), assTextSubset\saveToDb(), assErrorText\saveToDb(), assOrderingHorizontal\saveToDb(), assSingleChoice\saveToDb(), assMultipleChoice\saveToDb(), assOrderingQuestion\saveToDb(), assTextQuestion\saveToDb(), assFileUpload\saveToDb(), assMatchingQuestion\saveToDb(), assImagemapQuestion\saveToDb(), assLongMenu\saveToDb(), assClozeTest\saveToDb(), assKprimChoice\saveToDb(), assFormulaQuestion\saveToDb(), and setOriginalId().
|
protected |
Definition at line 94 of file class.assQuestion.php.
Referenced by assFormulaQuestion\__construct(), assOrderingHorizontal\__construct(), assSingleChoice\__construct(), assErrorText\__construct(), assKprimChoice\__construct(), assOrderingQuestion\__construct(), assMultipleChoice\__construct(), assTextQuestion\__construct(), assClozeTest\__construct(), assImagemapQuestion\__construct(), assMatchingQuestion\__construct(), getOwner(), and setOwner().
|
protected |
Definition at line 88 of file class.assQuestion.php.
|
protected |
Definition at line 98 of file class.assQuestion.php.
Referenced by _getReachedPoints(), assTextSubset\addAnswer(), assSingleChoice\addAnswer(), assMultipleChoice\addAnswer(), assTextQuestion\addAnswer(), assMatchingQuestion\addMatchingPair(), adjustReachedPointsByScoringOptions(), assClozeTest\calculateCombinationResult(), assOrderingHorizontal\calculateReachedPoints(), assNumeric\calculateReachedPoints(), assErrorText\calculateReachedPoints(), assSingleChoice\calculateReachedPoints(), assKprimChoice\calculateReachedPoints(), assMatchingQuestion\calculateReachedPoints(), assFormulaQuestion\calculateReachedPoints(), assTextQuestion\calculateReachedPointsForSolution(), assLongMenu\calculateReachedPointsForSolution(), assOrderingHorizontal\calculateReachedPointsForSolution(), assTextSubset\calculateReachedPointsForSolution(), assKprimChoice\calculateReachedPointsForSolution(), assMultipleChoice\calculateReachedPointsForSolution(), assMatchingQuestion\calculateReachedPointsForSolution(), assClozeTest\calculateReachedPointsForSolution(), assNumeric\calculateReachedPointsFromPreviewSession(), assSingleChoice\calculateReachedPointsFromPreviewSession(), assFormulaQuestion\calculateReachedPointsFromPreviewSession(), assLongMenu\checkQuestionCustomPart(), assMatchingQuestion\createMatchingPair(), ensureNonNegativePoints(), assClozeTest\getMaximumGapPoints(), assTextQuestion\getMaximumPoints(), assTextSubset\getMaximumPoints(), assLongMenu\getMaximumPoints(), assSingleChoice\getMaximumPoints(), getMaximumPoints(), assMatchingQuestion\getMaximumPoints(), assClozeTest\getMaximumPoints(), assFormulaQuestion\getMaximumPoints(), assTextQuestion\getMinimumPoints(), getPoints(), assLongMenu\getPointsForGap(), assErrorText\getPointsForSelectedPositions(), assNumeric\getUserQuestionResult(), assOrderingHorizontal\getUserQuestionResult(), assTextSubset\getUserQuestionResult(), assLongMenu\getUserQuestionResult(), assErrorText\getUserQuestionResult(), assSingleChoice\getUserQuestionResult(), assMultipleChoice\getUserQuestionResult(), assOrderingQuestion\getUserQuestionResult(), assFormulaQuestion\getUserQuestionResult(), assMatchingQuestion\getUserQuestionResult(), assClozeTest\getUserQuestionResult(), assMatchingQuestion\insertMatchingPair(), assLongMenu\saveAnswerSpecificDataToDb(), assErrorText\setErrorsFromParsedErrorText(), assClozeTest\setGapAnswerPoints(), and setPoints().
bool assQuestion::$prevent_rte_usage = false |
Definition at line 108 of file class.assQuestion.php.
Referenced by getPreventRteUsage(), and setPreventRteUsage().
|
protected |
Definition at line 69 of file class.assQuestion.php.
Referenced by getProcessLocker(), and setProcessLocker().
|
protected |
Definition at line 97 of file class.assQuestion.php.
Referenced by assFormulaQuestion\__construct(), assOrderingHorizontal\__construct(), assSingleChoice\__construct(), assErrorText\__construct(), assKprimChoice\__construct(), assOrderingQuestion\__construct(), assMultipleChoice\__construct(), assTextQuestion\__construct(), assClozeTest\__construct(), assImagemapQuestion\__construct(), assMatchingQuestion\__construct(), getQuestion(), instantiateQuestion(), and setQuestion().
|
protected |
Definition at line 68 of file class.assQuestion.php.
string assQuestion::$questionActionCmd = 'handleQuestionAction' |
Definition at line 111 of file class.assQuestion.php.
|
protected |
Definition at line 67 of file class.assQuestion.php.
|
protected |
Definition at line 66 of file class.assQuestion.php.
|
protected |
Definition at line 80 of file class.assQuestion.php.
Referenced by assClozeTest\getTextgapPoints(), assTextSubset\isAnswerCorrect(), and assTextQuestion\isKeywordMatching().
bool assQuestion::$selfassessmenteditingmode = false |
Definition at line 109 of file class.assQuestion.php.
Referenced by getSelfAssessmentEditingMode(), and setSelfAssessmentEditingMode().
|
protected |
Definition at line 99 of file class.assQuestion.php.
Referenced by getShuffle(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assClozeTest\setGapShuffle(), assMatchingQuestion\setShuffle(), and assMatchingQuestion\setShuffleMode().
|
protected |
Definition at line 81 of file class.assQuestion.php.
Referenced by getShuffler(), and setShuffler().
|
protected |
Definition at line 78 of file class.assQuestion.php.
|
protected |
Definition at line 112 of file class.assQuestion.php.
Referenced by getStep(), assFileUpload\getUploadedFilesForWeb(), and setStep().
|
protected |
Definition at line 117 of file class.assQuestion.php.
Referenced by getSuggestedSolutions().
|
protected |
Definition at line 71 of file class.assQuestion.php.
Referenced by getSuggestedSolutionsRepo().
|
protected |
Definition at line 100 of file class.assQuestion.php.
Referenced by getTestId(), assFileUpload\getUploadedFilesForWeb(), assFileUpload\removeIntermediateSolution(), and assFileUpload\saveWorkingData().
|
private |
Definition at line 85 of file class.assQuestion.php.
Referenced by getTestPresentationConfig().
|
protected |
Definition at line 89 of file class.assQuestion.php.
|
protected |
Definition at line 70 of file class.assQuestion.php.
|
protected |
Definition at line 96 of file class.assQuestion.php.
Referenced by getThumbSize().
|
protected |
Definition at line 92 of file class.assQuestion.php.
Referenced by assFormulaQuestion\__construct(), assOrderingHorizontal\__construct(), assSingleChoice\__construct(), assErrorText\__construct(), assKprimChoice\__construct(), assOrderingQuestion\__construct(), assMultipleChoice\__construct(), assTextQuestion\__construct(), assClozeTest\__construct(), assImagemapQuestion\__construct(), assMatchingQuestion\__construct(), getTitle(), and setTitle().
|
protected |
Definition at line 74 of file class.assQuestion.php.
const assQuestion::ADDITIONAL_CONTENT_EDITING_MODE_IPE = 'pageobject' |
Definition at line 57 of file class.assQuestion.php.
Referenced by assQuestionGUI\addBasicQuestionFormProperties(), ilObjQuestionPoolGUI\buildInputEditingType(), ilObjTestGUI\buildInputEditingType(), ilPCQuestionGUI\insert(), isAdditionalContentEditingModePageObject(), and assClozeTestGUI\populateQuestionSpecificFormPart().
const assQuestion::ADDITIONAL_CONTENT_EDITING_MODE_RTE = 'default' |
Definition at line 56 of file class.assQuestion.php.
Referenced by ilObjQuestionPoolGUI\buildInputEditingType(), ilObjTestGUI\buildInputEditingType(), ilPCQuestionGUI\edit(), assQuestionImport\fetchAdditionalContentEditingModeInformation(), ilPCQuestionGUI\insert(), and assLongMenuGUI\populateQuestionSpecificFormPart().
|
private |
Definition at line 59 of file class.assQuestion.php.
|
protected |
Definition at line 54 of file class.assQuestion.php.
const assQuestion::KEY_VALUES_IMPLOSION_SEPARATOR = ':' |
Definition at line 2533 of file class.assQuestion.php.
Referenced by explodeKeyValues(), and implodeKeyValues().
|
private |
Definition at line 61 of file class.assQuestion.php.
|
private |
Definition at line 60 of file class.assQuestion.php.
const assQuestion::TRIM_PATTERN = '/^[\p{C}\p{Z}]+|[\p{C}\p{Z}]+$/u' |
Definition at line 62 of file class.assQuestion.php.