ILIAS
trunk Revision v5.2.0beta1-34132-g2d4d73d4a0
|
Class for file upload questions. More...
Public Member Functions | |
__construct ( $title='', $comment='', $author='', $owner=-1, $question='') | |
assFileUpload constructor More... | |
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 () | |
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) | |
_resolveIntLinks (int $question_id) | |
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) |
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) | |
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) | |
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 |
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::__construct | ( | $title = '' , |
|
$comment = '' , |
|||
$author = '' , |
|||
$owner = -1 , |
|||
$question = '' |
|||
) |
assFileUpload constructor
The constructor takes possible arguments an creates an instance of the assFileUpload object.
string | $title | A title string to describe the question |
string | $comment | A comment string to describe the question |
string | $author | A string containing the name of the questions author |
integer | $owner | A numerical ID to identify the owner/creator |
string | $question | The question string of the single choice question |
Definition at line 64 of file class.assFileUpload.php.
References assQuestion\$author, assQuestion\$comment, $DIC, assQuestion\$owner, assQuestion\$question, assQuestion\$title, and ILIAS\GlobalScreen\Provider\__construct().
assFileUpload::buildTestPresentationConfig | ( | ) |
Definition at line 1090 of file class.assFileUpload.php.
References ilTestQuestionConfig\setFormChangeDetectionEnabled().
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 313 of file class.assFileUpload.php.
References $data, $DIC, assQuestion\getCurrentSolutionResultSet(), assQuestion\getPoints(), assQuestion\getSolutionMaxPass(), isCompletionBySubmissionEnabled(), and assQuestion\isDummySolutionRecord().
|
protected |
Definition at line 340 of file class.assFileUpload.php.
References assQuestion\getPoints(), and isCompletionBySubmissionEnabled().
assFileUpload::checkUpload | ( | ) |
Check file upload.
Definition at line 356 of file class.assFileUpload.php.
References getAllowedExtensionsArray(), getMaxFilesizeInBytes(), and ILIAS\Repository\lng().
Referenced by savePreviewData(), and saveWorkingData().
assFileUpload::copyObject | ( | $target_questionpool_id, | |
$title = '' |
|||
) |
Copies an assFileUpload object.
Definition at line 237 of file class.assFileUpload.php.
References assQuestion\$original_id, assQuestion\$title, assQuestion\getId(), and assQuestion\getObjId().
assFileUpload::createNewOriginalFromThisDuplicate | ( | $targetParentId, | |
$targetQuestionTitle = '' |
|||
) |
Definition at line 263 of file class.assFileUpload.php.
References assQuestion\$id, assQuestion\getId(), and assQuestion\getObjId().
assFileUpload::deleteAnswers | ( | $question_id | ) |
integer | $question_id | The question id which should be deleted in the answers table |
Definition at line 944 of file class.assFileUpload.php.
|
protected |
Definition at line 589 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 1059 of file class.assFileUpload.php.
References ILIAS\Repository\lng().
assFileUpload::determineMaxFilesize | ( | ) |
Definition at line 625 of file class.assFileUpload.php.
Referenced by getMaxFilesizeInBytes().
assFileUpload::duplicate | ( | bool | $for_test = true , |
string | $title = '' , |
||
string | $author = '' , |
||
int | $owner = -1 , |
||
$testObjId = null |
|||
) |
Duplicates an assFileUpload.
Definition at line 184 of file class.assFileUpload.php.
References assQuestion\$author, assQuestion\$original_id, assQuestion\$owner, assQuestion\$title, assQuestion\getId(), and assQuestion\getObjId().
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 991 of file class.assFileUpload.php.
assFileUpload::getAdditionalTableName | ( | ) |
Definition at line 931 of file class.assFileUpload.php.
Referenced by loadFromDb(), and saveAdditionalQuestionDataToDb().
assFileUpload::getAllowedExtensions | ( | ) |
Definition at line 1028 of file class.assFileUpload.php.
References $allowedextensions.
Referenced by saveAdditionalQuestionDataToDb().
assFileUpload::getAllowedExtensionsArray | ( | ) |
Definition at line 1019 of file class.assFileUpload.php.
Referenced by checkUpload().
assFileUpload::getAnswerTableName | ( | ) |
Definition at line 936 of file class.assFileUpload.php.
assFileUpload::getBestSolution | ( | $active_id, | |
$pass | |||
) |
Definition at line 1003 of file class.assFileUpload.php.
assFileUpload::getFileUploadPath | ( | $test_id, | |
$active_id, | |||
$question_id = null |
|||
) |
Returns the filesystem path for file uploads.
Definition at line 397 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 418 of file class.assFileUpload.php.
References CLIENT_WEB_DIR, assQuestion\getId(), and ilFileUtils\removeTrailingPathSeparators().
Referenced by getUploadedFilesForWeb().
assFileUpload::getMaxFilesizeAsString | ( | ) |
Definition at line 601 of file class.assFileUpload.php.
References getMaxFilesizeInBytes().
|
protected |
Definition at line 615 of file class.assFileUpload.php.
References determineMaxFilesize(), and getMaxSize().
Referenced by checkUpload(), and getMaxFilesizeAsString().
assFileUpload::getMaximumPoints | ( | ) |
Returns the maximum points, a learner can reach answering the question.
Definition at line 298 of file class.assFileUpload.php.
References assQuestion\getPoints().
Referenced by isComplete().
assFileUpload::getMaxSize | ( | ) |
Definition at line 1009 of file class.assFileUpload.php.
References $maxsize.
Referenced by getMaxFilesizeInBytes(), and saveAdditionalQuestionDataToDb().
|
protected |
Returns the filesystem path for file uploads.
Definition at line 408 of file class.assFileUpload.php.
References CLIENT_WEB_DIR.
Referenced by deletePreviewFileUploads(), and savePreviewData().
|
protected |
Returns the filesystem path for file uploads.
Definition at line 435 of file class.assFileUpload.php.
References CLIENT_WEB_DIR, and ilFileUtils\removeTrailingPathSeparators().
Referenced by savePreviewData().
assFileUpload::getPreviewFileUploads | ( | ilAssQuestionPreviewSession | $previewSession | ) |
Definition at line 477 of file class.assFileUpload.php.
References ilAssQuestionPreviewSession\getParticipantsSolution().
assFileUpload::getQuestionType | ( | ) |
Definition at line 925 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 952 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 451 of file class.assFileUpload.php.
References $data, $DIC, $ilDB, assQuestion\getId(), and assQuestion\getSolutionMaxPass().
Referenced by getUploadedFilesForWeb(), and handleSubmission().
assFileUpload::getUploadedFilesForWeb | ( | $active_id, | |
$pass | |||
) |
Returns the web accessible uploaded files for an active user in a given pass.
Definition at line 491 of file class.assFileUpload.php.
References $data, $path, assQuestion\$step, assQuestion\$test_id, $url, getFileUploadPath(), getFileUploadPathWeb(), assQuestion\getSolutionValues(), assQuestion\getStep(), getUploadedFiles(), and assQuestion\setStep().
assFileUpload::getUserSolutionPreferingIntermediate | ( | $active_id, | |
$pass = null |
|||
) |
int | $active_id | |
int | null | $pass |
Definition at line 822 of file class.assFileUpload.php.
References assQuestion\getSolutionValues().
|
protected |
Definition at line 905 of file class.assFileUpload.php.
References assQuestion\$points, ilObjTest\_getObjectIDFromActiveID(), ilObjTestAccess\_getParticipantId(), assQuestion\_setReachedPoints(), ilLPStatusWrapper\_updateStatus(), assQuestion\getId(), getUploadedFiles(), and isCompletionBySubmissionEnabled().
assFileUpload::hasFileUploads | ( | int | $test_id | ) |
Implements ilObjFileHandlingQuestionType.
Definition at line 1038 of file class.assFileUpload.php.
References assQuestion\getId().
assFileUpload::isComplete | ( | ) |
Returns true, if the question is complete for use.
Definition at line 83 of file class.assFileUpload.php.
References getMaximumPoints().
assFileUpload::isCompletionBySubmissionEnabled | ( | ) |
Definition at line 1074 of file class.assFileUpload.php.
References $completion_by_submission.
Referenced by calculateReachedPoints(), calculateReachedPointsForSolution(), handleSubmission(), and saveAdditionalQuestionDataToDb().
|
protected |
Definition at line 1096 of file class.assFileUpload.php.
References assFileUploadGUI\DELETE_FILES_ACTION, and assQuestion\getQuestionAction().
Referenced by resolveRIDStoDelete(), savePreviewData(), and saveWorkingData().
|
protected |
Definition at line 1101 of file class.assFileUpload.php.
References assQuestion\isNonEmptyItemListPostSubmission().
Referenced by resolveRIDStoDelete(), savePreviewData(), and saveWorkingData().
|
protected |
Definition at line 1111 of file class.assFileUpload.php.
References assQuestion\getTestPresentationConfig(), and isFileReuseSubmitAvailable().
Referenced by saveWorkingData().
|
protected |
Definition at line 1106 of file class.assFileUpload.php.
References assQuestion\isNonEmptyItemListPostSubmission().
Referenced by isFileReuseHandlingRequired().
|
protected |
Definition at line 1124 of file class.assFileUpload.php.
Referenced by savePreviewData(), and saveWorkingData().
|
static |
Definition at line 1085 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 138 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().
assFileUpload::removeIntermediateSolution | ( | int | $active_id, |
int | $pass | ||
) |
Definition at line 842 of file class.assFileUpload.php.
References assQuestion\$test_id.
|
protected |
Definition at line 813 of file class.assFileUpload.php.
Referenced by saveWorkingData().
|
protected |
Definition at line 794 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 111 of file class.assFileUpload.php.
References $DIC, $ilDB, getAdditionalTableName(), getAllowedExtensions(), assQuestion\getId(), getMaxSize(), and isCompletionBySubmissionEnabled().
Referenced by saveToDb().
|
protected |
Definition at line 854 of file class.assFileUpload.php.
References $version, checkUpload(), deletePreviewFileUploads(), ilAssQuestionPreviewSession\getParticipantsSolution(), getPreviewFileUploadPath(), getPreviewFileUploadPathWeb(), ilAssQuestionPreviewSession\getUserId(), isFileDeletionAction(), isFileDeletionSubmitAvailable(), isFileUploadAvailable(), ILIAS\Repository\lng(), ilFileUtils\makeDirParents(), ilFileUtils\moveUploadedFile(), and ilAssQuestionPreviewSession\setParticipantsSolution().
assFileUpload::saveToDb | ( | $original_id = '' | ) |
Saves a assFileUpload object to a database.
Definition at line 99 of file class.assFileUpload.php.
References assQuestion\$original_id, saveAdditionalQuestionDataToDb(), and assQuestion\saveQuestionDataToDb().
assFileUpload::saveWorkingData | ( | $active_id, | |
$pass = null , |
|||
$authorized = true |
|||
) |
public
integer | $active_id | Active id of the user |
integer | $pass | Test pass |
Definition at line 669 of file class.assFileUpload.php.
References 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().
assFileUpload::setAllowedExtensions | ( | string | $a_value | ) |
Definition at line 1033 of file class.assFileUpload.php.
Referenced by loadFromDb().
assFileUpload::setCompletionBySubmission | ( | bool | $bool | ) |
Definition at line 1079 of file class.assFileUpload.php.
Referenced by loadFromDb().
assFileUpload::setExportDetailsXLSX | ( | ilAssExcelFormatHelper | $worksheet, |
int | $startrow, | ||
int | $col, | ||
int | $active_id, | ||
int | $pass | ||
) |
{}
Definition at line 960 of file class.assFileUpload.php.
References $i, ilExcel\getColumnCoord(), assQuestion\getSolutionValues(), ILIAS\Repository\lng(), ilExcel\setBold(), and ilAssExcelFormatHelper\setCell().
assFileUpload::setMaxSize | ( | ?int | $value | ) |
Definition at line 1014 of file class.assFileUpload.php.
Referenced by loadFromDb().
assFileUpload::toXML | ( | $a_include_header = true , |
|
$a_include_binary = true , |
|||
$a_shuffle = false , |
|||
$test_output = false , |
|||
$force_image_references = false |
|||
) |
Definition at line 997 of file class.assFileUpload.php.
|
protected |
Definition at line 46 of file class.assFileUpload.php.
Referenced by getAllowedExtensions().
|
protected |
Definition at line 49 of file class.assFileUpload.php.
Referenced by isCompletionBySubmissionEnabled().
|
private |
Definition at line 41 of file class.assFileUpload.php.
|
private |
Definition at line 42 of file class.assFileUpload.php.
|
private |
Definition at line 40 of file class.assFileUpload.php.
|
protected |
Definition at line 44 of file class.assFileUpload.php.
Referenced by getMaxSize().
const assFileUpload::DELETE_FILES_TBL_POSTVAR = 'deletefiles' |
Definition at line 36 of file class.assFileUpload.php.
Referenced by assFileUploadGUI\getPreview(), and assFileUploadGUI\getTestPresentationFileTablePostVar().
|
protected |
Definition at line 39 of file class.assFileUpload.php.
const assFileUpload::REUSE_FILES_TBL_POSTVAR = 'reusefiles' |
Definition at line 35 of file class.assFileUpload.php.
Referenced by assFileUploadGUI\getTestPresentationFileTablePostVar().