ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
This class handles all operations on files for the drafts of a forum object. More...
Public Member Functions | |
__construct ($obj_id=0, $draft_id) | |
getObjId () | |
setObjId ($obj_id) | |
getDraftId () | |
setDraftId ($draft_id) | |
getDraftsPath () | |
moveFilesOfDraft ($forum_path, $new_post_id) | |
delete () | |
storeUploadedFile ($files) | |
Store uploaded files in filesystem. More... | |
unlinkFiles ($a_filenames) | |
unlink files: expects an array of filenames e.g. More... | |
unlinkFile ($a_filename) | |
unlink one uploaded file expects a filename e.g 'foo' More... | |
getAbsolutePath ($a_path) | |
get absolute path of filename More... | |
getFileDataByMD5Filename ($a_md5_filename) | |
get file data of a specific attachment More... | |
unlinkFilesByMD5Filenames ($a_md5_filename) | |
get file data of a specific attachment More... | |
checkFilesExist ($a_files) | |
check if files exist More... | |
__checkPath () | |
__checkReadWrite () | |
check if directory is writable overwritten method from base class private More... | |
__initDirectory () | |
init directory overwritten method public More... | |
__rotateFiles ($a_path) | |
rotate files with same name recursive method More... | |
deliverFile ($file) | |
deliverZipFile () | |
createZipFile () | |
Public Member Functions inherited from ilFileData | |
__construct () | |
Constructor class bas constructor and read path of directory from ilias.ini setup an mail object public. More... | |
checkPath ($a_path) | |
check if path exists and is writable More... | |
getPath () | |
get Path public More... | |
Public Member Functions inherited from ilFile | |
__construct () | |
Constructor get ilias object public. More... | |
deleteTrailingSlash ($a_path) | |
delete trailing slash of path variables More... | |
Protected Attributes | |
$obj_id = 0 | |
$draft_id = 0 | |
$drafts_path = '' | |
Private Attributes | |
$lng | |
$error | |
Additional Inherited Members | |
Data Fields inherited from ilFile | |
$path | |
$ilias | |
This class handles all operations on files for the drafts of a forum object.
Definition at line 14 of file class.ilFileDataForumDrafts.php.
ilFileDataForumDrafts::__construct | ( | $obj_id = 0 , |
|
$draft_id | |||
) |
Definition at line 22 of file class.ilFileDataForumDrafts.php.
References $DIC, $draft_id, $obj_id, __checkPath(), and __initDirectory().
ilFileDataForumDrafts::__checkPath | ( | ) |
Definition at line 316 of file class.ilFileDataForumDrafts.php.
References __checkReadWrite(), getDraftId(), and getDraftsPath().
Referenced by __construct().
ilFileDataForumDrafts::__checkReadWrite | ( | ) |
check if directory is writable overwritten method from base class private
Definition at line 331 of file class.ilFileDataForumDrafts.php.
References getDraftId(), and getDraftsPath().
Referenced by __checkPath().
ilFileDataForumDrafts::__initDirectory | ( | ) |
init directory overwritten method public
Definition at line 345 of file class.ilFileDataForumDrafts.php.
References getDraftId(), getDraftsPath(), ilFileData\getPath(), and ilUtil\makeDirParents().
Referenced by __construct().
ilFileDataForumDrafts::__rotateFiles | ( | $a_path | ) |
rotate files with same name recursive method
string | filename private |
Definition at line 363 of file class.ilFileDataForumDrafts.php.
Referenced by storeUploadedFile().
ilFileDataForumDrafts::checkFilesExist | ( | $a_files | ) |
check if files exist
array | filenames to check public |
Definition at line 302 of file class.ilFileDataForumDrafts.php.
References $file, getDraftId(), and getDraftsPath().
ilFileDataForumDrafts::createZipFile | ( | ) |
Definition at line 402 of file class.ilFileDataForumDrafts.php.
References $file, getDraftId(), getDraftsPath(), ilUtil\makeDirParents(), and ilUtil\zip().
Referenced by deliverZipFile().
ilFileDataForumDrafts::delete | ( | ) |
Definition at line 152 of file class.ilFileDataForumDrafts.php.
References ilUtil\delDir(), getDraftId(), and getDraftsPath().
Referenced by ilObjForumGUI\deleteSelectedDraft(), and ilObjForumGUI\deleteThreadDraftsObject().
ilFileDataForumDrafts::deliverFile | ( | $file | ) |
$file | $_GET['file'] |
Definition at line 376 of file class.ilFileDataForumDrafts.php.
References $file, ilFile\$path, ilUtil\deliverFile(), getFileDataByMD5Filename(), and ilUtil\sendFailure().
ilFileDataForumDrafts::deliverZipFile | ( | ) |
Definition at line 385 of file class.ilFileDataForumDrafts.php.
References $post, createZipFile(), ilUtil\delDir(), ilUtil\deliverFile(), exit, getDraftId(), getDraftsPath(), ilForumPostDraft\newInstanceByDraftId(), and ilUtil\sendFailure().
ilFileDataForumDrafts::getAbsolutePath | ( | $a_path | ) |
get absolute path of filename
string | relative path public |
Definition at line 241 of file class.ilFileDataForumDrafts.php.
References getDraftId(), and getDraftsPath().
ilFileDataForumDrafts::getDraftId | ( | ) |
Definition at line 60 of file class.ilFileDataForumDrafts.php.
References $draft_id.
Referenced by __checkPath(), __checkReadWrite(), __initDirectory(), checkFilesExist(), createZipFile(), delete(), deliverZipFile(), getAbsolutePath(), getDraftsPath(), getFileDataByMD5Filename(), storeUploadedFile(), unlinkFile(), and unlinkFilesByMD5Filenames().
ilFileDataForumDrafts::getDraftsPath | ( | ) |
Definition at line 76 of file class.ilFileDataForumDrafts.php.
References $drafts_path, $file, $files, array, date, and getDraftId().
Referenced by __checkPath(), __checkReadWrite(), __initDirectory(), checkFilesExist(), createZipFile(), delete(), deliverZipFile(), getAbsolutePath(), getFileDataByMD5Filename(), storeUploadedFile(), unlinkFile(), and unlinkFilesByMD5Filenames().
ilFileDataForumDrafts::getFileDataByMD5Filename | ( | $a_md5_filename | ) |
get file data of a specific attachment
string | md5 encrypted filename public |
Definition at line 252 of file class.ilFileDataForumDrafts.php.
References $file, $files, array, ilUtil\getDir(), getDraftId(), and getDraftsPath().
Referenced by deliverFile().
ilFileDataForumDrafts::getObjId | ( | ) |
ilFileDataForumDrafts::moveFilesOfDraft | ( | $forum_path, | |
$new_post_id | |||
) |
Definition at line 138 of file class.ilFileDataForumDrafts.php.
References $file.
ilFileDataForumDrafts::setDraftId | ( | $draft_id | ) |
int | $draft_id |
Definition at line 68 of file class.ilFileDataForumDrafts.php.
References $draft_id.
ilFileDataForumDrafts::setObjId | ( | $obj_id | ) |
int | $obj_id |
Definition at line 52 of file class.ilFileDataForumDrafts.php.
References $obj_id.
ilFileDataForumDrafts::storeUploadedFile | ( | $files | ) |
Store uploaded files in filesystem.
array | $files | Copy of $_FILES array, public |
Definition at line 167 of file class.ilFileDataForumDrafts.php.
References $error, $filename, $files, $index, $name, ilFile\$path, __rotateFiles(), ilUtil\_sanitizeFilemame(), getDraftId(), and getDraftsPath().
Referenced by ilObjForumGUI\updateThreadDraftObject().
ilFileDataForumDrafts::unlinkFile | ( | $a_filename | ) |
unlink one uploaded file expects a filename e.g 'foo'
string | filename to delete public |
Definition at line 229 of file class.ilFileDataForumDrafts.php.
References getDraftId(), and getDraftsPath().
Referenced by unlinkFiles().
ilFileDataForumDrafts::unlinkFiles | ( | $a_filenames | ) |
unlink files: expects an array of filenames e.g.
array('foo','bar')
array | filenames to delete public |
Definition at line 212 of file class.ilFileDataForumDrafts.php.
References $file, and unlinkFile().
ilFileDataForumDrafts::unlinkFilesByMD5Filenames | ( | $a_md5_filename | ) |
get file data of a specific attachment
string|array | md5 encrypted filename or array of multiple md5 encrypted files public |
Definition at line 274 of file class.ilFileDataForumDrafts.php.
References $file, $files, array, ilUtil\getDir(), getDraftId(), and getDraftsPath().
|
protected |
Definition at line 17 of file class.ilFileDataForumDrafts.php.
Referenced by __construct(), getDraftId(), and setDraftId().
|
protected |
Definition at line 18 of file class.ilFileDataForumDrafts.php.
Referenced by getDraftsPath().
|
private |
Definition at line 20 of file class.ilFileDataForumDrafts.php.
Referenced by storeUploadedFile().
|
private |
Definition at line 19 of file class.ilFileDataForumDrafts.php.
|
protected |
Definition at line 16 of file class.ilFileDataForumDrafts.php.
Referenced by __construct(), getObjId(), and setObjId().