|
ILIAS
Release_3_10_x_branch Revision 61812
|
This class handles all operations on files for the forum object. More...
Inheritance diagram for ilFileDataForum:
Collaboration diagram for ilFileDataForum:Public Member Functions | |
| ilFileDataForum ($a_obj_id=0, $a_pos_id=0) | |
| Constructor call base constructors checks if directory is writable and sets the optional obj_id. | |
| getObjId () | |
| getPosId () | |
| setPosId ($a_id) | |
| getForumPath () | |
| get forum path public | |
| getFiles () | |
| getFilesOfPost () | |
| moveFilesOfPost ($a_new_frm_id=0) | |
| ilClone ($a_new_obj_id, $a_new_pos_id) | |
| delete () | |
| storeUploadedFile ($a_http_post_file) | |
| store uploaded file in filesystem | |
| unlinkFiles ($a_filenames) | |
| unlink files: expects an array of filenames e.g. | |
| unlinkFile ($a_filename) | |
| unlink one uploaded file expects a filename e.g 'foo' | |
| getAbsolutePath ($a_path) | |
| get absolute path of filename | |
| getFileDataByMD5Filename ($a_md5_filename) | |
| get file data of a specific attachment | |
| unlinkFilesByMD5Filenames ($a_md5_filename) | |
| get file data of a specific attachment | |
| checkFilesExist ($a_files) | |
| check if files exist | |
| __checkPath () | |
| __checkReadWrite () | |
| check if directory is writable overwritten method from base class private | |
| __initDirectory () | |
| init directory overwritten method public | |
| __rotateFiles ($a_path) | |
| rotate files with same name recursive method | |
Public Member Functions inherited from ilFileData | |
| ilFileData () | |
| Constructor class bas constructor and read path of directory from ilias.ini setup an mail object public. | |
| checkPath ($a_path) | |
| check if path exists and is writable | |
| getPath () | |
| get Path public | |
Public Member Functions inherited from ilFile | |
| ilFile () | |
| Constructor get ilias object public. | |
| deleteTrailingSlash ($a_path) | |
| delete trailing slash of path variables | |
Static Public Member Functions | |
| static | _getDiskSpaceUsedBy ($user_id, $as_string=false) |
| Returns the number of bytes used on the harddisk for forum attachments, by the user with the specified user id. | |
Data Fields | |
| $obj_id | |
| $pos_id | |
| $forum_path | |
This class handles all operations on files for the forum object.
Definition at line 34 of file class.ilFileDataForum.php.
| ilFileDataForum::__checkPath | ( | ) |
Definition at line 359 of file class.ilFileDataForum.php.
References __checkReadWrite(), and getForumPath().
Referenced by ilFileDataForum().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForum::__checkReadWrite | ( | ) |
check if directory is writable overwritten method from base class private
Definition at line 375 of file class.ilFileDataForum.php.
Referenced by __checkPath().
Here is the caller graph for this function:| ilFileDataForum::__initDirectory | ( | ) |
init directory overwritten method public
Definition at line 392 of file class.ilFileDataForum.php.
References ilFileData\getPath().
Referenced by ilFileDataForum().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForum::__rotateFiles | ( | $a_path | ) |
rotate files with same name recursive method
| string | filename private |
Definition at line 414 of file class.ilFileDataForum.php.
Referenced by storeUploadedFile().
Here is the caller graph for this function:
|
static |
Returns the number of bytes used on the harddisk for forum attachments, by the user with the specified user id.
| int | user id. |
Definition at line 430 of file class.ilFileDataForum.php.
References $lng, $size, ilObjFileAccess\_sizeToString(), DB_FETCHMODE_ASSOC, ilUtil\getDataDir(), and ilFileDataForum().
Here is the call graph for this function:| ilFileDataForum::checkFilesExist | ( | $a_files | ) |
check if files exist
| array | filenames to check public |
Definition at line 342 of file class.ilFileDataForum.php.
References $file.
| ilFileDataForum::delete | ( | ) |
Definition at line 195 of file class.ilFileDataForum.php.
References $file, getFiles(), getForumPath(), and getObjId().
Here is the call graph for this function:| ilFileDataForum::getAbsolutePath | ( | $a_path | ) |
get absolute path of filename
| string | relative path public |
Definition at line 272 of file class.ilFileDataForum.php.
| ilFileDataForum::getFileDataByMD5Filename | ( | $a_md5_filename | ) |
get file data of a specific attachment
| string | md5 encrypted filename public |
Definition at line 283 of file class.ilFileDataForum.php.
References $file, $files, and ilUtil\getDir().
Here is the call graph for this function:| ilFileDataForum::getFiles | ( | ) |
Definition at line 95 of file class.ilFileDataForum.php.
References $file, $files, $obj_id, $rest, and ilFormat\formatDate().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForum::getFilesOfPost | ( | ) |
Definition at line 122 of file class.ilFileDataForum.php.
References $file, $files, $obj_id, $pos_id, $rest, ilFormat\formatDate(), and getPosId().
Referenced by ilClone().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForum::getForumPath | ( | ) |
get forum path public
Definition at line 90 of file class.ilFileDataForum.php.
References $forum_path.
Referenced by __checkPath(), delete(), ilClone(), and storeUploadedFile().
Here is the caller graph for this function:| ilFileDataForum::getObjId | ( | ) |
Definition at line 73 of file class.ilFileDataForum.php.
References $obj_id.
Referenced by delete().
Here is the caller graph for this function:| ilFileDataForum::getPosId | ( | ) |
Definition at line 77 of file class.ilFileDataForum.php.
References $pos_id.
Referenced by getFilesOfPost(), and moveFilesOfPost().
Here is the caller graph for this function:| ilFileDataForum::ilClone | ( | $a_new_obj_id, | |
| $a_new_pos_id | |||
| ) |
Definition at line 186 of file class.ilFileDataForum.php.
References $file, getFilesOfPost(), and getForumPath().
Here is the call graph for this function:| ilFileDataForum::ilFileDataForum | ( | $a_obj_id = 0, |
|
$a_pos_id = 0 |
|||
| ) |
Constructor call base constructors checks if directory is writable and sets the optional obj_id.
| integereger | obj_id public |
Definition at line 58 of file class.ilFileDataForum.php.
References __checkPath(), __initDirectory(), ilFileData\getPath(), and ilFileData\ilFileData().
Referenced by _getDiskSpaceUsedBy().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForum::moveFilesOfPost | ( | $a_new_frm_id = 0 | ) |
Definition at line 154 of file class.ilFileDataForum.php.
References $file, $obj_id, $pos_id, $rest, and getPosId().
Here is the call graph for this function:| ilFileDataForum::setPosId | ( | $a_id | ) |
Definition at line 81 of file class.ilFileDataForum.php.
| ilFileDataForum::storeUploadedFile | ( | $a_http_post_file | ) |
store uploaded file in filesystem
| array | HTTP_POST_FILES public |
Definition at line 213 of file class.ilFileDataForum.php.
References __rotateFiles(), ilUtil\_sanitizeFilemame(), getForumPath(), and ilUtil\moveUploadedFile().
Referenced by ilObjForumGUI\addThreadObject(), and ilObjForumGUI\viewThreadObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForum::unlinkFile | ( | $a_filename | ) |
unlink one uploaded file expects a filename e.g 'foo'
| string | filename to delete public |
Definition at line 259 of file class.ilFileDataForum.php.
Referenced by unlinkFiles().
Here is the caller graph for this function:| ilFileDataForum::unlinkFiles | ( | $a_filenames | ) |
unlink files: expects an array of filenames e.g.
array('foo','bar')
| array | filenames to delete public |
Definition at line 239 of file class.ilFileDataForum.php.
References $file, and unlinkFile().
Here is the call graph for this function:| ilFileDataForum::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 307 of file class.ilFileDataForum.php.
References $file, $files, and ilUtil\getDir().
Here is the call graph for this function:| ilFileDataForum::$forum_path |
Definition at line 49 of file class.ilFileDataForum.php.
Referenced by getForumPath().
| ilFileDataForum::$obj_id |
Definition at line 41 of file class.ilFileDataForum.php.
Referenced by getFiles(), getFilesOfPost(), getObjId(), and moveFilesOfPost().
| ilFileDataForum::$pos_id |
Definition at line 42 of file class.ilFileDataForum.php.
Referenced by getFilesOfPost(), getPosId(), and moveFilesOfPost().