|
ILIAS
release_8 Revision v8.24
|
This class handles all operations on files for the forum object. More...
Inheritance diagram for ilFileDataForum:
Collaboration diagram for ilFileDataForum: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 () | |
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... | |
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 | |
Protected Attributes inherited from ilFile | |
| 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(), error(), FORUM_PATH, ilFileData\getPath(), and initDirectory().
Here is the call graph for this function:
|
private |
Definition at line 270 of file class.ilFileDataForum.php.
References checkReadWrite(), and getForumPath().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 280 of file class.ilFileDataForum.php.
References error().
Referenced by checkForumPath().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 333 of file class.ilFileDataForum.php.
References getFilesOfPost(), getForumPath(), getObjId(), getPosId(), ilFileUtils\makeDirParents(), and ilFileUtils\zip().
Referenced by deliverZipFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForum::delete | ( | ) |
Definition at line 168 of file class.ilFileDataForum.php.
References getForumPath(), and getObjId().
Here is the call graph for this function:| ilFileDataForum::deliverFile | ( | string | $file | ) |
Definition at line 305 of file class.ilFileDataForum.php.
References $DIC, ilFile\$path, ilFileDelivery\deliverFileLegacy(), and getFileDataByMD5Filename().
Here is the call graph for this function:| ilFileDataForum::deliverZipFile | ( | ) |
Definition at line 316 of file class.ilFileDataForum.php.
References $DIC, $post, createZipFile(), ilFileUtils\delDir(), ilFileDelivery\deliverFileLegacy(), getForumPath(), getObjId(), and getPosId().
Here is the call graph for this function:| ilFileDataForum::getFileDataByMD5Filename | ( | string | $hashedFilename | ) |
| string | $hashedFilename |
Definition at line 228 of file class.ilFileDataForum.php.
References ilFileUtils\getDir().
Referenced by deliverFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForum::getFilesOfPost | ( | ) |
Definition at line 106 of file class.ilFileDataForum.php.
References $obj_id, $pos_id, and $rest.
Referenced by createZipFile(), and ilClone().
Here is the caller graph for this function:| ilFileDataForum::getForumPath | ( | ) |
Definition at line 68 of file class.ilFileDataForum.php.
References $forum_path.
Referenced by checkForumPath(), createZipFile(), delete(), deliverZipFile(), ilClone(), and storeUploadedFile().
Here is the caller graph for this function:| ilFileDataForum::getObjId | ( | ) |
Definition at line 53 of file class.ilFileDataForum.php.
References $obj_id.
Referenced by createZipFile(), delete(), and deliverZipFile().
Here is the caller graph for this function:| ilFileDataForum::getPosId | ( | ) |
Definition at line 58 of file class.ilFileDataForum.php.
References $pos_id.
Referenced by createZipFile(), and deliverZipFile().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
|
private |
Definition at line 287 of file class.ilFileDataForum.php.
References FORUM_PATH, and ilFileData\getPath().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 297 of file class.ilFileDataForum.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:| 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 $error, $filename, $index, $name, ilFile\$path, ilFileUtils\_sanitizeFilemame(), getForumPath(), ilFileUtils\moveUploadedFile(), and rotateFiles().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
|
private |
Definition at line 33 of file class.ilFileDataForum.php.
Referenced by storeUploadedFile().
|
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(), 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.
Referenced by __construct(), and initDirectory().