|
ILIAS
release_8 Revision v8.25-1-g13de6a5eca6
|
This class handles all operations on files for the drafts of a forum object. More...
Inheritance diagram for ilFileDataForumDrafts:
Collaboration diagram for ilFileDataForumDrafts: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 () | |
Public Member Functions inherited from ilFileData | |
| __construct () | |
| checkPath (string $a_path) | |
| getPath () | |
Public Member Functions inherited from ilFile | |
| 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 | |
Protected Attributes inherited from ilFile | |
| 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(), error(), ilFileData\getPath(), initDirectory(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ilFileDataForumDrafts::checkForumDraftsPath | ( | ) |
Definition at line 241 of file class.ilFileDataForumDrafts.php.
References checkReadWrite(), getDraftId(), and getDraftsPath().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 251 of file class.ilFileDataForumDrafts.php.
References error(), getDraftId(), and getDraftsPath().
Referenced by checkForumDraftsPath().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForumDrafts::createZipFile | ( | ) |
Definition at line 305 of file class.ilFileDataForumDrafts.php.
References getDraftId(), getDraftsPath(), ilFileUtils\makeDirParents(), and ilFileUtils\zip().
Referenced by deliverZipFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForumDrafts::delete | ( | ) |
Definition at line 144 of file class.ilFileDataForumDrafts.php.
References ilFileUtils\delDir(), getDraftId(), and getDraftsPath().
Here is the call graph for this function:| ilFileDataForumDrafts::deliverFile | ( | string | $file | ) |
Definition at line 279 of file class.ilFileDataForumDrafts.php.
References ilFile\$path, ilFileDelivery\deliverFileLegacy(), getFileDataByMD5Filename(), and ILIAS\Repository\lng().
Here is the call graph for this function:| 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().
Here is the call graph for this function:| ilFileDataForumDrafts::getDraftId | ( | ) |
Definition at line 64 of file class.ilFileDataForumDrafts.php.
References $draft_id.
Referenced by checkForumDraftsPath(), checkReadWrite(), createZipFile(), delete(), deliverZipFile(), getFileDataByMD5Filename(), initDirectory(), storeUploadedFile(), unlinkFile(), and unlinkFilesByMD5Filenames().
Here is the caller graph for this function:| ilFileDataForumDrafts::getDraftsPath | ( | ) |
Definition at line 74 of file class.ilFileDataForumDrafts.php.
References $drafts_path.
Referenced by checkForumDraftsPath(), checkReadWrite(), createZipFile(), delete(), deliverZipFile(), getFileDataByMD5Filename(), initDirectory(), storeUploadedFile(), unlinkFile(), and unlinkFilesByMD5Filenames().
Here is the caller graph for this function:| ilFileDataForumDrafts::getFileDataByMD5Filename | ( | string | $hashedFilename | ) |
| string | $hashedFilename |
Definition at line 199 of file class.ilFileDataForumDrafts.php.
References ilFileUtils\getDir(), getDraftId(), and getDraftsPath().
Referenced by deliverFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForumDrafts::getObjId | ( | ) |
Definition at line 54 of file class.ilFileDataForumDrafts.php.
References $obj_id.
|
private |
Definition at line 261 of file class.ilFileDataForumDrafts.php.
References getDraftId(), getDraftsPath(), ilFileData\getPath(), and ilFileUtils\makeDirParents().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| 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(), and rotateFiles().
Referenced by rotateFiles(), and storeUploadedFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForumDrafts::setDraftId | ( | int | $draft_id | ) |
Definition at line 69 of file class.ilFileDataForumDrafts.php.
References $draft_id.
| ilFileDataForumDrafts::setObjId | ( | int | $obj_id | ) |
Definition at line 59 of file class.ilFileDataForumDrafts.php.
References $obj_id.
| ilFileDataForumDrafts::storeUploadedFile | ( | array | $files | ) |
Definition at line 150 of file class.ilFileDataForumDrafts.php.
References $error, $filename, $index, $name, ilFile\$path, ilFileUtils\_sanitizeFilemame(), getDraftId(), getDraftsPath(), ilFileUtils\moveUploadedFile(), and rotateFiles().
Here is the call graph for this function:| ilFileDataForumDrafts::unlinkFile | ( | string | $a_filename | ) |
Definition at line 186 of file class.ilFileDataForumDrafts.php.
References getDraftId(), and getDraftsPath().
Here is the call graph for this function:| ilFileDataForumDrafts::unlinkFilesByMD5Filenames | ( | $hashedFilenameOrFilenames | ) |
| string | string[] | $hashedFilenameOrFilenames |
Definition at line 219 of file class.ilFileDataForumDrafts.php.
References ilFileUtils\getDir(), getDraftId(), and getDraftsPath().
Here is the call graph for this function:
|
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.
Referenced by storeUploadedFile().
|
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().