|
ILIAS
eassessment Revision 61809
|
This class handles all operations on files for the exercise object. More...
Inheritance diagram for ilFileDataExercise:
Collaboration diagram for ilFileDataExercise:Public Member Functions | |
| ilFileDataExercise ($a_obj_id=0) | |
| Constructor call base constructors checks if directory is writable and sets the optional obj_id. | |
| getObjId () | |
| getExercisePath () | |
| get exercise path public | |
| getFiles () | |
| ilClone ($a_new_obj_id) | |
| delete () | |
| storeUploadedFile ($a_http_post_file, $secure_filename=false, $is_unziped=false) | |
| store uploaded file in filesystem | |
| storeContentAsFile ($filename, $content, $secure_filename=false) | |
| store content as file in filesystem | |
| downloadAllDeliveredFiles ($members) | |
| Download all submitted files of all members. | |
| unlinkFiles ($a_filenames) | |
| unlink files: expects an array of filenames e.g. | |
| unlinkFile ($a_filename) | |
| unlink one uploaded file expects a filename e.g 'foo' | |
| getAbsolutePath ($a_path) | |
| get absolute path of filename | |
| checkFilesExist ($a_files) | |
| check if files exist | |
| __checkPath () | |
| __checkReadWrite () | |
| check if directory is writable overwritten method from base class private | |
| __initDirectory () | |
| init directory overwritten method public | |
| __rotateFiles ($a_path) | |
| rotate files with same name recursive method | |
Public Member Functions inherited from ilFileData | |
| ilFileData () | |
| Constructor class bas constructor and read path of directory from ilias.ini setup an mail object public. | |
| checkPath ($a_path) | |
| check if path exists and is writable | |
| getPath () | |
| get Path public | |
Public Member Functions inherited from ilFile | |
| ilFile () | |
| Constructor get ilias object public. | |
| deleteTrailingSlash ($a_path) | |
| delete trailing slash of path variables | |
Data Fields | |
| $obj_id | |
| $exercise_path | |
This class handles all operations on files for the exercise object.
Definition at line 14 of file class.ilFileDataExercise.php.
| ilFileDataExercise::__checkPath | ( | ) |
Definition at line 382 of file class.ilFileDataExercise.php.
References __checkReadWrite(), and getExercisePath().
Referenced by ilFileDataExercise().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataExercise::__checkReadWrite | ( | ) |
check if directory is writable overwritten method from base class private
Definition at line 398 of file class.ilFileDataExercise.php.
Referenced by __checkPath().
Here is the caller graph for this function:| ilFileDataExercise::__initDirectory | ( | ) |
init directory overwritten method public
Definition at line 415 of file class.ilFileDataExercise.php.
References ilFileData\getPath(), and ilUtil\makeDir().
Referenced by ilFileDataExercise().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataExercise::__rotateFiles | ( | $a_path | ) |
rotate files with same name recursive method
| string | filename private |
Definition at line 430 of file class.ilFileDataExercise.php.
Referenced by storeContentAsFile(), and storeUploadedFile().
Here is the caller graph for this function:| ilFileDataExercise::checkFilesExist | ( | $a_files | ) |
check if files exist
| array | filenames to check public |
Definition at line 365 of file class.ilFileDataExercise.php.
References $file.
| ilFileDataExercise::delete | ( | ) |
Definition at line 104 of file class.ilFileDataExercise.php.
References $file, ilUtil\delDir(), getExercisePath(), getFiles(), and unlinkFile().
Here is the call graph for this function:| ilFileDataExercise::downloadAllDeliveredFiles | ( | $members | ) |
Download all submitted files of all members.
| $members | array of user names, key is user id |
Definition at line 209 of file class.ilFileDataExercise.php.
References $lng, $pos, ilObjUser\_lookupLogin(), ilObjUser\_lookupName(), ilUtil\delDir(), ilUtil\deliverFile(), ilUtil\dirsize(), ilUtil\escapeShellArg(), ilUtil\getASCIIFilename(), getExercisePath(), getObjId(), ilUtil\ilTempnam(), and ilUtil\makeDir().
Here is the call graph for this function:| ilFileDataExercise::getAbsolutePath | ( | $a_path | ) |
get absolute path of filename
| string | relative path public |
Definition at line 354 of file class.ilFileDataExercise.php.
Referenced by storeContentAsFile().
Here is the caller graph for this function:| ilFileDataExercise::getExercisePath | ( | ) |
get exercise path public
Definition at line 62 of file class.ilFileDataExercise.php.
References $exercise_path.
Referenced by __checkPath(), delete(), downloadAllDeliveredFiles(), ilClone(), and storeUploadedFile().
Here is the caller graph for this function:| ilFileDataExercise::getFiles | ( | ) |
Definition at line 67 of file class.ilFileDataExercise.php.
References $file, $files, $obj_id, $rest, and ilFormat\formatDate().
Referenced by delete(), and ilClone().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataExercise::getObjId | ( | ) |
Definition at line 52 of file class.ilFileDataExercise.php.
References $obj_id.
Referenced by downloadAllDeliveredFiles().
Here is the caller graph for this function:| ilFileDataExercise::ilClone | ( | $a_new_obj_id | ) |
Definition at line 95 of file class.ilFileDataExercise.php.
References $file, getExercisePath(), and getFiles().
Here is the call graph for this function:| ilFileDataExercise::ilFileDataExercise | ( | $a_obj_id = 0 | ) |
Constructor call base constructors checks if directory is writable and sets the optional obj_id.
| integereger | obj_id public |
Definition at line 37 of file class.ilFileDataExercise.php.
References __checkPath(), __initDirectory(), ilFileData\getPath(), and ilFileData\ilFileData().
Here is the call graph for this function:| ilFileDataExercise::storeContentAsFile | ( | $filename, | |
| $content, | |||
$secure_filename = false |
|||
| ) |
store content as file in filesystem
| $filename | Filename |
| $content | base64 decoded content public |
Definition at line 172 of file class.ilFileDataExercise.php.
References $filename, __rotateFiles(), getAbsolutePath(), and ilUtil\virusHandling().
Here is the call graph for this function:| ilFileDataExercise::storeUploadedFile | ( | $a_http_post_file, | |
$secure_filename = false, |
|||
$is_unziped = false |
|||
| ) |
store uploaded file in filesystem
| array | HTTP_POST_FILES | |
| boolean | $is_unziped | true if uploaded file is unziped from archive public |
Definition at line 128 of file class.ilFileDataExercise.php.
References $filename, __rotateFiles(), getExercisePath(), and ilUtil\moveUploadedFile().
Here is the call graph for this function:| ilFileDataExercise::unlinkFile | ( | $a_filename | ) |
unlink one uploaded file expects a filename e.g 'foo'
| string | filename to delete public |
Definition at line 341 of file class.ilFileDataExercise.php.
Referenced by delete(), and unlinkFiles().
Here is the caller graph for this function:| ilFileDataExercise::unlinkFiles | ( | $a_filenames | ) |
unlink files: expects an array of filenames e.g.
array('foo','bar')
| array | filenames to delete public |
Definition at line 321 of file class.ilFileDataExercise.php.
References $file, and unlinkFile().
Here is the call graph for this function:| ilFileDataExercise::$exercise_path |
Definition at line 28 of file class.ilFileDataExercise.php.
Referenced by getExercisePath().
| ilFileDataExercise::$obj_id |
Definition at line 21 of file class.ilFileDataExercise.php.
Referenced by getFiles(), and getObjId().