ILIAS
trunk Revision v11.0_alpha-1861-g09f3d197f78
|
Class for file upload questions. More...
Public Member Functions | |
isComplete () | |
Returns true, if the question is complete for use. More... | |
saveToDb (?int $original_id=null) | |
Saves a assFileUpload object to a database. More... | |
saveAdditionalQuestionDataToDb () | |
Saves a record to the question types additional data table. More... | |
loadFromDb (int $question_id) | |
getMaximumPoints () | |
calculateReachedPoints (int $active_id, ?int $pass=null, bool $authorized_solution=true) | |
checkUpload () | |
Check file upload. More... | |
getFileUploadPath ($test_id, $active_id, $question_id=null) | |
Returns the filesystem path for file uploads. More... | |
getFileUploadPathWeb ($test_id, $active_id, $question_id=null) | |
Returns the file upload path for web accessible files of a question. More... | |
getUploadedFiles (int $active_id, ?int $pass=null, bool $authorized=true) | |
getPreviewFileUploads (ilAssQuestionPreviewSession $previewSession) | |
getUploadedFilesForWeb ($active_id, $pass) | |
Returns the web accessible uploaded files for an active user in a given pass. More... | |
getMaxFilesizeAsString () | |
determineMaxFilesize () | |
saveWorkingData (int $active_id, ?int $pass=null, bool $authorized=true) | |
getUserSolutionPreferingIntermediate (int $active_id, ?int $pass=null) | |
removeIntermediateSolution (int $active_id, int $pass) | |
getQuestionType () | |
getAdditionalTableName () | |
getAnswerTableName () | |
deleteAnswers ($question_id) | |
getRTETextWithMediaObjects () | |
Collects all text in the question which could contain media objects which were created with the Rich Text Editor. More... | |
getBestSolution ($active_id, $pass) | |
getMaxSize () | |
setMaxSize (?int $value) | |
getAllowedExtensionsArray () | |
getAllowedExtensions () | |
setAllowedExtensions (string $a_value) | |
hasFileUploads (int $test_id) | |
deliverFileUploadZIPFile (int $ref_id, int $test_id, string $test_title) | |
isCompletionBySubmissionEnabled () | |
setCompletionBySubmission (bool $bool) | |
buildTestPresentationConfig () | |
toLog (AdditionalInformationGenerator $additional_info) | |
solutionValuesToText (array $solution_values) | |
getCorrectSolutionForTextOutput (int $active_id, int $pass) | |
![]() | |
getQuestionType () | |
isComplete () | |
saveWorkingData (int $active_id, ?int $pass=null, bool $authorized=true) | |
calculateReachedPoints (int $active_id, ?int $pass=null, bool $authorized_solution=true) | |
getAdditionalTableName () | |
getAnswerTableName () | |
toLog (AdditionalInformationGenerator $additional_info) | |
MUST return an array of the question settings that can be stored in the log. More... | |
getCurrentUser () | |
getShuffler () | |
setShuffler (Transformation $shuffler) | |
setProcessLocker (ilAssQuestionProcessLocker $processLocker) | |
getProcessLocker () | |
fromXML (string $importdirectory, int $user_id, ilQTIItem $item, int $questionpool_id, ?int $tst_id, ?ilObject &$tst_object, int &$question_counter, array $import_mapping, array $solutionhints=[]) | |
toXML (bool $a_include_header=true, bool $a_include_binary=true, bool $a_shuffle=false, bool $test_output=false, bool $force_image_references=false) | |
Returns a QTI xml representation of the question. More... | |
setTitle (string $title="") | |
setId (int $id=-1) | |
setTestId (int $id=-1) | |
setComment (string $comment="") | |
setShuffle (?bool $shuffle=true) | |
setAuthor (string $author="") | |
setOwner (int $owner=-1) | |
getTitle () | |
getTitleForHTMLOutput () | |
getTitleFilenameCompliant () | |
getId () | |
getShuffle () | |
getTestId () | |
getComment () | |
getDescriptionForHTMLOutput () | |
getThumbSize () | |
setThumbSize (int $a_size) | |
getMinimumThumbSize () | |
getMaximumThumbSize () | |
getAuthor () | |
getAuthorForHTMLOutput () | |
getOwner () | |
getObjId () | |
setObjId (int $obj_id=0) | |
getLifecycle () | |
setLifecycle (ilAssQuestionLifecycle $lifecycle) | |
setExternalId (?string $external_id) | |
getExternalId () | |
getSuggestedSolutionOutput () | |
getSuggestedSolutions () | |
getReachedPoints (int $active_id, int $pass) | |
getMaximumPoints () | |
getAdjustedReachedPoints (int $active_id, int $pass, bool $authorized_solution=true) | |
calculateResultsFromSolution (int $active_id, int $pass) | |
Calculates the question results from a previously saved question solution. More... | |
persistWorkingState (int $active_id, $pass, bool $authorized=true) | |
persists the working state for current testactive and testpass More... | |
persistPreviewState (ilAssQuestionPreviewSession $preview_session) | |
persists the preview state for current user and question More... | |
validateSolutionSubmit () | |
getSuggestedSolutionPath () | |
getImagePath ($question_id=null, $object_id=null) | |
Returns the image path for web accessable images of a question. More... | |
getSuggestedSolutionPathWeb () | |
getImagePathWeb () | |
Returns the web image path for web accessable images of a question. More... | |
getTestOutputSolutions (int $activeId, int $pass) | |
getUserSolutionPreferingIntermediate (int $active_id, ?int $pass=null) | |
getSolutionValues (int $active_id, ?int $pass=null, bool $authorized=true) | |
Loads solutions of a given user from the database an returns it. More... | |
deleteAnswers (int $question_id) | |
deleteAdditionalTableData (int $question_id) | |
delete (int $question_id) | |
getTotalAnswers () | |
cloneXHTMLMediaObjectsOfQuestion (int $source_question_id) | |
createPageObject () | |
clonePageOfQuestion (int $a_q_id) | |
getPageOfQuestion () | |
setOriginalId (?int $original_id) | |
getOriginalId () | |
static | fixSvgToPng (string $imageFilenameContainingString) |
fixUnavailableSkinImageSources (string $html) | |
loadFromDb (int $question_id) | |
createNewQuestion (bool $a_create_page=true) | |
Creates a new question without an owner when a new question is created This assures that an ID is given to the question if a file upload or something else occurs. More... | |
saveQuestionDataToDb (?int $original_id=null) | |
duplicate (bool $for_test=true, string $title='', string $author='', int $owner=-1, $test_obj_id=null) | |
copyObject (int $target_parent_id, string $title='') | |
createNewOriginalFromThisDuplicate (int $target_parent_id, string $target_question_title='') | |
saveToDb (?int $original_id=null) | |
deleteSuggestedSolutions () | |
getSuggestedSolution (int $subquestion_index=0) | |
resolveInternalLink (string $internal_link) | |
resolveSuggestedSolutionLinks () | |
getInternalLinkHref (string $target) | |
syncWithOriginal () | |
getPoints () | |
setPoints (float $points) | |
getSolutionMaxPass (int $active_id) | |
isWriteable () | |
deductHintPointsFromReachedPoints (ilAssQuestionPreviewSession $preview_session, $reached_points) | |
calculateReachedPointsFromPreviewSession (ilAssQuestionPreviewSession $preview_session) | |
isPreviewSolutionCorrect (ilAssQuestionPreviewSession $preview_session) | |
adjustReachedPointsByScoringOptions (float $points, int $active_id) | |
Adjust the given reached points by checks for all special scoring options in the test container. More... | |
buildHashedImageFilename (string $plain_image_filename, bool $unique=false) | |
getQuestion () | |
getQuestionForHTMLOutput () | |
setQuestion (string $question="") | |
getQuestionTypeID () | |
cloneHints (int $source_question_id, int $target_question_id) | |
cleanupMediaObjectUsage () | |
getInstances () | |
getActiveUserData (int $active_id) | |
Returns the user id and the test id for a given active id. More... | |
hasSpecificFeedback () | |
getNrOfTries () | |
setNrOfTries (int $a_nr_of_tries) | |
setExportImagePath (string $path) | |
formatSAQuestion ($a_q) | |
setPreventRteUsage (bool $prevent_rte_usage) | |
getPreventRteUsage () | |
migrateContentForLearningModule (ilAssSelfAssessmentMigrator $migrator) | |
setSelfAssessmentEditingMode (bool $selfassessmenteditingmode) | |
getSelfAssessmentEditingMode () | |
setDefaultNrOfTries (int $defaultnroftries) | |
getDefaultNrOfTries () | |
syncSkillAssignments (int $srcParentId, int $srcQuestionId, int $trgParentId, int $trgQuestionId) | |
ensureHintPageObjectExists ($pageObjectId) | |
isAnswered (int $active_id, int $pass) | |
getAdditionalContentEditingMode () | |
setAdditionalContentEditingMode (?string $additionalContentEditingMode) | |
isAdditionalContentEditingModePageObject () | |
isValidAdditionalContentEditingMode (string $additionalContentEditingMode) | |
getValidAdditionalContentEditingModes () | |
getHtmlUserSolutionPurifier () | |
getHtmlQuestionContentPurifier () | |
setLastChange (int $lastChange) | |
getLastChange () | |
removeIntermediateSolution (int $active_id, int $pass) | |
removeCurrentSolution (int $active_id, int $pass, bool $authorized=true) | |
saveCurrentSolution (int $active_id, int $pass, $value1, $value2, bool $authorized=true, $tstamp=0) | |
updateCurrentSolution (int $solutionId, $value1, $value2, bool $authorized=true) | |
updateCurrentSolutionsAuthorization (int $activeId, int $pass, bool $authorized, bool $keepTime=false) | |
setStep ($step) | |
getStep () | |
toJSON () | |
intermediateSolutionExists (int $active_id, int $pass) | |
authorizedSolutionExists (int $active_id, ?int $pass) | |
authorizedOrIntermediateSolutionExists (int $active_id, int $pass) | |
lookupForExistingSolutions (int $activeId, int $pass) | |
Lookup if an authorized or intermediate solution exists. More... | |
isAddableAnswerOptionValue (int $qIndex, string $answerOptionValue) | |
addAnswerOptionValue (int $qIndex, string $answerOptionValue, float $points) | |
removeAllExistingSolutions () | |
removeExistingSolutions (int $activeId, int $pass) | |
resetUsersAnswer (int $activeId, int $pass) | |
removeResultRecord (int $activeId, int $pass) | |
fetchValuePairsFromIndexedValues (array $indexedValues) | |
fetchIndexedValuesFromValuePairs (array $value_pairs) | |
updateTimestamp () | |
getTestPresentationConfig () | |
hasWritableOriginalInQuestionPool () | |
answerToParticipantInteraction (AdditionalInformationGenerator $additional_info, int $test_ref_id, int $active_id, int $pass, string $source_ip, TestParticipantInteractionTypes $interaction_type) | |
toQuestionAdministrationInteraction (AdditionalInformationGenerator $additional_info, int $test_ref_id, TestQuestionAdministrationInteractionTypes $interaction_type) | |
getSolutionForTextOutput (int $active_id, int $pass) | |
getCorrectSolutionForTextOutput (int $active_id, int $pass) | |
getVariablesAsTextArray (int $active_id, int $pass) | |
![]() | |
getFileUploadPath (int $test_id, int $active_id, ?int $question_id=null) | |
Data Fields | |
const | REUSE_FILES_TBL_POSTVAR = 'reusefiles' |
const | DELETE_FILES_TBL_POSTVAR = 'deletefiles' |
![]() | |
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 | |
calculateReachedPointsForSolution (?array $user_solution) | |
getPreviewFileUploadPath ($userId) | |
Returns the filesystem path for file uploads. More... | |
getPreviewFileUploadPathWeb (int $user_id) | |
deletePreviewFileUploads ($userId, $userSolution, $files) | |
getMaxFilesizeInBytes () | |
resolveRIDStoDelete () | |
removeSolutionRecordById (int $solution_id) | |
savePreviewData (ilAssQuestionPreviewSession $previewSession) | |
isFileDeletionAction () | |
isFileDeletionSubmitAvailable () | |
isFileReuseSubmitAvailable () | |
isFileReuseHandlingRequired () | |
isFileUploadAvailable () | |
solutionValuesToLog (AdditionalInformationGenerator $additional_info, array $solution_values) | |
![]() | |
solutionValuesToLog (AdditionalInformationGenerator $additional_info, array $solution_values) | |
MUST convert the given solution values into an array or a string that can be stored in the log. More... | |
solutionValuesToText (array $solution_values) | |
MUST convert the given solution values into text. More... | |
getQuestionAction () | |
isNonEmptyItemListPostSubmission (string $post_submission_field_name) | |
savePreviewData (ilAssQuestionPreviewSession $preview_session) | |
deletePageOfQuestion (int $question_id) | |
cloneQuestionTypeSpecificProperties (self $target) | |
removeAllImageFiles (string $image_target_path) | |
onDuplicate (int $original_parent_id, int $original_question_id, int $duplicate_parent_id, int $duplicate_question_id) | |
afterSyncWithOriginal (int $original_question_id, int $clone_question_id, int $original_parent_id, int $clone_parent_id) | |
onCopy (int $sourceParentId, int $sourceQuestionId, int $targetParentId, int $targetQuestionId) | |
duplicateComments (int $parent_source_id, int $source_id, int $parent_target_id, int $target_id) | |
deleteComments () | |
getNotesManager () | |
getNotesDataService () | |
getNotesRepo () | |
cloneSuggestedSolutions (int $source_question_id, int $target_question_id) | |
duplicateSuggestedSolutionFiles (int $parent_id, int $question_id) | |
Duplicates the files of a suggested solution if the question is duplicated. More... | |
cloneSuggestedSolutionFiles (int $source_question_id, int $target_question_id) | |
copySuggestedSolutions (int $target_question_id) | |
ensureNonNegativePoints (float $points) | |
purifyAndPrepareTextAreaOutput (string $content) | |
getRTETextWithMediaObjects () | |
getSelfAssessmentFormatter () | |
lmMigrateQuestionTypeGenericContent (ilAssSelfAssessmentMigrator $migrator) | |
lmMigrateQuestionTypeSpecificContent (ilAssSelfAssessmentMigrator $migrator) | |
duplicateQuestionHints (int $original_question_id, int $duplicate_question_id) | |
duplicateSkillAssignments (int $srcParentId, int $srcQuestionId, int $trgParentId, int $trgQuestionId) | |
buildQuestionDataQuery () | |
getCurrentSolutionResultSet (int $active_id, int $pass, bool $authorized=true) | |
removeSolutionRecordById (int $solutionId) | |
getSolutionRecordById (int $solutionId) | |
deleteDummySolutionRecord (int $activeId, int $passIndex) | |
isDummySolutionRecord (array $solutionRecord) | |
deleteSolutionRecordByValues (int $activeId, int $passIndex, bool $authorized, array $matchValues) | |
duplicateIntermediateSolutionAuthorized (int $activeId, int $passIndex) | |
forceExistingIntermediateSolution (int $activeId, int $passIndex, bool $considerDummyRecordCreation) | |
lookupMaxStep (int $active_id, int $pass) | |
buildTestPresentationConfig () | |
getSuggestedSolutionsRepo () | |
loadSuggestedSolutions () | |
answerToLog (AdditionalInformationGenerator $additional_info, int $active_id, int $pass) | |
Private Attributes | |
ParticipantRepository | $participant_repository |
ILIAS ResourceStorage Services | $irss |
ILIAS FileDelivery Services | $file_delivery |
ILIAS FileUpload FileUpload | $file_upload |
string | $current_cmd |
Additional Inherited Members | |
![]() | |
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 | _setReachedPoints (int $active_id, int $question_id, float $points, float $maxpoints, int $pass, bool $manualscoring) |
Sets the points, a learner has reached answering the question Additionally objective results are updated. More... | |
static | getFeedbackClassNameByQuestionType (string $questionType) |
static | _questionExistsInTest (int $question_id, int $test_id) |
static | lookupParentObjId (int $question_id) |
static | implodeKeyValues (array $keyValues) |
static | explodeKeyValues (string $keyValues) |
static | convertISO8601FormatH_i_s_ExtendedToSeconds (string $time) |
static | extendedTrim (string $value) |
Trim non-printable characters from the beginning and end of a string. More... | |
![]() | |
static | getNumExistingSolutionRecords (int $activeId, int $pass, int $questionId) |
![]() | |
static | $force_pass_results_update_enabled = false |
static | $imageSourceFixReplaceMap |
assFileUpload::buildTestPresentationConfig | ( | ) |
Definition at line 869 of file class.assFileUpload.php.
References ilTestQuestionConfig\setFormChangeDetectionEnabled().
assFileUpload::calculateReachedPoints | ( | int | $active_id, |
?int | $pass = null , |
||
bool | $authorized_solution = true |
||
) |
Definition at line 185 of file class.assFileUpload.php.
References $data, assQuestion\getCurrentSolutionResultSet(), assQuestion\getPoints(), assQuestion\getSolutionMaxPass(), isCompletionBySubmissionEnabled(), assQuestion\isDummySolutionRecord(), and null.
|
protected |
Definition at line 211 of file class.assFileUpload.php.
References assQuestion\getPoints(), and isCompletionBySubmissionEnabled().
assFileUpload::checkUpload | ( | ) |
Check file upload.
Definition at line 227 of file class.assFileUpload.php.
References getAllowedExtensionsArray(), getMaxFilesizeInBytes(), and ILIAS\Repository\lng().
Referenced by savePreviewData(), and saveWorkingData().
assFileUpload::deleteAnswers | ( | $question_id | ) |
integer | $question_id | The question id which should be deleted in the answers table |
Definition at line 774 of file class.assFileUpload.php.
|
protected |
Definition at line 453 of file class.assFileUpload.php.
References getPreviewFileUploadPath().
Referenced by savePreviewData().
assFileUpload::deliverFileUploadZIPFile | ( | int | $ref_id, |
int | $test_id, | ||
string | $test_title | ||
) |
Implements ilObjFileHandlingQuestionType.
Definition at line 843 of file class.assFileUpload.php.
References ILIAS\Repository\lng().
assFileUpload::determineMaxFilesize | ( | ) |
Definition at line 489 of file class.assFileUpload.php.
Referenced by getMaxFilesizeInBytes().
assFileUpload::getAdditionalTableName | ( | ) |
Definition at line 761 of file class.assFileUpload.php.
Referenced by loadFromDb(), and saveAdditionalQuestionDataToDb().
assFileUpload::getAllowedExtensions | ( | ) |
Definition at line 812 of file class.assFileUpload.php.
References $allowedextensions.
Referenced by saveAdditionalQuestionDataToDb().
assFileUpload::getAllowedExtensionsArray | ( | ) |
Definition at line 803 of file class.assFileUpload.php.
Referenced by checkUpload(), and toLog().
assFileUpload::getAnswerTableName | ( | ) |
Definition at line 766 of file class.assFileUpload.php.
assFileUpload::getBestSolution | ( | $active_id, | |
$pass | |||
) |
Definition at line 787 of file class.assFileUpload.php.
assFileUpload::getCorrectSolutionForTextOutput | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 949 of file class.assFileUpload.php.
assFileUpload::getFileUploadPath | ( | $test_id, | |
$active_id, | |||
$question_id = null |
|||
) |
Returns the filesystem path for file uploads.
Definition at line 269 of file class.assFileUpload.php.
References CLIENT_WEB_DIR, and assQuestion\getId().
Referenced by getUploadedFilesForWeb().
assFileUpload::getFileUploadPathWeb | ( | $test_id, | |
$active_id, | |||
$question_id = null |
|||
) |
Returns the file upload path for web accessible files of a question.
public
Definition at line 290 of file class.assFileUpload.php.
References CLIENT_WEB_DIR, assQuestion\getId(), and ilFileUtils\removeTrailingPathSeparators().
Referenced by getUploadedFilesForWeb().
assFileUpload::getMaxFilesizeAsString | ( | ) |
Definition at line 465 of file class.assFileUpload.php.
References getMaxFilesizeInBytes().
Referenced by toLog().
|
protected |
Definition at line 479 of file class.assFileUpload.php.
References determineMaxFilesize(), and getMaxSize().
Referenced by checkUpload(), and getMaxFilesizeAsString().
assFileUpload::getMaximumPoints | ( | ) |
Definition at line 180 of file class.assFileUpload.php.
References assQuestion\getPoints().
Referenced by isComplete().
assFileUpload::getMaxSize | ( | ) |
Definition at line 793 of file class.assFileUpload.php.
References $maxsize.
Referenced by getMaxFilesizeInBytes(), and saveAdditionalQuestionDataToDb().
|
protected |
Returns the filesystem path for file uploads.
Definition at line 280 of file class.assFileUpload.php.
References CLIENT_WEB_DIR.
Referenced by deletePreviewFileUploads(), and savePreviewData().
|
protected |
Definition at line 304 of file class.assFileUpload.php.
References CLIENT_WEB_DIR, and ilFileUtils\removeTrailingPathSeparators().
Referenced by savePreviewData().
assFileUpload::getPreviewFileUploads | ( | ilAssQuestionPreviewSession | $previewSession | ) |
Definition at line 341 of file class.assFileUpload.php.
References ilAssQuestionPreviewSession\getParticipantsSolution(), and null.
assFileUpload::getQuestionType | ( | ) |
Definition at line 756 of file class.assFileUpload.php.
Referenced by toLog().
assFileUpload::getRTETextWithMediaObjects | ( | ) |
Collects all text in the question which could contain media objects which were created with the Rich Text Editor.
Definition at line 782 of file class.assFileUpload.php.
assFileUpload::getUploadedFiles | ( | int | $active_id, |
?int | $pass = null , |
||
bool | $authorized = true |
||
) |
Definition at line 315 of file class.assFileUpload.php.
References $data, assQuestion\getId(), and assQuestion\getSolutionMaxPass().
Referenced by getUploadedFilesForWeb().
assFileUpload::getUploadedFilesForWeb | ( | $active_id, | |
$pass | |||
) |
Returns the web accessible uploaded files for an active user in a given pass.
Definition at line 355 of file class.assFileUpload.php.
References $data, $path, assQuestion\$step, assQuestion\$test_id, $url, getFileUploadPath(), getFileUploadPathWeb(), assQuestion\getSolutionValues(), assQuestion\getStep(), getUploadedFiles(), null, and assQuestion\setStep().
assFileUpload::getUserSolutionPreferingIntermediate | ( | int | $active_id, |
?int | $pass = null |
||
) |
Definition at line 663 of file class.assFileUpload.php.
References assQuestion\getSolutionValues().
assFileUpload::hasFileUploads | ( | int | $test_id | ) |
Implements ilObjFileHandlingQuestionType.
Definition at line 822 of file class.assFileUpload.php.
References assQuestion\getId().
assFileUpload::isComplete | ( | ) |
Returns true, if the question is complete for use.
Definition at line 95 of file class.assFileUpload.php.
References getMaximumPoints().
assFileUpload::isCompletionBySubmissionEnabled | ( | ) |
Definition at line 858 of file class.assFileUpload.php.
References $completion_by_submission.
Referenced by calculateReachedPoints(), calculateReachedPointsForSolution(), saveAdditionalQuestionDataToDb(), and toLog().
|
protected |
Definition at line 875 of file class.assFileUpload.php.
References assFileUploadGUI\DELETE_FILES_ACTION, and assQuestion\getQuestionAction().
Referenced by resolveRIDStoDelete(), savePreviewData(), and saveWorkingData().
|
protected |
Definition at line 880 of file class.assFileUpload.php.
References assQuestion\isNonEmptyItemListPostSubmission().
Referenced by resolveRIDStoDelete(), savePreviewData(), and saveWorkingData().
|
protected |
Definition at line 890 of file class.assFileUpload.php.
References assQuestion\getTestPresentationConfig(), and isFileReuseSubmitAvailable().
Referenced by saveWorkingData().
|
protected |
Definition at line 885 of file class.assFileUpload.php.
References assQuestion\isNonEmptyItemListPostSubmission().
Referenced by isFileReuseHandlingRequired().
|
protected |
IllegalStateException |
Definition at line 906 of file class.assFileUpload.php.
Referenced by savePreviewData(), and saveWorkingData().
assFileUpload::loadFromDb | ( | int | $question_id | ) |
Definition at line 138 of file class.assFileUpload.php.
References $data, Vendor\Package\$e, ilRTE\_replaceMediaObjectImageSrc(), getAdditionalTableName(), ilAssQuestionLifecycle\getDraftInstance(), ilAssQuestionLifecycle\getInstance(), null, assQuestion\setAdditionalContentEditingMode(), setAllowedExtensions(), assQuestion\setAuthor(), assQuestion\setComment(), setCompletionBySubmission(), assQuestion\setId(), assQuestion\setLifecycle(), setMaxSize(), assQuestion\setNrOfTries(), assQuestion\setObjId(), assQuestion\setOriginalId(), assQuestion\setOwner(), assQuestion\setPoints(), assQuestion\setQuestion(), and assQuestion\setTitle().
assFileUpload::removeIntermediateSolution | ( | int | $active_id, |
int | $pass | ||
) |
|
protected |
Definition at line 658 of file class.assFileUpload.php.
Referenced by saveWorkingData().
|
protected |
Definition at line 637 of file class.assFileUpload.php.
References Vendor\Package\$d, $res, isFileDeletionAction(), and isFileDeletionSubmitAvailable().
Referenced by saveWorkingData().
assFileUpload::saveAdditionalQuestionDataToDb | ( | ) |
Saves a record to the question types additional data table.
Implements ilObjQuestionScoringAdjustable.
Definition at line 118 of file class.assFileUpload.php.
References getAdditionalTableName(), getAllowedExtensions(), assQuestion\getId(), getMaxSize(), isCompletionBySubmissionEnabled(), and null.
Referenced by saveToDb().
|
protected |
Definition at line 696 of file class.assFileUpload.php.
References Vendor\Package\$e, $version, checkUpload(), deletePreviewFileUploads(), ilAssQuestionPreviewSession\getParticipantsSolution(), getPreviewFileUploadPath(), getPreviewFileUploadPathWeb(), ilAssQuestionPreviewSession\getUserId(), isFileDeletionAction(), isFileDeletionSubmitAvailable(), isFileUploadAvailable(), ILIAS\Repository\lng(), ilFileUtils\makeDirParents(), ilFileUtils\moveUploadedFile(), and ilAssQuestionPreviewSession\setParticipantsSolution().
assFileUpload::saveToDb | ( | ?int | $original_id = null | ) |
Saves a assFileUpload object to a database.
Definition at line 111 of file class.assFileUpload.php.
References assQuestion\$original_id, saveAdditionalQuestionDataToDb(), and assQuestion\saveQuestionDataToDb().
assFileUpload::saveWorkingData | ( | int | $active_id, |
?int | $pass = null , |
||
bool | $authorized = true |
||
) |
Definition at line 528 of file class.assFileUpload.php.
References Vendor\Package\$e, assQuestion\$test_id, ilObjTest\_getPass(), checkUpload(), assQuestion\deleteDummySolutionRecord(), assQuestion\forceExistingIntermediateSolution(), assQuestion\getProcessLocker(), assQuestion\getSolutionRecordById(), assQuestion\intermediateSolutionExists(), isFileDeletionAction(), isFileDeletionSubmitAvailable(), isFileReuseHandlingRequired(), isFileUploadAvailable(), ILIAS\Repository\lng(), null, assQuestion\removeCurrentSolution(), removeSolutionRecordById(), resolveRIDStoDelete(), assQuestion\saveCurrentSolution(), and assQuestion\updateCurrentSolutionsAuthorization().
assFileUpload::setAllowedExtensions | ( | string | $a_value | ) |
Definition at line 817 of file class.assFileUpload.php.
Referenced by loadFromDb().
assFileUpload::setCompletionBySubmission | ( | bool | $bool | ) |
Definition at line 863 of file class.assFileUpload.php.
Referenced by loadFromDb().
assFileUpload::setMaxSize | ( | ?int | $value | ) |
Definition at line 798 of file class.assFileUpload.php.
Referenced by loadFromDb().
|
protected |
Definition at line 931 of file class.assFileUpload.php.
assFileUpload::solutionValuesToText | ( | array | $solution_values | ) |
Definition at line 941 of file class.assFileUpload.php.
assFileUpload::toLog | ( | AdditionalInformationGenerator | $additional_info | ) |
Implements ILIAS\TestQuestionPool\Questions\Question.
Definition at line 914 of file class.assFileUpload.php.
References assQuestion\formatSAQuestion(), getAllowedExtensionsArray(), ILIAS\Test\Logging\AdditionalInformationGenerator\getEnabledDisabledTagForBool(), getMaxFilesizeAsString(), assQuestion\getPoints(), assQuestion\getQuestion(), getQuestionType(), assQuestion\getTitleForHTMLOutput(), and isCompletionBySubmissionEnabled().
|
protected |
Definition at line 52 of file class.assFileUpload.php.
Referenced by getAllowedExtensions().
|
protected |
Definition at line 57 of file class.assFileUpload.php.
Referenced by isCompletionBySubmissionEnabled().
|
private |
Definition at line 54 of file class.assFileUpload.php.
|
private |
Definition at line 47 of file class.assFileUpload.php.
|
private |
Definition at line 48 of file class.assFileUpload.php.
|
private |
Definition at line 46 of file class.assFileUpload.php.
|
protected |
Definition at line 50 of file class.assFileUpload.php.
Referenced by getMaxSize().
|
private |
Definition at line 45 of file class.assFileUpload.php.
const assFileUpload::DELETE_FILES_TBL_POSTVAR = 'deletefiles' |
Definition at line 41 of file class.assFileUpload.php.
Referenced by assFileUploadGUI\getPreview(), and assFileUploadGUI\getTestPresentationFileTablePostVar().
|
protected |
Definition at line 43 of file class.assFileUpload.php.
const assFileUpload::REUSE_FILES_TBL_POSTVAR = 'reusefiles' |
Definition at line 40 of file class.assFileUpload.php.
Referenced by assFileUploadGUI\getTestPresentationFileTablePostVar().