ILIAS
release_8 Revision v8.19
|
This class handles all operations on files for the drafts of a forum object. More...
Public Member Functions | |
__construct (int $obj_id, int $draft_id) | |
getObjId () | |
setObjId (int $obj_id) | |
getDraftId () | |
setDraftId (int $draft_id) | |
getDraftsPath () | |
moveFilesOfDraft (string $forum_path, int $new_post_id) | |
delete () | |
storeUploadedFile (array $files) | |
unlinkFile (string $a_filename) | |
getFileDataByMD5Filename (string $hashedFilename) | |
unlinkFilesByMD5Filenames ($hashedFilenameOrFilenames) | |
checkForumDraftsPath () | |
deliverFile (string $file) | |
deliverZipFile () | |
createZipFile () | |
![]() | |
__construct () | |
checkPath (string $a_path) | |
getPath () | |
![]() | |
deleteTrailingSlash (string $a_path) | |
delete trailing slash of path variables More... | |
Private Member Functions | |
checkReadWrite () | |
initDirectory () | |
rotateFiles (string $a_path) | |
Private Attributes | |
int | $obj_id |
int | $draft_id |
string | $drafts_path |
ilLanguage | $lng |
ilErrorHandling | $error |
ilGlobalTemplateInterface | $main_tpl |
Additional Inherited Members | |
![]() | |
string | $path |
This class handles all operations on files for the drafts of a forum object.
Definition at line 26 of file class.ilFileDataForumDrafts.php.
ilFileDataForumDrafts::__construct | ( | int | $obj_id, |
int | $draft_id | ||
) |
Definition at line 35 of file class.ilFileDataForumDrafts.php.
References $DIC, $draft_id, $obj_id, ILIAS\GlobalScreen\Provider\__construct(), checkForumDraftsPath(), ilFileData\getPath(), initDirectory(), and ILIAS\Repository\lng().
ilFileDataForumDrafts::checkForumDraftsPath | ( | ) |
Definition at line 241 of file class.ilFileDataForumDrafts.php.
References checkReadWrite(), getDraftId(), and getDraftsPath().
Referenced by __construct().
|
private |
Definition at line 251 of file class.ilFileDataForumDrafts.php.
References getDraftId(), and getDraftsPath().
Referenced by checkForumDraftsPath().
ilFileDataForumDrafts::createZipFile | ( | ) |
Definition at line 305 of file class.ilFileDataForumDrafts.php.
References getDraftId(), getDraftsPath(), ilFileUtils\makeDirParents(), and ilFileUtils\zip().
Referenced by deliverZipFile().
ilFileDataForumDrafts::delete | ( | ) |
Definition at line 144 of file class.ilFileDataForumDrafts.php.
References ilFileUtils\delDir(), getDraftId(), and getDraftsPath().
Referenced by ilObjForumGUI\deleteSelectedDraft(), and ilObjForumGUI\deleteThreadDraftsObject().
ilFileDataForumDrafts::deliverFile | ( | string | $file | ) |
Definition at line 279 of file class.ilFileDataForumDrafts.php.
References ilFile\$path, ilFileDelivery\deliverFileLegacy(), getFileDataByMD5Filename(), and ILIAS\Repository\lng().
Referenced by ilObjForumGUI\viewThreadObject().
ilFileDataForumDrafts::deliverZipFile | ( | ) |
Definition at line 288 of file class.ilFileDataForumDrafts.php.
References $DIC, $post, createZipFile(), ilFileUtils\delDir(), ilFileDelivery\deliverFileLegacy(), getDraftId(), getDraftsPath(), ILIAS\Repository\lng(), and ilForumPostDraft\newInstanceByDraftId().
ilFileDataForumDrafts::getDraftId | ( | ) |
Definition at line 64 of file class.ilFileDataForumDrafts.php.
References $draft_id.
Referenced by checkForumDraftsPath(), checkReadWrite(), createZipFile(), delete(), deliverZipFile(), getDraftsPath(), getFileDataByMD5Filename(), initDirectory(), storeUploadedFile(), unlinkFile(), and unlinkFilesByMD5Filenames().
ilFileDataForumDrafts::getDraftsPath | ( | ) |
Definition at line 74 of file class.ilFileDataForumDrafts.php.
References $drafts_path, and getDraftId().
Referenced by checkForumDraftsPath(), checkReadWrite(), createZipFile(), delete(), deliverZipFile(), getFileDataByMD5Filename(), initDirectory(), storeUploadedFile(), unlinkFile(), and unlinkFilesByMD5Filenames().
ilFileDataForumDrafts::getFileDataByMD5Filename | ( | string | $hashedFilename | ) |
string | $hashedFilename |
Definition at line 199 of file class.ilFileDataForumDrafts.php.
References ilFileUtils\getDir(), getDraftId(), and getDraftsPath().
Referenced by deliverFile().
ilFileDataForumDrafts::getObjId | ( | ) |
|
private |
Definition at line 261 of file class.ilFileDataForumDrafts.php.
References getDraftId(), getDraftsPath(), ilFileData\getPath(), and ilFileUtils\makeDirParents().
Referenced by __construct().
ilFileDataForumDrafts::moveFilesOfDraft | ( | string | $forum_path, |
int | $new_post_id | ||
) |
Definition at line 132 of file class.ilFileDataForumDrafts.php.
|
private |
Definition at line 271 of file class.ilFileDataForumDrafts.php.
References ilFileUtils\rename().
Referenced by storeUploadedFile().
ilFileDataForumDrafts::setDraftId | ( | int | $draft_id | ) |
ilFileDataForumDrafts::setObjId | ( | int | $obj_id | ) |
ilFileDataForumDrafts::storeUploadedFile | ( | array | $files | ) |
Definition at line 150 of file class.ilFileDataForumDrafts.php.
References $filename, $index, $name, ilFile\$path, ilFileUtils\_sanitizeFilemame(), getDraftId(), getDraftsPath(), ilFileUtils\moveUploadedFile(), and rotateFiles().
Referenced by ilObjForumGUI\saveAsDraftObject().
ilFileDataForumDrafts::unlinkFile | ( | string | $a_filename | ) |
Definition at line 186 of file class.ilFileDataForumDrafts.php.
References getDraftId(), and getDraftsPath().
ilFileDataForumDrafts::unlinkFilesByMD5Filenames | ( | $hashedFilenameOrFilenames | ) |
string|string[] | $hashedFilenameOrFilenames |
Definition at line 219 of file class.ilFileDataForumDrafts.php.
References ilFileUtils\getDir(), getDraftId(), and getDraftsPath().
Referenced by ilObjForumGUI\saveThreadAsDraftObject(), ilObjForumGUI\updateDraftObject(), and ilObjForumGUI\updateThreadDraftObject().
|
private |
Definition at line 29 of file class.ilFileDataForumDrafts.php.
Referenced by __construct(), getDraftId(), and setDraftId().
|
private |
Definition at line 30 of file class.ilFileDataForumDrafts.php.
Referenced by getDraftsPath().
|
private |
Definition at line 32 of file class.ilFileDataForumDrafts.php.
|
private |
Definition at line 31 of file class.ilFileDataForumDrafts.php.
|
private |
Definition at line 33 of file class.ilFileDataForumDrafts.php.
|
private |
Definition at line 28 of file class.ilFileDataForumDrafts.php.
Referenced by __construct(), getObjId(), and setObjId().