| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
Class for file upload questions. More...
 Inheritance diagram for assFileUpload:
 Collaboration diagram for assFileUpload:Public Member Functions | |
| isComplete () | |
| Returns true, if the question is complete for use.  More... | |
| saveToDb ($original_id='') | |
| Saves a assFileUpload object to a database.  More... | |
| saveAdditionalQuestionDataToDb () | |
| Saves a record to the question types additional data table.  More... | |
| loadFromDb ($question_id) | |
| Loads a assFileUpload object from a database.  More... | |
| duplicate (bool $for_test=true, string $title='', string $author='', int $owner=-1, $testObjId=null) | |
| Duplicates an assFileUpload.  More... | |
| copyObject ($target_questionpool_id, $title='') | |
| Copies an assFileUpload object.  More... | |
| createNewOriginalFromThisDuplicate ($targetParentId, $targetQuestionTitle='') | |
| getMaximumPoints () | |
| Returns the maximum points, a learner can reach answering the question.  More... | |
| calculateReachedPoints ($active_id, $pass=null, $authorizedSolution=true, $returndetails=false) | |
| Returns the points, a learner has reached answering the question.  More... | |
| 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 ($active_id, $pass=null, $authorized=true) | |
| Returns the uploaded files for an active user in a given pass.  More... | |
| 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 ($active_id, $pass=null, $authorized=true) | |
| public  More... | |
| getUserSolutionPreferingIntermediate ($active_id, $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... | |
| setExportDetailsXLSX (ilAssExcelFormatHelper $worksheet, int $startrow, int $col, int $active_id, int $pass) | |
| {}  More... | |
| fromXML ($item, int $questionpool_id, ?int $tst_id, &$tst_object, int &$question_counter, array $import_mapping, array &$solutionhints=[]) | |
| Creates a question from a QTI file.  More... | |
| toXML ($a_include_header=true, $a_include_binary=true, $a_shuffle=false, $test_output=false, $force_image_references=false) | |
| 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 () | |
  Public Member Functions inherited from assQuestion | |
| __construct (string $title="", string $comment="", string $author="", int $owner=-1, string $question="") | |
| assQuestion constructor  More... | |
| getShuffler () | |
| setShuffler (Transformation $shuffler) | |
| setProcessLocker (ilAssQuestionProcessLocker $processLocker) | |
| getProcessLocker () | |
| fromXML ($item, int $questionpool_id, ?int $tst_id, &$tst_object, int &$question_counter, array $import_mapping, array &$solutionhints=[]) | |
| Receives parameters from a QTI parser and creates a valid ILIAS question object.  More... | |
| toXML (bool $a_include_header=true, bool $a_include_binary=true, bool $a_shuffle=false, bool $test_output=false, bool $force_image_references=false) | |
| Returns a QTI xml representation of the question.  More... | |
| isComplete () | |
| Returns true, if a question is complete for use.  More... | |
| setTitle (string $title="") | |
| setId (int $id=-1) | |
| setTestId (int $id=-1) | |
| setComment (string $comment="") | |
| setShuffle (?bool $shuffle=true) | |
| setAuthor (string $author="") | |
| setOwner (int $owner=-1) | |
| getTitle () | |
| getTitleForHTMLOutput () | |
| getTitleFilenameCompliant () | |
| getId () | |
| getShuffle () | |
| getTestId () | |
| getComment () | |
| getDescriptionForHTMLOutput () | |
| getThumbSize () | |
| setThumbSize (int $a_size) | |
| getMinimumThumbSize () | |
| getMaximumThumbSize () | |
| getAuthor () | |
| getAuthorForHTMLOutput () | |
| getOwner () | |
| getObjId () | |
| setObjId (int $obj_id=0) | |
| getLifecycle () | |
| setLifecycle (ilAssQuestionLifecycle $lifecycle) | |
| setExternalId (?string $external_id) | |
| getExternalId () | |
| getSuggestedSolutionOutput () | |
| getSuggestedSolutions () | |
| getReachedPoints (int $active_id, int $pass) | |
| getMaximumPoints () | |
| getAdjustedReachedPoints (int $active_id, int $pass, bool $authorizedSolution=true) | |
| returns the reached points ...  More... | |
| calculateResultsFromSolution (int $active_id, int $pass, bool $obligationsEnabled=false) | |
| Calculates the question results from a previously saved question solution.  More... | |
| persistWorkingState (int $active_id, $pass, bool $obligationsEnabled=false, bool $authorized=true) | |
| persists the working state for current testactive and testpass  More... | |
| persistPreviewState (ilAssQuestionPreviewSession $previewSession) | |
| persists the preview state for current user and question  More... | |
| validateSolutionSubmit () | |
| saveWorkingData (int $active_id, int $pass, bool $authorized=true) | |
| Saves the learners input of the question to the database.  More... | |
| getSuggestedSolutionPath () | |
| getImagePath ($question_id=null, $object_id=null) | |
| Returns the image path for web accessable images of a question.  More... | |
| getSuggestedSolutionPathWeb () | |
| getImagePathWeb () | |
| Returns the web image path for web accessable images of a question.  More... | |
| getTestOutputSolutions (int $activeId, int $pass) | |
| getUserSolutionPreferingIntermediate (int $active_id, $pass=null) | |
| getSolutionValues ($active_id, $pass=null, bool $authorized=true) | |
| Loads solutions of a given user from the database an returns it.  More... | |
| getAdditionalTableName () | |
| getAnswerTableName () | |
| deleteAnswers (int $question_id) | |
| deleteAdditionalTableData (int $question_id) | |
| delete (int $question_id) | |
| getTotalAnswers () | |
| copyXHTMLMediaObjectsOfQuestion (int $a_q_id) | |
| syncXHTMLMediaObjectsOfQuestion () | |
| createPageObject () | |
| copyPageOfQuestion (int $a_q_id) | |
| getPageOfQuestion () | |
| setOriginalId (?int $original_id) | |
| getOriginalId () | |
| fixSvgToPng (string $imageFilenameContainingString) | |
| fixUnavailableSkinImageSources (string $html) | |
| loadFromDb (int $question_id) | |
| createNewQuestion (bool $a_create_page=true) | |
| Creates a new question without an owner when a new question is created This assures that an ID is given to the question if a file upload or something else occurs.  More... | |
| saveQuestionDataToDb (int $original_id=-1) | |
| saveToDb () | |
| deleteSuggestedSolutions () | |
| getSuggestedSolution (int $subquestion_index=0) | |
| resolveInternalLink (string $internal_link) | |
| resolveSuggestedSolutionLinks () | |
| syncWithOriginal () | |
| getPoints () | |
| setPoints (float $points) | |
| getSolutionMaxPass (int $active_id) | |
| calculateReachedPoints ($active_id, $pass=null, $authorizedSolution=true, $returndetails=false) | |
| Returns the points, a learner has reached answering the question.  More... | |
| deductHintPointsFromReachedPoints (ilAssQuestionPreviewSession $previewSession, $reachedPoints) | |
| calculateReachedPointsFromPreviewSession (ilAssQuestionPreviewSession $previewSession) | |
| isPreviewSolutionCorrect (ilAssQuestionPreviewSession $previewSession) | |
| adjustReachedPointsByScoringOptions ($points, $active_id, $pass=null) | |
| Adjust the given reached points by checks for all special scoring options in the test container.  More... | |
| buildHashedImageFilename (string $plain_image_filename, bool $unique=false) | |
| getQuestion () | |
| getQuestionForHTMLOutput () | |
| setQuestion (string $question="") | |
| getQuestionType () | |
| Returns the question type of the question.  More... | |
| getQuestionTypeID () | |
| syncHints () | |
| cleanupMediaObjectUsage () | |
| getInstances () | |
| getActiveUserData (int $active_id) | |
| Returns the user id and the test id for a given active id.  More... | |
| hasSpecificFeedback () | |
| setExportDetailsXLSX (ilAssExcelFormatHelper $worksheet, int $startrow, int $col, int $active_id, int $pass) | |
| getNrOfTries () | |
| setNrOfTries (int $a_nr_of_tries) | |
| setExportImagePath (string $path) | |
| formatSAQuestion ($a_q) | |
| setPreventRteUsage (bool $prevent_rte_usage) | |
| getPreventRteUsage () | |
| migrateContentForLearningModule (ilAssSelfAssessmentMigrator $migrator) | |
| setSelfAssessmentEditingMode (bool $selfassessmenteditingmode) | |
| getSelfAssessmentEditingMode () | |
| setDefaultNrOfTries (int $defaultnroftries) | |
| getDefaultNrOfTries () | |
| syncSkillAssignments (int $srcParentId, int $srcQuestionId, int $trgParentId, int $trgQuestionId) | |
| ensureHintPageObjectExists ($pageObjectId) | |
| isAnswered (int $active_id, int $pass) | |
| getAdditionalContentEditingMode () | |
| setAdditionalContentEditingMode (?string $additionalContentEditingMode) | |
| isAdditionalContentEditingModePageObject () | |
| isValidAdditionalContentEditingMode (string $additionalContentEditingMode) | |
| getValidAdditionalContentEditingModes () | |
| getHtmlUserSolutionPurifier () | |
| getHtmlQuestionContentPurifier () | |
| setLastChange ($lastChange) | |
| getLastChange () | |
| removeIntermediateSolution (int $active_id, int $pass) | |
| removeCurrentSolution (int $active_id, int $pass, bool $authorized=true) | |
| saveCurrentSolution (int $active_id, int $pass, $value1, $value2, bool $authorized=true, $tstamp=0) | |
| updateCurrentSolution (int $solutionId, $value1, $value2, bool $authorized=true) | |
| updateCurrentSolutionsAuthorization (int $activeId, int $pass, bool $authorized, bool $keepTime=false) | |
| setStep ($step) | |
| getStep () | |
| toJSON () | |
| duplicate (bool $for_test=true, string $title="", string $author="", int $owner=-1, $testObjId=null) | |
| intermediateSolutionExists (int $active_id, int $pass) | |
| authorizedSolutionExists (int $active_id, ?int $pass) | |
| authorizedOrIntermediateSolutionExists (int $active_id, int $pass) | |
| lookupForExistingSolutions (int $activeId, int $pass) | |
| Lookup if an authorized or intermediate solution exists.  More... | |
| isAddableAnswerOptionValue (int $qIndex, string $answerOptionValue) | |
| addAnswerOptionValue (int $qIndex, string $answerOptionValue, float $points) | |
| removeAllExistingSolutions () | |
| removeExistingSolutions (int $activeId, int $pass) | |
| resetUsersAnswer (int $activeId, int $pass) | |
| removeResultRecord (int $activeId, int $pass) | |
| fetchValuePairsFromIndexedValues (array $indexedValues) | |
| fetchIndexedValuesFromValuePairs (array $valuePairs) | |
| areObligationsToBeConsidered () | |
| setObligationsToBeConsidered (bool $obligationsToBeConsidered) | |
| updateTimestamp () | |
| getTestPresentationConfig () | |
  Public Member Functions inherited from ilObjFileHandlingQuestionType | |
| getFileUploadPath (int $test_id, int $active_id, int $question_id=null) | |
Static Public Member Functions | |
| static | isObligationPossible (int $question_id) | 
  Static Public Member Functions inherited from assQuestion | |
| static | setForcePassResultUpdateEnabled (bool $forcePassResultsUpdateEnabled) | 
| static | isForcePassResultUpdateEnabled () | 
| static | _getSuggestedSolutionOutput (int $question_id) | 
| static | _getReachedPoints (int $active_id, int $question_id, int $pass) | 
| static | logAction (string $logtext, int $active_id, int $question_id) | 
| static | isFileAvailable (string $file) | 
| static | saveOriginalId (int $questionId, int $originalId) | 
| static | resetOriginalId (int $questionId) | 
| static | _getInternalLinkHref (string $target="") | 
| static | instantiateQuestion (int $question_id) | 
| static | _getSolutionMaxPass (int $question_id, int $active_id) | 
| Returns the maximum pass a users question solution.  More... | |
| static | _isWriteable (int $question_id, int $user_id) | 
| static | _setReachedPoints (int $active_id, int $question_id, float $points, float $maxpoints, int $pass, bool $manualscoring, bool $obligationsEnabled, ?int $test_id=null) | 
| Sets the points, a learner has reached answering the question Additionally objective results are updated.  More... | |
| static | _needsManualScoring (int $question_id) | 
| static | getFeedbackClassNameByQuestionType (string $questionType) | 
| static | instantiateQuestionGUI (int $a_question_id) | 
| static | _questionExistsInTest (int $question_id, int $test_id) | 
| static | lookupParentObjId (int $questionId) | 
| static | isObligationPossible (int $questionId) | 
| static | implodeKeyValues (array $keyValues) | 
| static | explodeKeyValues (string $keyValues) | 
| static | convertISO8601FormatH_i_s_ExtendedToSeconds (string $time) | 
| static | extendedTrim (string $value) | 
| Trim non-printable characters from the beginning and end of a string.  More... | |
Data Fields | |
| const | REUSE_FILES_TBL_POSTVAR = 'reusefiles' | 
| const | DELETE_FILES_TBL_POSTVAR = 'deletefiles' | 
  Data Fields inherited from assQuestion | |
| const | TRIM_PATTERN = '/^[\p{C}\p{Z}]+|[\p{C}\p{Z}]+$/u' | 
| const | ADDITIONAL_CONTENT_EDITING_MODE_RTE = 'default' | 
| const | ADDITIONAL_CONTENT_EDITING_MODE_IPE = 'pageobject' | 
| ilAssQuestionFeedback | $feedbackOBJ | 
| bool | $prevent_rte_usage = false | 
| bool | $selfassessmenteditingmode = false | 
| int | $defaultnroftries = 0 | 
| string | $questionActionCmd = 'handleQuestionAction' | 
| const | KEY_VALUES_IMPLOSION_SEPARATOR = ':' | 
Protected Member Functions | |
| calculateReachedPointsForSolution ($userSolution) | |
| getPreviewFileUploadPath ($userId) | |
| Returns the filesystem path for file uploads.  More... | |
| getPreviewFileUploadPathWeb ($userId) | |
| Returns the filesystem path for file uploads.  More... | |
| deletePreviewFileUploads ($userId, $userSolution, $files) | |
| getMaxFilesizeInBytes () | |
| resolveRIDStoDelete () | |
| removeSolutionRecordById (int $solution_id) | |
| savePreviewData (ilAssQuestionPreviewSession $previewSession) | |
| handleSubmission (int $active_id, int $pass, bool $obligations_answered, bool $authorized) | |
| isFileDeletionAction () | |
| isFileDeletionSubmitAvailable () | |
| isFileReuseSubmitAvailable () | |
| isFileReuseHandlingRequired () | |
| isFileUploadAvailable () | |
  Protected Member Functions inherited from assQuestion | |
| getQuestionAction () | |
| isNonEmptyItemListPostSubmission (string $postSubmissionFieldname) | |
| log (int $active_id, string $langVar) | |
| savePreviewData (ilAssQuestionPreviewSession $previewSession) | |
| deletePageOfQuestion (int $question_id) | |
| onDuplicate (int $originalParentId, int $originalQuestionId, int $duplicateParentId, int $duplicateQuestionId) | |
| beforeSyncWithOriginal (int $origQuestionId, int $dupQuestionId, int $origParentObjId, int $dupParentObjId) | |
| afterSyncWithOriginal (int $origQuestionId, int $dupQuestionId, int $origParentObjId, int $dupParentObjId) | |
| onCopy (int $sourceParentId, int $sourceQuestionId, int $targetParentId, int $targetQuestionId) | |
| duplicateComments (int $parent_source_id, int $source_id, int $parent_target_id, int $target_id) | |
| deleteComments () | |
| getNotesManager () | |
| getNotesDataService () | |
| getNotesRepo () | |
| syncSuggestedSolutions (int $target_question_id, int $target_obj_id) | |
| duplicateSuggestedSolutionFiles (int $parent_id, int $question_id) | |
| Duplicates the files of a suggested solution if the question is duplicated.  More... | |
| syncSuggestedSolutionFiles (int $target_question_id, int $target_obj_id) | |
| copySuggestedSolutionFiles (int $source_questionpool_id, int $source_question_id) | |
| copySuggestedSolutions (int $target_question_id) | |
| ensureNonNegativePoints ($points) | |
| purifyAndPrepareTextAreaOutput (string $content) | |
| getRTETextWithMediaObjects () | |
| getSelfAssessmentFormatter () | |
| lmMigrateQuestionTypeGenericContent (ilAssSelfAssessmentMigrator $migrator) | |
| lmMigrateQuestionTypeSpecificContent (ilAssSelfAssessmentMigrator $migrator) | |
| duplicateQuestionHints (int $originalQuestionId, int $duplicateQuestionId) | |
| duplicateSkillAssignments (int $srcParentId, int $srcQuestionId, int $trgParentId, int $trgQuestionId) | |
| buildQuestionDataQuery () | |
| getCurrentSolutionResultSet (int $active_id, int $pass, bool $authorized=true) | |
| removeSolutionRecordById (int $solutionId) | |
| getSolutionRecordById (int $solutionId) | |
| deleteDummySolutionRecord (int $activeId, int $passIndex) | |
| isDummySolutionRecord (array $solutionRecord) | |
| deleteSolutionRecordByValues (int $activeId, int $passIndex, bool $authorized, array $matchValues) | |
| duplicateIntermediateSolutionAuthorized (int $activeId, int $passIndex) | |
| forceExistingIntermediateSolution (int $activeId, int $passIndex, bool $considerDummyRecordCreation) | |
| lookupMaxStep (int $active_id, int $pass) | |
| buildTestPresentationConfig () | |
| build basic test question configuration instance  More... | |
| getSuggestedSolutionsRepo () | |
| loadSuggestedSolutions () | |
Private Attributes | |
| ILIAS ResourceStorage Services | $irss | 
| ILIAS FileDelivery Services | $file_delivery | 
| ILIAS FileUpload FileUpload | $file_upload | 
| string | $current_cmd | 
Additional Inherited Members | |
  Static Protected Member Functions inherited from assQuestion | |
| static | getNumExistingSolutionRecords (int $activeId, int $pass, int $questionId) | 
  Static Protected Attributes inherited from assQuestion | |
| static | $forcePassResultsUpdateEnabled = false | 
| static | $imageSourceFixReplaceMap | 
| assFileUpload::buildTestPresentationConfig | ( | ) | 
Definition at line 1114 of file class.assFileUpload.php.
References ilTestQuestionConfig\setFormChangeDetectionEnabled().
 Here is the call graph for this function:| assFileUpload::calculateReachedPoints | ( | $active_id, | |
$pass = null,  | 
        |||
$authorizedSolution = true,  | 
        |||
$returndetails = false  | 
        |||
| ) | 
Returns the points, a learner has reached answering the question.
The points are calculated from the given answers.
public
| integer | $active_id | |
| integer | $pass | |
| boolean | $returndetails | (deprecated !!) | 
Definition at line 320 of file class.assFileUpload.php.
References $data, $DIC, assQuestion\getCurrentSolutionResultSet(), assQuestion\getPoints(), assQuestion\getSolutionMaxPass(), isCompletionBySubmissionEnabled(), and assQuestion\isDummySolutionRecord().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 347 of file class.assFileUpload.php.
References assQuestion\getPoints(), and isCompletionBySubmissionEnabled().
 Here is the call graph for this function:| assFileUpload::checkUpload | ( | ) | 
Check file upload.
Definition at line 363 of file class.assFileUpload.php.
References getAllowedExtensionsArray(), getMaxFilesizeInBytes(), and ILIAS\Repository\lng().
Referenced by savePreviewData(), and saveWorkingData().
 Here is the call graph for this function:
 Here is the caller graph for this function:| assFileUpload::copyObject | ( | $target_questionpool_id, | |
$title = ''  | 
        |||
| ) | 
Copies an assFileUpload object.
Definition at line 244 of file class.assFileUpload.php.
References assQuestion\$original_id, assQuestion\$title, assQuestion\getId(), and assQuestion\getObjId().
 Here is the call graph for this function:| assFileUpload::createNewOriginalFromThisDuplicate | ( | $targetParentId, | |
$targetQuestionTitle = ''  | 
        |||
| ) | 
Definition at line 270 of file class.assFileUpload.php.
References assQuestion\$id, assQuestion\getId(), and assQuestion\getObjId().
 Here is the call graph for this function:| assFileUpload::deleteAnswers | ( | $question_id | ) | 
| integer | $question_id | The question id which should be deleted in the answers table | 
Definition at line 968 of file class.assFileUpload.php.
      
  | 
  protected | 
Definition at line 597 of file class.assFileUpload.php.
References getPreviewFileUploadPath().
Referenced by savePreviewData().
 Here is the call graph for this function:
 Here is the caller graph for this function:| assFileUpload::deliverFileUploadZIPFile | ( | int | $ref_id, | 
| int | $test_id, | ||
| string | $test_title | ||
| ) | 
Implements ilObjFileHandlingQuestionType.
Definition at line 1083 of file class.assFileUpload.php.
References ILIAS\Repository\lng().
 Here is the call graph for this function:| assFileUpload::determineMaxFilesize | ( | ) | 
Definition at line 633 of file class.assFileUpload.php.
Referenced by getMaxFilesizeInBytes().
 Here is the caller graph for this function:| assFileUpload::duplicate | ( | bool | $for_test = true,  | 
        
| string | $title = '',  | 
        ||
| string | $author = '',  | 
        ||
| int | $owner = -1,  | 
        ||
$testObjId = null  | 
        |||
| ) | 
Duplicates an assFileUpload.
Definition at line 191 of file class.assFileUpload.php.
References assQuestion\$author, assQuestion\$original_id, assQuestion\$owner, assQuestion\$title, assQuestion\getId(), and assQuestion\getObjId().
 Here is the call graph for this function:| assFileUpload::fromXML | ( | $item, | |
| int | $questionpool_id, | ||
| ?int | $tst_id, | ||
| & | $tst_object, | ||
| int & | $question_counter, | ||
| array | $import_mapping, | ||
| array & | $solutionhints = []  | 
        ||
| ) | 
Creates a question from a QTI file.
Receives parameters from a QTI parser and creates a valid ILIAS question object
| ilQTIItem | $item | The QTI item object | 
| integer | $questionpool_id | The id of the parent questionpool | 
| integer | $tst_id | The id of the parent test if the question is part of a test | 
| object | $tst_object | A reference to the parent test object | 
| integer | $question_counter | A reference to a question counter to count the questions of an imported question pool | 
| array | $import_mapping | An array containing references to included ILIAS objects | 
Definition at line 1015 of file class.assFileUpload.php.
| assFileUpload::getAdditionalTableName | ( | ) | 
Definition at line 955 of file class.assFileUpload.php.
Referenced by loadFromDb(), and saveAdditionalQuestionDataToDb().
 Here is the caller graph for this function:| assFileUpload::getAllowedExtensions | ( | ) | 
Definition at line 1052 of file class.assFileUpload.php.
References $allowedextensions.
Referenced by saveAdditionalQuestionDataToDb().
 Here is the caller graph for this function:| assFileUpload::getAllowedExtensionsArray | ( | ) | 
Definition at line 1043 of file class.assFileUpload.php.
Referenced by checkUpload().
 Here is the caller graph for this function:| assFileUpload::getAnswerTableName | ( | ) | 
Definition at line 960 of file class.assFileUpload.php.
| assFileUpload::getBestSolution | ( | $active_id, | |
| $pass | |||
| ) | 
Definition at line 1027 of file class.assFileUpload.php.
| assFileUpload::getFileUploadPath | ( | $test_id, | |
| $active_id, | |||
$question_id = null  | 
        |||
| ) | 
Returns the filesystem path for file uploads.
Definition at line 405 of file class.assFileUpload.php.
References CLIENT_WEB_DIR, and assQuestion\getId().
Referenced by getUploadedFilesForWeb().
 Here is the call graph for this function:
 Here is the caller graph for this function:| 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 426 of file class.assFileUpload.php.
References CLIENT_WEB_DIR, assQuestion\getId(), and ilFileUtils\removeTrailingPathSeparators().
Referenced by getUploadedFilesForWeb().
 Here is the call graph for this function:
 Here is the caller graph for this function:| assFileUpload::getMaxFilesizeAsString | ( | ) | 
Definition at line 609 of file class.assFileUpload.php.
References getMaxFilesizeInBytes().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 623 of file class.assFileUpload.php.
References determineMaxFilesize(), and getMaxSize().
Referenced by checkUpload(), and getMaxFilesizeAsString().
 Here is the call graph for this function:
 Here is the caller graph for this function:| assFileUpload::getMaximumPoints | ( | ) | 
Returns the maximum points, a learner can reach answering the question.
Definition at line 305 of file class.assFileUpload.php.
References assQuestion\getPoints().
Referenced by isComplete().
 Here is the call graph for this function:
 Here is the caller graph for this function:| assFileUpload::getMaxSize | ( | ) | 
Definition at line 1033 of file class.assFileUpload.php.
References $maxsize.
Referenced by getMaxFilesizeInBytes(), and saveAdditionalQuestionDataToDb().
 Here is the caller graph for this function:
      
  | 
  protected | 
Returns the filesystem path for file uploads.
Definition at line 416 of file class.assFileUpload.php.
References CLIENT_WEB_DIR.
Referenced by deletePreviewFileUploads(), and savePreviewData().
 Here is the caller graph for this function:
      
  | 
  protected | 
Returns the filesystem path for file uploads.
Definition at line 443 of file class.assFileUpload.php.
References CLIENT_WEB_DIR, and ilFileUtils\removeTrailingPathSeparators().
Referenced by savePreviewData().
 Here is the call graph for this function:
 Here is the caller graph for this function:| assFileUpload::getPreviewFileUploads | ( | ilAssQuestionPreviewSession | $previewSession | ) | 
Definition at line 485 of file class.assFileUpload.php.
References ilAssQuestionPreviewSession\getParticipantsSolution().
 Here is the call graph for this function:| assFileUpload::getQuestionType | ( | ) | 
Definition at line 950 of file class.assFileUpload.php.
| assFileUpload::getRTETextWithMediaObjects | ( | ) | 
Collects all text in the question which could contain media objects which were created with the Rich Text Editor.
Definition at line 976 of file class.assFileUpload.php.
| assFileUpload::getUploadedFiles | ( | $active_id, | |
$pass = null,  | 
        |||
$authorized = true  | 
        |||
| ) | 
Returns the uploaded files for an active user in a given pass.
Definition at line 459 of file class.assFileUpload.php.
References $data, $DIC, $ilDB, assQuestion\getId(), and assQuestion\getSolutionMaxPass().
Referenced by getUploadedFilesForWeb(), and handleSubmission().
 Here is the call graph for this function:
 Here is the caller graph for this function:| assFileUpload::getUploadedFilesForWeb | ( | $active_id, | |
| $pass | |||
| ) | 
Returns the web accessible uploaded files for an active user in a given pass.
Definition at line 499 of file class.assFileUpload.php.
References $data, $path, assQuestion\$step, assQuestion\$test_id, $url, getFileUploadPath(), getFileUploadPathWeb(), assQuestion\getSolutionValues(), assQuestion\getStep(), getUploadedFiles(), and assQuestion\setStep().
 Here is the call graph for this function:| assFileUpload::getUserSolutionPreferingIntermediate | ( | $active_id, | |
$pass = null  | 
        |||
| ) | 
| int | $active_id | |
| int | null | $pass | 
Definition at line 840 of file class.assFileUpload.php.
References assQuestion\getSolutionValues().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 930 of file class.assFileUpload.php.
References assQuestion\$points, ilObjTest\_getObjectIDFromActiveID(), ilObjTestAccess\_getParticipantId(), assQuestion\_setReachedPoints(), ilLPStatusWrapper\_updateStatus(), assQuestion\getId(), getUploadedFiles(), and isCompletionBySubmissionEnabled().
 Here is the call graph for this function:| assFileUpload::hasFileUploads | ( | int | $test_id | ) | 
Implements ilObjFileHandlingQuestionType.
Definition at line 1062 of file class.assFileUpload.php.
References assQuestion\getId().
 Here is the call graph for this function:| assFileUpload::isComplete | ( | ) | 
Returns true, if the question is complete for use.
Definition at line 90 of file class.assFileUpload.php.
References getMaximumPoints().
 Here is the call graph for this function:| assFileUpload::isCompletionBySubmissionEnabled | ( | ) | 
Definition at line 1098 of file class.assFileUpload.php.
References $completion_by_submission.
Referenced by calculateReachedPoints(), calculateReachedPointsForSolution(), handleSubmission(), and saveAdditionalQuestionDataToDb().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 1120 of file class.assFileUpload.php.
References assFileUploadGUI\DELETE_FILES_ACTION, and assQuestion\getQuestionAction().
Referenced by resolveRIDStoDelete(), savePreviewData(), and saveWorkingData().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 1125 of file class.assFileUpload.php.
References assQuestion\isNonEmptyItemListPostSubmission().
Referenced by resolveRIDStoDelete(), savePreviewData(), and saveWorkingData().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 1135 of file class.assFileUpload.php.
References assQuestion\getTestPresentationConfig(), and isFileReuseSubmitAvailable().
Referenced by saveWorkingData().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 1130 of file class.assFileUpload.php.
References assQuestion\isNonEmptyItemListPostSubmission().
Referenced by isFileReuseHandlingRequired().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
| IllegalStateException | 
Definition at line 1151 of file class.assFileUpload.php.
Referenced by savePreviewData(), and saveWorkingData().
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 1109 of file class.assFileUpload.php.
| assFileUpload::loadFromDb | ( | $question_id | ) | 
Loads a assFileUpload object from a database.
| integer | $question_id | A unique key which defines the question in the database | 
Definition at line 145 of file class.assFileUpload.php.
References $data, $DIC, Vendor\Package\$e, $ilDB, ilRTE\_replaceMediaObjectImageSrc(), getAdditionalTableName(), ilAssQuestionLifecycle\getDraftInstance(), ilAssQuestionLifecycle\getInstance(), 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().
 Here is the call graph for this function:| assFileUpload::removeIntermediateSolution | ( | int | $active_id, | 
| int | $pass | ||
| ) | 
Definition at line 860 of file class.assFileUpload.php.
References assQuestion\$test_id.
      
  | 
  protected | 
Definition at line 831 of file class.assFileUpload.php.
Referenced by saveWorkingData().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 812 of file class.assFileUpload.php.
References Vendor\Package\$d, $res, isFileDeletionAction(), and isFileDeletionSubmitAvailable().
Referenced by saveWorkingData().
 Here is the call graph for this function:
 Here is the caller graph for this function:| assFileUpload::saveAdditionalQuestionDataToDb | ( | ) | 
Saves a record to the question types additional data table.
Implements ilObjQuestionScoringAdjustable.
Definition at line 118 of file class.assFileUpload.php.
References $DIC, $ilDB, getAdditionalTableName(), getAllowedExtensions(), assQuestion\getId(), getMaxSize(), and isCompletionBySubmissionEnabled().
Referenced by saveToDb().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 872 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().
 Here is the call graph for this function:| assFileUpload::saveToDb | ( | $original_id = '' | ) | 
Saves a assFileUpload object to a database.
Definition at line 106 of file class.assFileUpload.php.
References assQuestion\$original_id, saveAdditionalQuestionDataToDb(), and assQuestion\saveQuestionDataToDb().
 Here is the call graph for this function:| assFileUpload::saveWorkingData | ( | $active_id, | |
$pass = null,  | 
        |||
$authorized = true  | 
        |||
| ) | 
public
| integer | $active_id | Active id of the user | 
| integer | $pass | Test pass | 
Definition at line 677 of file class.assFileUpload.php.
References Vendor\Package\$e, assQuestion\$test_id, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), ilObjTest\_getPass(), checkUpload(), assQuestion\deleteDummySolutionRecord(), assQuestion\forceExistingIntermediateSolution(), assQuestion\getId(), assQuestion\getProcessLocker(), assQuestion\getSolutionRecordById(), assQuestion\intermediateSolutionExists(), isFileDeletionAction(), isFileDeletionSubmitAvailable(), isFileReuseHandlingRequired(), isFileUploadAvailable(), ILIAS\Repository\lng(), assQuestion\logAction(), assQuestion\removeCurrentSolution(), removeSolutionRecordById(), resolveRIDStoDelete(), assQuestion\saveCurrentSolution(), and assQuestion\updateCurrentSolutionsAuthorization().
 Here is the call graph for this function:| assFileUpload::setAllowedExtensions | ( | string | $a_value | ) | 
