ILIAS
Release_5_0_x_branch Revision 61816
|
This class handles all operations on files for the forum object. More...
Public Member Functions | |
__construct ($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 | |
ilClone ($a_new_obj_id, $a_new_pos_id) | |
delete () | |
storeUploadedFile ($files) | |
Store uploaded files 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 |
Data Fields | |
$obj_id | |
$pos_id | |
$forum_path |
This class handles all operations on files for the forum object.
Definition at line 14 of file class.ilFileDataForum.php.
ilFileDataForum::__construct | ( | $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 38 of file class.ilFileDataForum.php.
References __checkPath(), __initDirectory(), and ilFileData\getPath().
ilFileDataForum::__checkPath | ( | ) |
Definition at line 385 of file class.ilFileDataForum.php.
References __checkReadWrite(), and getForumPath().
Referenced by __construct().
ilFileDataForum::__checkReadWrite | ( | ) |
check if directory is writable overwritten method from base class private
Definition at line 401 of file class.ilFileDataForum.php.
Referenced by __checkPath().
ilFileDataForum::__initDirectory | ( | ) |
init directory overwritten method public
Definition at line 418 of file class.ilFileDataForum.php.
References ilFileData\getPath().
Referenced by __construct().
ilFileDataForum::__rotateFiles | ( | $a_path | ) |
rotate files with same name recursive method
string | filename private |
Definition at line 440 of file class.ilFileDataForum.php.
Referenced by storeUploadedFile().
ilFileDataForum::checkFilesExist | ( | $a_files | ) |
check if files exist
array | filenames to check public |
Definition at line 368 of file class.ilFileDataForum.php.
ilFileDataForum::delete | ( | ) |
Definition at line 192 of file class.ilFileDataForum.php.
References $file, getForumPath(), and getObjId().
ilFileDataForum::getAbsolutePath | ( | $a_path | ) |
get absolute path of filename
string | relative path public |
Definition at line 298 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 309 of file class.ilFileDataForum.php.
References ilUtil\getDir().
ilFileDataForum::getForumPath | ( | ) |
get forum path public
Definition at line 70 of file class.ilFileDataForum.php.
References $forum_path.
Referenced by __checkPath(), delete(), ilClone(), and storeUploadedFile().
ilFileDataForum::getObjId | ( | ) |
Definition at line 53 of file class.ilFileDataForum.php.
References $obj_id.
Referenced by delete().
ilFileDataForum::getPosId | ( | ) |
Definition at line 57 of file class.ilFileDataForum.php.
References $pos_id.
ilFileDataForum::ilClone | ( | $a_new_obj_id, | |
$a_new_pos_id | |||
) |
Definition at line 183 of file class.ilFileDataForum.php.
References getForumPath().
ilFileDataForum::setPosId | ( | $a_id | ) |
Definition at line 61 of file class.ilFileDataForum.php.
ilFileDataForum::storeUploadedFile | ( | $files | ) |
Store uploaded files in filesystem.
array | $files | Copy of $_FILES array, public |
Definition at line 213 of file class.ilFileDataForum.php.
References $filename, ilFile\$path, __rotateFiles(), ilUtil\_sanitizeFilemame(), getForumPath(), and ilUtil\moveUploadedFile().
ilFileDataForum::unlinkFile | ( | $a_filename | ) |
unlink one uploaded file expects a filename e.g 'foo'
string | filename to delete public |
Definition at line 285 of file class.ilFileDataForum.php.
Referenced by unlinkFiles().
ilFileDataForum::unlinkFiles | ( | $a_filenames | ) |
unlink files: expects an array of filenames e.g.
array('foo','bar')
array | filenames to delete public |
Definition at line 265 of file class.ilFileDataForum.php.
References $file, and unlinkFile().
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 333 of file class.ilFileDataForum.php.
References ilUtil\getDir().
ilFileDataForum::$forum_path |
Definition at line 29 of file class.ilFileDataForum.php.
Referenced by getForumPath().
ilFileDataForum::$obj_id |
Definition at line 21 of file class.ilFileDataForum.php.
Referenced by getObjId().
ilFileDataForum::$pos_id |
Definition at line 22 of file class.ilFileDataForum.php.
Referenced by getPosId().