ILIAS
release_8 Revision v8.23
|
This class handles all operations on files for the forum object. More...
Public Member Functions | |
__construct (int $a_obj_id=0, int $a_pos_id=0) | |
getObjId () | |
getPosId () | |
setPosId (int $a_id) | |
getForumPath () | |
getFilesOfPost () | |
ilClone (int $a_new_obj_id, int $a_new_pos_id) | |
delete () | |
storeUploadedFile (array $files) | |
unlinkFile (string $a_filename) | |
getFileDataByMD5Filename (string $hashedFilename) | |
unlinkFilesByMD5Filenames ($hashedFilenameOrFilenames) | |
deliverFile (string $file) | |
deliverZipFile () | |
![]() | |
__construct () | |
checkPath (string $a_path) | |
getPath () | |
![]() | |
deleteTrailingSlash (string $a_path) | |
delete trailing slash of path variables More... | |
Protected Member Functions | |
createZipFile () | |
Private Member Functions | |
checkForumPath () | |
checkReadWrite () | |
initDirectory () | |
rotateFiles (string $a_path) | |
Private Attributes | |
const | FORUM_PATH = 'forum' |
int | $obj_id |
int | $pos_id |
string | $forum_path |
ilErrorHandling | $error |
ilGlobalTemplateInterface | $main_tpl |
Additional Inherited Members | |
![]() | |
string | $path |
This class handles all operations on files for the forum object.
Definition at line 26 of file class.ilFileDataForum.php.
ilFileDataForum::__construct | ( | int | $a_obj_id = 0 , |
int | $a_pos_id = 0 |
||
) |
Definition at line 36 of file class.ilFileDataForum.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), checkForumPath(), ilFileData\getPath(), and initDirectory().
|
private |
Definition at line 270 of file class.ilFileDataForum.php.
References checkReadWrite(), and getForumPath().
Referenced by __construct().
|
private |
Definition at line 280 of file class.ilFileDataForum.php.
Referenced by checkForumPath().
|
protected |
Definition at line 333 of file class.ilFileDataForum.php.
References getFilesOfPost(), getForumPath(), getObjId(), getPosId(), ilFileUtils\makeDirParents(), and ilFileUtils\zip().
Referenced by deliverZipFile().
ilFileDataForum::delete | ( | ) |
Definition at line 168 of file class.ilFileDataForum.php.
References getForumPath(), and getObjId().
Referenced by ilObjForumGUI\publishDraftObject().
ilFileDataForum::deliverFile | ( | string | $file | ) |
Definition at line 305 of file class.ilFileDataForum.php.
References $DIC, ilFile\$path, ilFileDelivery\deliverFileLegacy(), and getFileDataByMD5Filename().
ilFileDataForum::deliverZipFile | ( | ) |
Definition at line 316 of file class.ilFileDataForum.php.
References $DIC, $post, createZipFile(), ilFileUtils\delDir(), ilFileDelivery\deliverFileLegacy(), getForumPath(), getObjId(), and getPosId().
ilFileDataForum::getFileDataByMD5Filename | ( | string | $hashedFilename | ) |
string | $hashedFilename |
Definition at line 228 of file class.ilFileDataForum.php.
References ilFileUtils\getDir().
Referenced by deliverFile().
ilFileDataForum::getFilesOfPost | ( | ) |
Definition at line 106 of file class.ilFileDataForum.php.
References $obj_id, $pos_id, $rest, getPosId(), ILIAS\Repository\int(), and ilFileUtils\rename().
Referenced by createZipFile(), ilClone(), ilForumNotificationDataProvider\readAttachments(), and ilObjForumGUI\renderPostContent().
ilFileDataForum::getForumPath | ( | ) |
Definition at line 68 of file class.ilFileDataForum.php.
References $forum_path, $obj_id, and $rest.
Referenced by checkForumPath(), createZipFile(), delete(), deliverZipFile(), ilClone(), and storeUploadedFile().
ilFileDataForum::getObjId | ( | ) |
Definition at line 53 of file class.ilFileDataForum.php.
References $obj_id.
Referenced by createZipFile(), delete(), and deliverZipFile().
ilFileDataForum::getPosId | ( | ) |
Definition at line 58 of file class.ilFileDataForum.php.
References $pos_id.
Referenced by createZipFile(), deliverZipFile(), and getFilesOfPost().
ilFileDataForum::ilClone | ( | int | $a_new_obj_id, |
int | $a_new_pos_id | ||
) |
Definition at line 157 of file class.ilFileDataForum.php.
References getFilesOfPost(), and getForumPath().
Referenced by ilObjForum\update().
|
private |
Definition at line 287 of file class.ilFileDataForum.php.
References ilFileData\getPath().
Referenced by __construct().
|
private |
Definition at line 297 of file class.ilFileDataForum.php.
References ilFileUtils\rename().
Referenced by storeUploadedFile().
ilFileDataForum::setPosId | ( | int | $a_id | ) |
Definition at line 63 of file class.ilFileDataForum.php.
ilFileDataForum::storeUploadedFile | ( | array | $files | ) |
Definition at line 179 of file class.ilFileDataForum.php.
References $filename, $index, $name, ilFile\$path, ilFileUtils\_sanitizeFilemame(), getForumPath(), ilFileUtils\moveUploadedFile(), and rotateFiles().
Referenced by ilObjForumGUI\createThread(), ilObjForumGUI\publishDraftObject(), and ilObjForumGUI\savePostObject().
ilFileDataForum::unlinkFile | ( | string | $a_filename | ) |
Definition at line 215 of file class.ilFileDataForum.php.
ilFileDataForum::unlinkFilesByMD5Filenames | ( | $hashedFilenameOrFilenames | ) |
string|string[] | $hashedFilenameOrFilenames |
Definition at line 248 of file class.ilFileDataForum.php.
References ilFileUtils\getDir().
|
private |
Definition at line 33 of file class.ilFileDataForum.php.
|
private |
Definition at line 32 of file class.ilFileDataForum.php.
Referenced by getForumPath().
|
private |
Definition at line 34 of file class.ilFileDataForum.php.
|
private |
Definition at line 30 of file class.ilFileDataForum.php.
Referenced by getFilesOfPost(), getForumPath(), and getObjId().
|
private |
Definition at line 31 of file class.ilFileDataForum.php.
Referenced by getFilesOfPost(), and getPosId().
|
private |
Definition at line 28 of file class.ilFileDataForum.php.