Definition at line 1057 of file class.assFileUpload.php.
Referenced by loadFromDb().
 Here is the caller graph for this function:| assFileUpload::setCompletionBySubmission | ( | bool | $bool | ) | 
Definition at line 1103 of file class.assFileUpload.php.
Referenced by loadFromDb().
 Here is the caller graph for this function:| assFileUpload::setExportDetailsXLSX | ( | ilAssExcelFormatHelper | $worksheet, | 
| int | $startrow, | ||
| int | $col, | ||
| int | $active_id, | ||
| int | $pass | ||
| ) | 
{}
Definition at line 984 of file class.assFileUpload.php.
References ilExcel\getColumnCoord(), assQuestion\getSolutionValues(), ILIAS\Repository\lng(), ilExcel\setBold(), and ilAssExcelFormatHelper\setCell().
 Here is the call graph for this function:| assFileUpload::setMaxSize | ( | ?int | $value | ) | 
Definition at line 1038 of file class.assFileUpload.php.
Referenced by loadFromDb().
 Here is the caller graph for this function:| assFileUpload::toXML | ( | $a_include_header = true,  | 
        |
$a_include_binary = true,  | 
        |||
$a_shuffle = false,  | 
        |||
$test_output = false,  | 
        |||
$force_image_references = false  | 
        |||
| ) | 
Definition at line 1021 of file class.assFileUpload.php.
      
  | 
  protected | 
Definition at line 49 of file class.assFileUpload.php.
Referenced by getAllowedExtensions().
      
  | 
  protected | 
Definition at line 54 of file class.assFileUpload.php.
Referenced by isCompletionBySubmissionEnabled().
      
  | 
  private | 
Definition at line 51 of file class.assFileUpload.php.
      
  | 
  private | 
Definition at line 44 of file class.assFileUpload.php.
      
  | 
  private | 
Definition at line 45 of file class.assFileUpload.php.
      
  | 
  private | 
Definition at line 43 of file class.assFileUpload.php.
      
  | 
  protected | 
Definition at line 47 of file class.assFileUpload.php.
Referenced by getMaxSize().
| const assFileUpload::DELETE_FILES_TBL_POSTVAR = 'deletefiles' | 
Definition at line 39 of file class.assFileUpload.php.
Referenced by assFileUploadGUI\getPreview(), and assFileUploadGUI\getTestPresentationFileTablePostVar().
      
  | 
  protected | 
Definition at line 42 of file class.assFileUpload.php.
| const assFileUpload::REUSE_FILES_TBL_POSTVAR = 'reusefiles' | 
Definition at line 38 of file class.assFileUpload.php.
Referenced by assFileUploadGUI\getTestPresentationFileTablePostVar().