ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($a_container_id=0, $a_ass_id=0) | |
Constructor. More... | |
init () | |
Append ass_<ass_id> to path (assignment id) More... | |
getAbsoluteSubmissionPath () | |
Get submission path. More... | |
getTempPath () | |
Get submission path. More... | |
getFeedbackPath ($a_user_id) | |
Get feedback path. More... | |
getGlobalFeedbackPath () | |
getMultiFeedbackUploadPath ($a_user_id) | |
Get multi feedback upload path (each uploader handled in a separate path) More... | |
getPeerReviewUploadPath ($a_peer_id, $a_giver_id, $a_crit_id) | |
Get pear review upload path (each peer handled in a separate path) More... | |
create () | |
Create directory. More... | |
getFiles () | |
Get assignment files. More... | |
uploadFile ($a_http_post_file, $user_id, $is_unziped=false) | |
store delivered file in filesystem More... | |
getFeedbackFiles ($a_user_id) | |
Get number of feedback files. More... | |
countFeedbackFiles ($a_user_id) | |
Count number of feedback files for a user. More... | |
getAssignmentFilePath ($a_file) | |
Get path for assignment file. More... | |
getFeedbackFilePath ($a_user_id, $a_file) | |
Get path for feedback file. More... | |
uploadAssignmentFiles ($a_files) | |
Upload assignment files (e.g. More... | |
Public Member Functions inherited from ilFileSystemStorage | |
__construct ($a_storage_type, $a_path_conversion, $a_container_id) | |
Constructor. More... | |
getContainerId () | |
create () | |
Create directory. More... | |
getAbsolutePath () | |
Get absolute path of storage directory. More... | |
writeToFile ($a_data, $a_absolute_path) | |
Write data to file. More... | |
deleteFile ($a_abs_name) | |
Delete file. More... | |
deleteDirectory ($a_abs_name) | |
Delete directory. More... | |
delete () | |
Delete complete directory. More... | |
copyFile ($a_from, $a_to) | |
Copy files. More... | |
appendToPath ($a_appendix) | |
getStorageType () | |
getPath () | |
Get path. More... | |
__construct ($a_storage_type, $a_path_conversion, $a_container_id) | |
Constructor. More... | |
create () | |
Create directory. More... | |
getAbsolutePath () | |
Get absolute path of storage directory. More... | |
getShortPath () | |
rename ($from, $to) | |
Protected Member Functions | |
getPathPostfix () | |
Implementation of abstract method. More... | |
getPathPrefix () | |
Implementation of abstract method. More... | |
Protected Member Functions inherited from ilFileSystemStorage | |
getPathPrefix () | |
Get path prefix. More... | |
getPathPostfix () | |
Get directory name. More... | |
init () | |
Read path info. More... | |
getPathPrefix () | |
Get path prefix. More... | |
getPathPostfix () | |
Get directory name. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilFileSystemStorage | |
static | _createPathFromId ($a_container_id, $a_name) |
Create a path from an id: e.g 12345 will be converted to 12/34/<name>_5. More... | |
static | _copyDirectory ($a_source, $a_target) |
Copy directory and all contents. More... | |
static | _createPathFromId ($a_container_id, $a_name) |
Create a path from an id: e.g 12345 will be converted to 12/34/<name>_5. More... | |
Data Fields inherited from ilFileSystemStorage | |
const | STORAGE_WEB = 1 |
const | STORAGE_DATA = 2 |
const | STORAGE_SECURED = 3 |
const | FACTOR = 100 |
const | MAX_EXPONENT = 3 |
const | SECURED_DIRECTORY = "sec" |
Protected Attributes inherited from ilFileSystemStorage | |
$path | |
Definition at line 32 of file class.ilFSStorageExercise.php.
ilFSStorageExercise::__construct | ( | $a_container_id = 0 , |
|
$a_ass_id = 0 |
|||
) |
ilFSStorageExercise::countFeedbackFiles | ( | $a_user_id | ) |
Count number of feedback files for a user.
Definition at line 304 of file class.ilFSStorageExercise.php.
References getFeedbackFiles().
Referenced by ilExAssignmentGUI\addSubmissionFeedback(), and ilExerciseSubmissionTableGUI\parseRow().
ilFSStorageExercise::create | ( | ) |
Create directory.
public
Definition at line 161 of file class.ilFSStorageExercise.php.
References ilUtil\makeDirParents().
Referenced by ilExAssignmentPeerReviewTableGUI\__construct(), ilExerciseXMLParser\__construct(), ilExAssignment\cloneAssignmentsOfExercise(), ilExSubmission\downloadAllAssignmentFiles(), ilExPeerReviewGUI\executeCommand(), ilExerciseManagementGUI\executeCommand(), ilExerciseDataSet\importRecord(), and uploadFile().
ilFSStorageExercise::getAbsoluteSubmissionPath | ( | ) |
Get submission path.
Definition at line 91 of file class.ilFSStorageExercise.php.
Referenced by uploadFile().
ilFSStorageExercise::getAssignmentFilePath | ( | $a_file | ) |
Get path for assignment file.
Definition at line 313 of file class.ilFSStorageExercise.php.
References ilFileSystemStorage\getAbsolutePath().
ilFSStorageExercise::getFeedbackFilePath | ( | $a_user_id, | |
$a_file | |||
) |
Get path for feedback file.
Definition at line 321 of file class.ilFSStorageExercise.php.
References getFeedbackPath().
ilFSStorageExercise::getFeedbackFiles | ( | $a_user_id | ) |
Get number of feedback files.
Definition at line 284 of file class.ilFSStorageExercise.php.
References $files, and getFeedbackPath().
Referenced by countFeedbackFiles().
ilFSStorageExercise::getFeedbackPath | ( | $a_user_id | ) |
Get feedback path.
Definition at line 107 of file class.ilFSStorageExercise.php.
References ilFileSystemStorage\$path, and ilUtil\makeDirParents().
Referenced by getFeedbackFilePath(), and getFeedbackFiles().
ilFSStorageExercise::getFiles | ( | ) |
Get assignment files.
Definition at line 179 of file class.ilFSStorageExercise.php.
References $files, and ilUtil\sortArray().
ilFSStorageExercise::getGlobalFeedbackPath | ( | ) |
Definition at line 116 of file class.ilFSStorageExercise.php.
References ilFileSystemStorage\$path, and ilUtil\makeDirParents().
Referenced by ilExAssignment\cloneAssignmentsOfExercise().
ilFSStorageExercise::getMultiFeedbackUploadPath | ( | $a_user_id | ) |
Get multi feedback upload path (each uploader handled in a separate path)
Definition at line 129 of file class.ilFSStorageExercise.php.
References ilFileSystemStorage\$path, and ilUtil\makeDirParents().
|
protected |
Implementation of abstract method.
protected
Definition at line 72 of file class.ilFSStorageExercise.php.
|
protected |
Implementation of abstract method.
protected
Definition at line 83 of file class.ilFSStorageExercise.php.
ilFSStorageExercise::getPeerReviewUploadPath | ( | $a_peer_id, | |
$a_giver_id, | |||
$a_crit_id | |||
) |
Get pear review upload path (each peer handled in a separate path)
Definition at line 142 of file class.ilFSStorageExercise.php.
References ilFileSystemStorage\$path, and ilUtil\makeDirParents().
Referenced by ilExcCriteriaFile\initStorage().
ilFSStorageExercise::getTempPath | ( | ) |
Get submission path.
Definition at line 99 of file class.ilFSStorageExercise.php.
ilFSStorageExercise::init | ( | ) |
Append ass_<ass_id> to path (assignment id)
Definition at line 48 of file class.ilFSStorageExercise.php.
References init().
ilFSStorageExercise::uploadAssignmentFiles | ( | $a_files | ) |
Upload assignment files (e.g.
from assignment creation form)
Definition at line 331 of file class.ilFSStorageExercise.php.
References $name, $size, and $type.
ilFSStorageExercise::uploadFile | ( | $a_http_post_file, | |
$user_id, | |||
$is_unziped = false |
|||
) |
store delivered file in filesystem
array | HTTP_POST_FILES |
numeric | database id of the user who delivered the file public |
Definition at line 213 of file class.ilFSStorageExercise.php.
References $filename, $result, create(), getAbsoluteSubmissionPath(), ilObjMediaObject\getMimeType(), ilFileUtils\getValidFilename(), ilUtil\makeDir(), and ilFileSystemStorage\rename().