ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
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 () | |
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) | |
validateSolutionSubmit () | |
toLog (AdditionalInformationGenerator $additional_info) | |
answerToParticipantInteraction (AdditionalInformationGenerator $additional_info, int $test_id, int $active_id, int $pass, string $source_ip, TestParticipantInteractionTypes $interaction_type) | |
toQuestionAdministrationInteraction (AdditionalInformationGenerator $additional_info, int $test_id, TestQuestionAdministrationInteractionTypes $interaction_type) | |
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.
Referenced by ILIAS\Test\Scoring\Manual\TestScoringByParticipantGUI\saveManScoringParticipantScreen().
|
static |
Returns the maximum pass a users question solution.
Definition at line 1775 of file class.assQuestion.php.
Referenced by ilObjTest\getTextAnswer().
|
static |
Definition at line 457 of file class.assQuestion.php.
|
static |
Definition at line 2114 of file class.assQuestion.php.
assQuestion::addAnswerOptionValue | ( | int | $qIndex, |
string | $answerOptionValue, | ||
float | $points | ||
) |
Reimplemented in assClozeTest, and assTextSubset.
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.
@final @access public
integer | $points | |
integer | $active_id | |
integer | $pass |
Definition at line 1830 of file class.assQuestion.php.
References ilObjTest\_getCountSystem(), and ilObjTest\_getScoreCutting().
|
protected |
Reimplemented in assMatchingQuestion, and assSingleChoice.
Definition at line 1418 of file class.assQuestion.php.
|
protected |
Definition at line 2913 of file class.assQuestion.php.
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.
Referenced by ilTestPlayerAbstractGUI\save().
assQuestion::authorizedOrIntermediateSolutionExists | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 2674 of file class.assQuestion.php.
assQuestion::authorizedSolutionExists | ( | int | $active_id, |
?int | $pass | ||
) |
Definition at line 2665 of file class.assQuestion.php.
assQuestion::buildHashedImageFilename | ( | string | $plain_image_filename, |
bool | $unique = false |
||
) |
Definition at line 1846 of file class.assQuestion.php.
|
protected |
Definition at line 2335 of file class.assQuestion.php.
Referenced by assKprimChoice\loadFromDb().
|
protected |
Reimplemented in assFileUpload, assMultipleChoice, assOrderingHorizontal, and assOrderingQuestion.
Definition at line 2837 of file class.assQuestion.php.
|
abstract |
assQuestion::calculateReachedPointsFromPreviewSession | ( | ilAssQuestionPreviewSession | $preview_session | ) |
Reimplemented in assClozeTest, assErrorText, assImagemapQuestion, assOrderingQuestion, assSingleChoice, assFormulaQuestion, and assNumeric.
Definition at line 1801 of file class.assQuestion.php.
References ilAssQuestionPreviewSession\getParticipantsSolution().
|
final |
Calculates the question results from a previously saved question solution.
Definition at line 556 of file class.assQuestion.php.
References ilCourseObjectiveResult\_updateObjectiveResult(), and ILIAS\Survey\Mode\getId().
assQuestion::cleanupMediaObjectUsage | ( | ) |
Definition at line 1983 of file class.assQuestion.php.
References ilRTE\_cleanupMediaObjectUsage(), and ILIAS\Survey\Mode\getId().
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.
|
protected |
Definition at line 1556 of file class.assQuestion.php.
|
protected |
Definition at line 1520 of file class.assQuestion.php.
assQuestion::cloneXHTMLMediaObjectsOfQuestion | ( | int | $source_question_id | ) |
Definition at line 1008 of file class.assQuestion.php.
References ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_saveUsage(), and ILIAS\Survey\Mode\getId().
|
static |
Definition at line 2641 of file class.assQuestion.php.
References ILIAS\Repository\int().
|
final |
Definition at line 1275 of file class.assQuestion.php.
|
protected |
Definition at line 1581 of file class.assQuestion.php.
|
final |
Definition at line 1300 of file class.assQuestion.php.
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 ILIAS\Survey\Mode\getId().
assQuestion::createPageObject | ( | ) |
Definition at line 1016 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId().
assQuestion::delete | ( | int | $question_id | ) |
Reimplemented in assLongMenu.
Definition at line 844 of file class.assQuestion.php.
References Vendor\Package\$e, ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_removeUsage(), ilObjQuestionPool\_updateQuestionCount(), CLIENT_WEB_DIR, and ilFileUtils\delDir().
assQuestion::deleteAdditionalTableData | ( | int | $question_id | ) |
Definition at line 817 of file class.assQuestion.php.
assQuestion::deleteAnswers | ( | int | $question_id | ) |
Reimplemented in assFormulaQuestion.
Definition at line 798 of file class.assQuestion.php.
|
protected |
Definition at line 1470 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId().
|
protected |
Definition at line 2545 of file class.assQuestion.php.
|
protected |
Definition at line 836 of file class.assQuestion.php.
References ilPageObject\_exists().
|
protected |
Definition at line 2559 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId(), and ILIAS\Repository\int().
assQuestion::deleteSuggestedSolutions | ( | ) |
Definition at line 1503 of file class.assQuestion.php.
References ilInternalLink\_deleteAllLinksOfSource(), ilFileUtils\delDir(), and ILIAS\Survey\Mode\getId().
|
private |
Definition at line 960 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId(), and ilObjTaxonomy\getUsageOfObject().
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.
|
protected |
Definition at line 1436 of file class.assQuestion.php.
|
protected |
Definition at line 2599 of file class.assQuestion.php.
|
protected |
Definition at line 2207 of file class.assQuestion.php.
|
protected |
Duplicates the files of a suggested solution if the question is duplicated.
Definition at line 1531 of file class.assQuestion.php.
References ilFileUtils\makeDirParents().
|
protected |
Definition at line 1807 of file class.assQuestion.php.
Referenced by assNumeric\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 assTextSubsetGUI\writeAnswerSpecificPostData().
assQuestion::fetchIndexedValuesFromValuePairs | ( | array | $value_pairs | ) |
Reimplemented in assMatchingQuestion.
Definition at line 2808 of file class.assQuestion.php.
assQuestion::fetchValuePairsFromIndexedValues | ( | array | $indexedValues | ) |
Definition at line 2797 of file class.assQuestion.php.
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(), and ilFileUtils\removeTrailingPathSeparators().
|
protected |
Definition at line 2606 of file class.assQuestion.php.
assQuestion::formatSAQuestion | ( | $a_q | ) |
Definition at line 2131 of file class.assQuestion.php.
|
final |
Definition at line 262 of file class.assQuestion.php.
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.
|
abstract |
|
final |
Definition at line 543 of file class.assQuestion.php.
|
abstract |
assQuestion::getAuthor | ( | ) |
Definition at line 406 of file class.assQuestion.php.
Referenced by assClozeTest\isComplete(), and assOrderingQuestion\isComplete().
assQuestion::getAuthorForHTMLOutput | ( | ) |
Definition at line 411 of file class.assQuestion.php.
References ILIAS\Repository\refinery().
assQuestion::getComment | ( | ) |
assQuestion::getCorrectSolutionForTextOutput | ( | int | $active_id, |
int | $pass | ||
) |
Reimplemented in assClozeTest, assErrorText, assFileUpload, assFormulaQuestion, assImagemapQuestion, assKprimChoice, assLongMenu, assMatchingQuestion, assMultipleChoice, assNumeric, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
Definition at line 2937 of file class.assQuestion.php.
|
protected |
Definition at line 2357 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId().
assQuestion::getCurrentUser | ( | ) |
Definition at line 237 of file class.assQuestion.php.
References $current_user.
assQuestion::getDefaultNrOfTries | ( | ) |
Definition at line 2187 of file class.assQuestion.php.
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 ILIAS\Survey\Mode\getId(), and IL_INST_ID.
|
static |
Definition at line 2053 of file class.assQuestion.php.
Referenced by assQuestionGUI\_getQuestionGUI().
assQuestion::getHtmlQuestionContentPurifier | ( | ) |
Definition at line 2330 of file class.assQuestion.php.
References ilHtmlPurifierFactory\getInstanceByType().
Referenced by assKprimChoice\addAnswer(), assKprimChoice\setAnswers(), and assLongMenu\setLongMenuTextValue().
assQuestion::getHtmlUserSolutionPurifier | ( | ) |
Definition at line 2322 of file class.assQuestion.php.
References ilHtmlPurifierFactory\getInstanceByType().
assQuestion::getId | ( | ) |
Definition at line 357 of file class.assQuestion.php.
References $id.
Referenced by ilQuestionCumulatedStatisticsTableGUI\__construct(), ilQuestionUsagesTableGUI\__construct(), assLongMenu\buildFolderName(), assClozeTest\cloneQuestionTypeSpecificProperties(), assLongMenu\getCorrectAnswersAsJson(), assTextQuestion\loadFromDb(), ilAssNestedOrderingElementsInputGUI\prepareReprintable(), ilAssOrderingQuestionAuthoringFormGUI\renewOrderingElementInput(), assErrorText\saveAdditionalQuestionDataToDb(), assFileUpload\saveAdditionalQuestionDataToDb(), assImagemapQuestion\saveAdditionalQuestionDataToDb(), assKprimChoice\saveAdditionalQuestionDataToDb(), assLongMenu\saveAdditionalQuestionDataToDb(), assMatchingQuestion\saveAdditionalQuestionDataToDb(), assErrorText\saveAnswerSpecificDataToDb(), assImagemapQuestion\saveAnswerSpecificDataToDb(), assKprimChoice\saveAnswerSpecificDataToDb(), assLongMenu\saveAnswerSpecificDataToDb(), assMatchingQuestion\saveAnswerSpecificDataToDb(), ilAssQuestionSkillAssignmentsGUI\syncOriginalCmd(), and ilLOTestQuestionAdapter\updateQuestionResult().
assQuestion::getImagePath | ( | $question_id = null , |
|
$object_id = null |
|||
) |
Returns the image path for web accessable images of a question.
The image path is under the CLIENT_WEB_DIR in assessment/REFERENCE_ID_OF_QUESTION_POOL/ID_OF_QUESTION/images
Definition at line 678 of file class.assQuestion.php.
References $id.
Referenced by assKprimChoice\loadAnswerData(), assMultipleChoice\loadFromDb(), and assSingleChoice\loadFromDb().
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 CLIENT_WEB_DIR, and ilFileUtils\removeTrailingPathSeparators().
Referenced by assKprimChoice\loadAnswerData().
assQuestion::getInstances | ( | ) |
Definition at line 1989 of file class.assQuestion.php.
References ilObject\_getAllReferences(), ilObjTest\_lookupAuthor(), ilObject\_lookupTitle(), and ILIAS\Survey\Mode\getId().
assQuestion::getInternalLinkHref | ( | string | $target | ) |
Definition at line 1670 of file class.assQuestion.php.
assQuestion::getLastChange | ( | ) |
Definition at line 2352 of file class.assQuestion.php.
assQuestion::getLifecycle | ( | ) |
Definition at line 431 of file class.assQuestion.php.
References $lifecycle.
assQuestion::getMaximumPoints | ( | ) |
Reimplemented in assClozeTest, assErrorText, assFileUpload, assFormulaQuestion, assImagemapQuestion, assLongMenu, assMatchingQuestion, assMultipleChoice, assNumeric, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
Definition at line 538 of file class.assQuestion.php.
assQuestion::getMaximumThumbSize | ( | ) |
Definition at line 401 of file class.assQuestion.php.
assQuestion::getMinimumThumbSize | ( | ) |
Definition at line 396 of file class.assQuestion.php.
Referenced by assOrderingQuestion\loadFromDb(), assMultipleChoice\loadFromDb(), and assSingleChoice\loadFromDb().
|
protected |
Definition at line 1491 of file class.assQuestion.php.
References $service.
|
protected |
Definition at line 1485 of file class.assQuestion.php.
References $service.
|
protected |
Definition at line 1497 of file class.assQuestion.php.
References $service.
assQuestion::getNrOfTries | ( | ) |
Definition at line 2099 of file class.assQuestion.php.
|
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.
Referenced by ilAssQuestionSkillAssignmentsGUI\syncOriginalCmd().
assQuestion::getOriginalId | ( | ) |
Definition at line 1051 of file class.assQuestion.php.
Referenced by ilAssQuestionSkillAssignmentsGUI\syncOriginalCmd().
assQuestion::getOwner | ( | ) |
Definition at line 416 of file class.assQuestion.php.
assQuestion::getPageOfQuestion | ( | ) |
Definition at line 1040 of file class.assQuestion.php.
assQuestion::getPoints | ( | ) |
Definition at line 1757 of file class.assQuestion.php.
Referenced by assNumeric\calculateReachedPointsFromPreviewSession(), assFileUpload\getMaximumPoints(), assNumeric\getMaximumPoints(), assOrderingHorizontal\getMaximumPoints(), assTextSubset\isAnswerCorrect(), and assLongMenu\isComplete().
assQuestion::getPreventRteUsage | ( | ) |
Definition at line 2148 of file class.assQuestion.php.
assQuestion::getProcessLocker | ( | ) |
Definition at line 257 of file class.assQuestion.php.
References $processLocker.
assQuestion::getQuestion | ( | ) |
Definition at line 1929 of file class.assQuestion.php.
Referenced by assOrderingQuestion\isComplete().
|
protected |
Definition at line 227 of file class.assQuestion.php.
assQuestion::getQuestionForHTMLOutput | ( | ) |
Definition at line 1934 of file class.assQuestion.php.
|
abstract |
assQuestion::getQuestionTypeID | ( | ) |
Definition at line 1958 of file class.assQuestion.php.
assQuestion::getReachedPoints | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 533 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId().
Referenced by ilLOTestQuestionAdapter\updateQuestionResult().
|
protected |
Reimplemented in assClozeTest, assFileUpload, assFormulaQuestion, assImagemapQuestion, assKprimChoice, assLongMenu, assMatchingQuestion, assMultipleChoice, assNumeric, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
Definition at line 1972 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId().
assQuestion::getSelfAssessmentEditingMode | ( | ) |
Definition at line 2177 of file class.assQuestion.php.
Referenced by ilAssQuestionAuthoringFormGUI\addGenericAssessmentQuestionCommandButtons().
|
protected |
Definition at line 2136 of file class.assQuestion.php.
assQuestion::getShuffle | ( | ) |
Definition at line 362 of file class.assQuestion.php.
assQuestion::getShuffler | ( | ) |
Definition at line 242 of file class.assQuestion.php.
References $shuffler.
assQuestion::getSolutionForTextOutput | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 2928 of file class.assQuestion.php.
assQuestion::getSolutionMaxPass | ( | int | $active_id | ) |
Definition at line 1767 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId().
Referenced by assErrorText\calculateReachedPoints(), assLongMenu\calculateReachedPoints(), assNumeric\calculateReachedPoints(), assOrderingHorizontal\calculateReachedPoints(), assTextQuestion\calculateReachedPoints(), and assTextSubset\calculateReachedPoints().
|
protected |
Definition at line 2406 of file class.assQuestion.php.
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.
Referenced by ilTestCorrectionsGUI\getSolutions(), and ilTestCorrectionsGUI\getSolutionsByParticipantResults().
assQuestion::getStep | ( | ) |
assQuestion::getSuggestedSolution | ( | int | $subquestion_index = 0 | ) |
Definition at line 1512 of file class.assQuestion.php.
assQuestion::getSuggestedSolutionOutput | ( | ) |
Definition at line 466 of file class.assQuestion.php.
References 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.
assQuestion::getSuggestedSolutionPathWeb | ( | ) |
Definition at line 691 of file class.assQuestion.php.
References CLIENT_WEB_DIR, and ilFileUtils\removeTrailingPathSeparators().
assQuestion::getSuggestedSolutions | ( | ) |
Definition at line 509 of file class.assQuestion.php.
|
protected |
Definition at line 2842 of file class.assQuestion.php.
assQuestion::getTestId | ( | ) |
Definition at line 367 of file class.assQuestion.php.
assQuestion::getTestOutputSolutions | ( | int | $activeId, |
int | $pass | ||
) |
Definition at line 721 of file class.assQuestion.php.
assQuestion::getTestPresentationConfig | ( | ) |
Definition at line 2828 of file class.assQuestion.php.
Referenced by ilTestPlayerAbstractGUI\initTestQuestionConfig().
assQuestion::getThumbSize | ( | ) |
Reimplemented in assKprimChoice, and assMatchingQuestion.
Definition at line 382 of file class.assQuestion.php.
assQuestion::getTitle | ( | ) |
Definition at line 342 of file class.assQuestion.php.
Referenced by assClozeTest\isComplete(), and assOrderingQuestion\isComplete().
assQuestion::getTitleFilenameCompliant | ( | ) |
Definition at line 352 of file class.assQuestion.php.
References ilFileUtils\getASCIIFilename(), and ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle().
assQuestion::getTitleForHTMLOutput | ( | ) |
Definition at line 347 of file class.assQuestion.php.
References ILIAS\Repository\refinery().
assQuestion::getTotalAnswers | ( | ) |
Definition at line 970 of file class.assQuestion.php.
assQuestion::getUserSolutionPreferingIntermediate | ( | int | $active_id, |
?int | $pass = null |
||
) |
Reimplemented in assFileUpload.
Definition at line 730 of file class.assQuestion.php.
assQuestion::getValidAdditionalContentEditingModes | ( | ) |
Definition at line 2311 of file class.assQuestion.php.
assQuestion::getVariablesAsTextArray | ( | int | $active_id, |
int | $pass | ||
) |
Reimplemented in assFormulaQuestion.
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, $lng, and ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository\getForQuestionId().
Referenced by ilObjTest\_instanciateQuestion(), ilTestFixedQuestionSetConfig\cloneQuestionSetRelatedData(), ilObjTestGUI\copyAndLinkQuestionsToPoolObject(), 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.
assQuestion::isAddableAnswerOptionValue | ( | int | $qIndex, |
string | $answerOptionValue | ||
) |
Reimplemented in assClozeTest, and assTextSubset.
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.
assQuestion::isAnswered | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 2251 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId(), and getNumExistingSolutionRecords().
|
abstract |
|
protected |
Definition at line 2554 of file class.assQuestion.php.
|
static |
Definition at line 991 of file class.assQuestion.php.
|
static |
Definition at line 222 of file class.assQuestion.php.
References $force_pass_results_update_enabled.
|
protected |
Definition at line 232 of file class.assQuestion.php.
assQuestion::isPreviewSolutionCorrect | ( | ilAssQuestionPreviewSession | $preview_session | ) |
Definition at line 1812 of file class.assQuestion.php.
assQuestion::isValidAdditionalContentEditingMode | ( | string | $additionalContentEditingMode | ) |
Definition at line 2302 of file class.assQuestion.php.
assQuestion::isWriteable | ( | ) |
Definition at line 1796 of file class.assQuestion.php.
References ilObjQuestionPool\_isWriteable(), and ILIAS\Survey\Mode\getId().
|
protected |
Definition at line 2162 of file class.assQuestion.php.
References ilAssSelfAssessmentMigrator\migrateToLmContent().
|
protected |
Reimplemented in assClozeTest, assKprimChoice, assLongMenu, assMultipleChoice, and assSingleChoice.
Definition at line 2167 of file class.assQuestion.php.
assQuestion::loadFromDb | ( | int | $question_id | ) |
Reimplemented in assClozeTest, assFileUpload, assFormulaQuestion, assImagemapQuestion, assMultipleChoice, assNumeric, assSingleChoice, assTextQuestion, and assTextSubset.
Definition at line 1109 of file class.assQuestion.php.
References $data.
|
protected |
Definition at line 2847 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId().
assQuestion::lookupForExistingSolutions | ( | int | $activeId, |
int | $pass | ||
) |
Lookup if an authorized or intermediate solution exists.
Reimplemented in assFormulaQuestion, and assLongMenu.
Definition at line 2699 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId().
|
protected |
Definition at line 2681 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId().
|
static |
Definition at line 2194 of file class.assQuestion.php.
References $DIC, $ilDB, and $res.
Referenced by ILIAS\Test\Questions\Presentation\QuestionsTableActions\checkQuestionParametersForCopyToPool(), ilAssQuestionSkillAssignmentsGUI\isSyncOriginalPossibleAndAllowed(), and ilAssQuestionSkillAssignmentsGUI\syncOriginalCmd().
assQuestion::migrateContentForLearningModule | ( | ilAssSelfAssessmentMigrator | $migrator | ) |
Definition at line 2153 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId().
Referenced by ilAssSelfAssessmentQuestionFormatter\prepareQuestionForLearningModule().
|
protected |
Definition at line 1427 of file class.assQuestion.php.
|
protected |
Definition at line 1405 of file class.assQuestion.php.
|
final |
persists the preview state for current user and question
Definition at line 653 of file class.assQuestion.php.
|
final |
persists the working state for current testactive and testpass
Definition at line 623 of file class.assQuestion.php.
References ilObjTest\_getPass().
Referenced by ilTestPlayerAbstractGUI\save().
|
protected |
Definition at line 1939 of file class.assQuestion.php.
References ilLegacyFormElementsUtil\prepareTextareaOutput().
assQuestion::removeAllExistingSolutions | ( | ) |
Definition at line 2744 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId().
|
protected |
Definition at line 1364 of file class.assQuestion.php.
assQuestion::removeCurrentSolution | ( | int | $active_id, |
int | $pass, | ||
bool | $authorized = true |
||
) |
Definition at line 2431 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId().
assQuestion::removeExistingSolutions | ( | int | $activeId, |
int | $pass | ||
) |
Reimplemented in assFormulaQuestion.
Definition at line 2750 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId().
assQuestion::removeIntermediateSolution | ( | int | $active_id, |
int | $pass | ||
) |
Reimplemented in assFileUpload.
Definition at line 2421 of file class.assQuestion.php.
assQuestion::removeResultRecord | ( | int | $activeId, |
int | $pass | ||
) |
Definition at line 2777 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId().
|
protected |
Reimplemented in assFileUpload.
Definition at line 2393 of file class.assQuestion.php.
|
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.
assQuestion::resolveInternalLink | ( | string | $internal_link | ) |
Definition at line 1591 of file class.assQuestion.php.
References ilLMObject\_getIdForImportId(), and ilInternalLink\_getIdForImportId().
assQuestion::resolveSuggestedSolutionLinks | ( | ) |
Definition at line 1622 of file class.assQuestion.php.
References ilInternalLink\_deleteAllLinksOfSource(), ilInternalLink\_saveLink(), and ILIAS\Survey\Mode\getId().
assQuestion::saveCurrentSolution | ( | int | $active_id, |
int | $pass, | ||
$value1, | |||
$value2, | |||
bool | $authorized = true , |
||
$tstamp = 0 |
|||
) |
Reimplemented in assFormulaQuestion.
Definition at line 2466 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId(), and ILIAS\Repository\int().
|
static |
Definition at line 1378 of file class.assQuestion.php.
Referenced by ilObjTestGUI\copyAndLinkQuestionsToPoolObject(), ilObjTestGUI\executeAfterQuestionCreationTasks(), and ilTestRandomQuestionSetPoolDeriver\updateTestQuestionStage().
|
protected |
Reimplemented in assLongMenu, assErrorText, assFileUpload, assFormulaQuestion, assImagemapQuestion, assMatchingQuestion, assNumeric, assOrderingQuestion, and assSingleChoice.
Definition at line 664 of file class.assQuestion.php.
References ilAssQuestionPreviewSession\setParticipantsSolution().
assQuestion::saveQuestionDataToDb | ( | ?int | $original_id = null | ) |
Definition at line 1187 of file class.assQuestion.php.
References ilRTE\_replaceMediaObjectImageSrc(), ILIAS\Survey\Mode\getId(), and ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle().
Referenced by assErrorText\saveToDb(), assFileUpload\saveToDb(), assImagemapQuestion\saveToDb(), assKprimChoice\saveToDb(), assLongMenu\saveToDb(), assMatchingQuestion\saveToDb(), assMultipleChoice\saveToDb(), assNumeric\saveToDb(), assOrderingHorizontal\saveToDb(), assOrderingQuestion\saveToDb(), assSingleChoice\saveToDb(), assTextQuestion\saveToDb(), and assTextSubset\saveToDb().
assQuestion::saveToDb | ( | ?int | $original_id = null | ) |
Reimplemented in assClozeTest, assErrorText, assFileUpload, assFormulaQuestion, assImagemapQuestion, assKprimChoice, assLongMenu, assMatchingQuestion, assMultipleChoice, assNumeric, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
Definition at line 1338 of file class.assQuestion.php.
References ilObjQuestionPool\_updateQuestionCount(), and ILIAS\Survey\Mode\getId().
|
abstract |
assQuestion::setAdditionalContentEditingMode | ( | ?string | $additionalContentEditingMode | ) |
Definition at line 2288 of file class.assQuestion.php.
Referenced by assErrorText\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assKprimChoice\loadFromDb(), assFileUpload\loadFromDb(), assMultipleChoice\loadFromDb(), assNumeric\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), and assTextSubset\loadFromDb().
assQuestion::setAuthor | ( | string | $author = "" | ) |
Definition at line 329 of file class.assQuestion.php.
Referenced by assErrorText\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assKprimChoice\loadFromDb(), assFileUpload\loadFromDb(), assMultipleChoice\loadFromDb(), assNumeric\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), and assTextSubset\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 assErrorText\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assKprimChoice\loadFromDb(), assFileUpload\loadFromDb(), assMultipleChoice\loadFromDb(), assNumeric\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), and assTextSubset\loadFromDb().
assQuestion::setDefaultNrOfTries | ( | int | $defaultnroftries | ) |
Definition at line 2182 of file class.assQuestion.php.
assQuestion::setExportImagePath | ( | string | $path | ) |
Definition at line 2109 of file class.assQuestion.php.
References $path.
assQuestion::setExternalId | ( | ?string | $external_id | ) |
Definition at line 441 of file class.assQuestion.php.
|
static |
Definition at line 217 of file class.assQuestion.php.
References $force_pass_results_update_enabled.
assQuestion::setId | ( | int | $id = -1 | ) |
Reimplemented in assFormulaQuestion.
Definition at line 309 of file class.assQuestion.php.
References $id.
Referenced by assErrorText\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assKprimChoice\loadFromDb(), assFileUpload\loadFromDb(), assMultipleChoice\loadFromDb(), assNumeric\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), and assTextSubset\loadFromDb().
assQuestion::setLastChange | ( | int | $lastChange | ) |
Definition at line 2347 of file class.assQuestion.php.
Referenced by assKprimChoice\loadFromDb().
assQuestion::setLifecycle | ( | ilAssQuestionLifecycle | $lifecycle | ) |
Definition at line 436 of file class.assQuestion.php.
References $lifecycle.
Referenced by assErrorText\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assKprimChoice\loadFromDb(), assFileUpload\loadFromDb(), assMultipleChoice\loadFromDb(), assNumeric\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), and assTextSubset\loadFromDb().
assQuestion::setNrOfTries | ( | int | $a_nr_of_tries | ) |
Definition at line 2104 of file class.assQuestion.php.
Referenced by assErrorText\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assKprimChoice\loadFromDb(), assFileUpload\loadFromDb(), assMultipleChoice\loadFromDb(), assNumeric\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), and assTextSubset\loadFromDb().
assQuestion::setObjId | ( | int | $obj_id = 0 | ) |
Definition at line 426 of file class.assQuestion.php.
Referenced by assErrorText\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assKprimChoice\loadFromDb(), assFileUpload\loadFromDb(), assMultipleChoice\loadFromDb(), assNumeric\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), and assTextSubset\loadFromDb().
assQuestion::setOriginalId | ( | ?int | $original_id | ) |
Definition at line 1046 of file class.assQuestion.php.
Referenced by assErrorText\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assKprimChoice\loadFromDb(), assFileUpload\loadFromDb(), assMultipleChoice\loadFromDb(), assNumeric\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), and assTextSubset\loadFromDb().
assQuestion::setOwner | ( | int | $owner = -1 | ) |
Definition at line 337 of file class.assQuestion.php.
Referenced by assErrorText\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assKprimChoice\loadFromDb(), assFileUpload\loadFromDb(), assMultipleChoice\loadFromDb(), assNumeric\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), and assTextSubset\loadFromDb().
assQuestion::setPoints | ( | float | $points | ) |
Definition at line 1762 of file class.assQuestion.php.
Referenced by assErrorText\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assKprimChoice\loadFromDb(), assFileUpload\loadFromDb(), assMultipleChoice\loadFromDb(), assNumeric\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), and assLongMenu\saveAnswerSpecificDataToDb().
assQuestion::setPreventRteUsage | ( | bool | $prevent_rte_usage | ) |
Definition at line 2143 of file class.assQuestion.php.
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.
Referenced by assClozeTest\__construct(), assErrorText\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assKprimChoice\loadFromDb(), assFileUpload\loadFromDb(), assMultipleChoice\loadFromDb(), assNumeric\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), and assTextSubset\loadFromDb().
assQuestion::setSelfAssessmentEditingMode | ( | bool | $selfassessmenteditingmode | ) |
Definition at line 2172 of file class.assQuestion.php.
assQuestion::setShuffle | ( | ?bool | $shuffle = true | ) |
Definition at line 324 of file class.assQuestion.php.
Referenced by ilAssQuestionSkillAssignmentsGUI\buildQuestionPage(), assMultipleChoice\loadFromDb(), assSingleChoice\loadFromDb(), and assTextQuestion\loadFromDb().
assQuestion::setShuffler | ( | Transformation | $shuffler | ) |
Definition at line 247 of file class.assQuestion.php.
References $shuffler.
assQuestion::setStep | ( | $step | ) |
int | null | $step |
Definition at line 2628 of file class.assQuestion.php.
assQuestion::setTestId | ( | int | $id = -1 | ) |
Definition at line 314 of file class.assQuestion.php.
References $id.
assQuestion::setThumbSize | ( | int | $a_size | ) |
Reimplemented in assKprimChoice.
Definition at line 387 of file class.assQuestion.php.
Referenced by assOrderingQuestion\loadFromDb(), assMultipleChoice\loadFromDb(), and assSingleChoice\loadFromDb().
assQuestion::setTitle | ( | string | $title = "" | ) |
Definition at line 304 of file class.assQuestion.php.
Referenced by assErrorText\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assKprimChoice\loadFromDb(), assFileUpload\loadFromDb(), assMultipleChoice\loadFromDb(), assNumeric\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), and assTextSubset\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.
Reimplemented in assClozeTest, assErrorText, assFileUpload, assFormulaQuestion, assImagemapQuestion, assKprimChoice, assLongMenu, assMatchingQuestion, assMultipleChoice, assNumeric, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
|
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.
Reimplemented in assClozeTest, assErrorText, assFileUpload, assFormulaQuestion, assImagemapQuestion, assKprimChoice, assLongMenu, assMatchingQuestion, assMultipleChoice, assNumeric, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
assQuestion::syncSkillAssignments | ( | int | $srcParentId, |
int | $srcQuestionId, | ||
int | $trgParentId, | ||
int | $trgQuestionId | ||
) |
Definition at line 2228 of file class.assQuestion.php.
Referenced by ilAssQuestionSkillAssignmentsGUI\syncOriginalCmd().
assQuestion::syncWithOriginal | ( | ) |
Definition at line 1701 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId().
assQuestion::toJSON | ( | ) |
Reimplemented in assClozeTest, assErrorText, assImagemapQuestion, assKprimChoice, assLongMenu, assMatchingQuestion, assMultipleChoice, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
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.
Reimplemented in assClozeTest, assErrorText, assFileUpload, assFormulaQuestion, assImagemapQuestion, assKprimChoice, assLongMenu, assMatchingQuestion, assMultipleChoice, assNumeric, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
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.
|
final |
Returns a QTI xml representation of the question.
Definition at line 292 of file class.assQuestion.php.
assQuestion::updateCurrentSolution | ( | int | $solutionId, |
$value1, | |||
$value2, | |||
bool | $authorized = true |
||
) |
Definition at line 2489 of file class.assQuestion.php.
References ILIAS\Repository\int().
assQuestion::updateCurrentSolutionsAuthorization | ( | int | $activeId, |
int | $pass, | ||
bool | $authorized, | ||
bool | $keepTime = false |
||
) |
Definition at line 2508 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId(), and ILIAS\Repository\int().
assQuestion::updateTimestamp | ( | ) |
Definition at line 2819 of file class.assQuestion.php.
References ILIAS\Survey\Mode\getId().
assQuestion::validateSolutionSubmit | ( | ) |
Implements ILIAS\TestQuestionPool\Questions\Question.
Reimplemented in assFormulaQuestion, assMultipleChoice, assNumeric, and assOrderingQuestion.
Definition at line 659 of file class.assQuestion.php.
|
private |
Definition at line 107 of file class.assQuestion.php.
|
protected |
Definition at line 95 of file class.assQuestion.php.
Referenced by assOrderingHorizontal\__construct(), assMatchingQuestion\__construct(), assImagemapQuestion\__construct(), assKprimChoice\__construct(), assClozeTest\__construct(), assFormulaQuestion\__construct(), assTextQuestion\__construct(), assSingleChoice\__construct(), assMultipleChoice\__construct(), assOrderingQuestion\__construct(), and assErrorText\__construct().
|
protected |
Definition at line 93 of file class.assQuestion.php.
Referenced by assOrderingHorizontal\__construct(), assMatchingQuestion\__construct(), assImagemapQuestion\__construct(), assKprimChoice\__construct(), assClozeTest\__construct(), assFormulaQuestion\__construct(), assTextQuestion\__construct(), assSingleChoice\__construct(), assMultipleChoice\__construct(), assOrderingQuestion\__construct(), and assErrorText\__construct().
|
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.
|
protected |
Definition at line 83 of file class.assQuestion.php.
|
private |
Definition at line 105 of file class.assQuestion.php.
|
protected |
Definition at line 106 of file class.assQuestion.php.
ilAssQuestionFeedback assQuestion::$feedbackOBJ |
Definition at line 87 of file class.assQuestion.php.
|
staticprotected |
Definition at line 64 of file class.assQuestion.php.
Referenced by isForcePassResultUpdateEnabled(), and setForcePassResultUpdateEnabled().
|
protected |
Definition at line 79 of file class.assQuestion.php.
|
protected |
Definition at line 91 of file class.assQuestion.php.
|
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.
|
protected |
Definition at line 86 of file class.assQuestion.php.
|
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.
|
protected |
Definition at line 101 of file class.assQuestion.php.
|
protected |
Definition at line 102 of file class.assQuestion.php.
Referenced by assErrorText\saveToDb(), assFileUpload\saveToDb(), assImagemapQuestion\saveToDb(), assKprimChoice\saveToDb(), assLongMenu\saveToDb(), assMatchingQuestion\saveToDb(), assMultipleChoice\saveToDb(), assNumeric\saveToDb(), assOrderingHorizontal\saveToDb(), assOrderingQuestion\saveToDb(), assSingleChoice\saveToDb(), assTextQuestion\saveToDb(), and assTextSubset\saveToDb().
|
protected |
Definition at line 94 of file class.assQuestion.php.
Referenced by assOrderingHorizontal\__construct(), assMatchingQuestion\__construct(), assImagemapQuestion\__construct(), assKprimChoice\__construct(), assClozeTest\__construct(), assFormulaQuestion\__construct(), assTextQuestion\__construct(), assSingleChoice\__construct(), assMultipleChoice\__construct(), assOrderingQuestion\__construct(), and assErrorText\__construct().
|
protected |
Definition at line 88 of file class.assQuestion.php.
|
protected |
Definition at line 98 of file class.assQuestion.php.
Referenced by assTextSubset\addAnswer(), assTextQuestion\calculateReachedPointsForSolution(), assNumeric\calculateReachedPointsFromPreviewSession(), assLongMenu\checkQuestionCustomPart(), assLongMenu\getMaximumPoints(), assTextQuestion\getMaximumPoints(), assTextSubset\getMaximumPoints(), assTextQuestion\getMinimumPoints(), assLongMenu\getPointsForGap(), and assLongMenu\saveAnswerSpecificDataToDb().
bool assQuestion::$prevent_rte_usage = false |
Definition at line 108 of file class.assQuestion.php.
|
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 assOrderingHorizontal\__construct(), assMatchingQuestion\__construct(), assImagemapQuestion\__construct(), assKprimChoice\__construct(), assClozeTest\__construct(), assFormulaQuestion\__construct(), assTextQuestion\__construct(), assSingleChoice\__construct(), assMultipleChoice\__construct(), assOrderingQuestion\__construct(), and assErrorText\__construct().
|
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 assTextSubset\isAnswerCorrect(), and assTextQuestion\isKeywordMatching().
bool assQuestion::$selfassessmenteditingmode = false |
Definition at line 109 of file class.assQuestion.php.
|
protected |
Definition at line 99 of file class.assQuestion.php.
Referenced by assMultipleChoice\loadFromDb(), assSingleChoice\loadFromDb(), 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.
|
protected |
Definition at line 117 of file class.assQuestion.php.
|
protected |
Definition at line 71 of file class.assQuestion.php.
|
protected |
Definition at line 100 of file class.assQuestion.php.
|
private |
Definition at line 85 of file class.assQuestion.php.
|
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.
|
protected |
Definition at line 92 of file class.assQuestion.php.
Referenced by assOrderingHorizontal\__construct(), assMatchingQuestion\__construct(), assImagemapQuestion\__construct(), assKprimChoice\__construct(), assClozeTest\__construct(), assFormulaQuestion\__construct(), assTextQuestion\__construct(), assSingleChoice\__construct(), assMultipleChoice\__construct(), assOrderingQuestion\__construct(), and assErrorText\__construct().
|
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(), ilObjTestGUI\buildInputEditingType(), ilObjQuestionPoolGUI\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 ilObjTestGUI\buildInputEditingType(), ilObjQuestionPoolGUI\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.