|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
This class handles all operations on files for the forum object. More...
Inheritance diagram for ilFileDataForum:
Collaboration diagram for ilFileDataForum: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. More... | |
| getObjId () | |
| getPosId () | |
| setPosId ($a_id) | |
| getForumPath () | |
| get forum path @access public More... | |
| ilClone ($a_new_obj_id, $a_new_pos_id) | |
| delete () | |
| storeUploadedFile ($files) | |
| Store uploaded files in filesystem. More... | |
| unlinkFiles ($a_filenames) | |
| unlink files: expects an array of filenames e.g. More... | |
| unlinkFile ($a_filename) | |
| unlink one uploaded file expects a filename e.g 'foo' More... | |
| getAbsolutePath ($a_path) | |
| get absolute path of filename More... | |
| getFileDataByMD5Filename ($a_md5_filename) | |
| get file data of a specific attachment More... | |
| unlinkFilesByMD5Filenames ($a_md5_filename) | |
| get file data of a specific attachment More... | |
| checkFilesExist ($a_files) | |
| check if files exist More... | |
| __checkPath () | |
| __checkReadWrite () | |
| check if directory is writable overwritten method from base class @access private More... | |
| __initDirectory () | |
| init directory overwritten method @access public More... | |
| __rotateFiles ($a_path) | |
| rotate files with same name recursive method More... | |
| deliverFile ($file) | |
Public Member Functions inherited from ilFileData | |
| __construct () | |
| Constructor class bas constructor and read path of directory from ilias.ini setup an mail object @access public. More... | |
| checkPath ($a_path) | |
| check if path exists and is writable More... | |
| getPath () | |
| get Path @access public More... | |
Public Member Functions inherited from ilFile | |
| __construct () | |
| Constructor get ilias object @access public. More... | |
| deleteTrailingSlash ($a_path) | |
| delete trailing slash of path variables More... | |
Data Fields | |
| $obj_id | |
| $pos_id | |
| $forum_path | |
Data Fields inherited from ilFile | |
| $path | |
| $ilias | |
Protected Member Functions | |
| createZipFile () | |
This class handles all operations on files for the forum object.
Definition at line 15 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 @access public |
Definition at line 39 of file class.ilFileDataForum.php.
References __checkPath(), and __initDirectory().
Here is the call graph for this function:| ilFileDataForum::__checkPath | ( | ) |
Definition at line 385 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:| ilFileDataForum::__checkReadWrite | ( | ) |
check if directory is writable overwritten method from base class @access private
Definition at line 401 of file class.ilFileDataForum.php.
Referenced by __checkPath().
Here is the caller graph for this function:| ilFileDataForum::__initDirectory | ( | ) |
init directory overwritten method @access public
Definition at line 418 of file class.ilFileDataForum.php.
References ilFileData\getPath().
Referenced by __construct().
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 @access private |
Definition at line 440 of file class.ilFileDataForum.php.
References __rotateFiles().
Referenced by __rotateFiles(), and storeUploadedFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForum::checkFilesExist | ( | $a_files | ) |
check if files exist
| array | filenames to check @access public |
Definition at line 368 of file class.ilFileDataForum.php.
References $file.
|
protected |
Definition at line 494 of file class.ilFileDataForum.php.
References $file, getForumPath(), getObjId(), getPosId(), ilUtil\makeDirParents(), and ilUtil\zip().
Here is the call graph for this function:| ilFileDataForum::delete | ( | ) |
Definition at line 196 of file class.ilFileDataForum.php.
References $file, getForumPath(), and getObjId().
Here is the call graph for this function:| ilFileDataForum::deliverFile | ( | $file | ) |
| $file |
Definition at line 454 of file class.ilFileDataForum.php.
References ilFile\$path, ilUtil\deliverFile(), getFileDataByMD5Filename(), and ilUtil\sendFailure().
Here is the call graph for this function:| ilFileDataForum::getAbsolutePath | ( | $a_path | ) |
get absolute path of filename
| string | relative path @access 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 @access public |
Definition at line 309 of file class.ilFileDataForum.php.
References $file, $files, and ilUtil\getDir().
Referenced by deliverFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForum::getForumPath | ( | ) |
get forum path @access public
Definition at line 71 of file class.ilFileDataForum.php.
References $forum_path.
Referenced by __checkPath(), createZipFile(), delete(), ilClone(), and storeUploadedFile().
Here is the caller graph for this function:| ilFileDataForum::getObjId | ( | ) |
Definition at line 54 of file class.ilFileDataForum.php.
References $obj_id.
Referenced by createZipFile(), and delete().
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().
Here is the caller graph for this function:| ilFileDataForum::ilClone | ( | $a_new_obj_id, | |
| $a_new_pos_id | |||
| ) |
Definition at line 187 of file class.ilFileDataForum.php.
References $file, and getForumPath().
Here is the call graph for this function:| ilFileDataForum::setPosId | ( | $a_id | ) |
Definition at line 62 of file class.ilFileDataForum.php.
| ilFileDataForum::storeUploadedFile | ( | $files | ) |
Store uploaded files in filesystem.
| array | $files | Copy of $_FILES array, @access public |
Definition at line 217 of file class.ilFileDataForum.php.
References $error, $filename, $files, ilFile\$path, __rotateFiles(), ilUtil\_sanitizeFilemame(), getForumPath(), and ilUtil\moveUploadedFile().
Here is the call graph for this function:| ilFileDataForum::unlinkFile | ( | $a_filename | ) |
unlink one uploaded file expects a filename e.g 'foo'
| string | filename to delete @access public |
Definition at line 285 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 @access public |
Definition at line 265 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 @access public |
Definition at line 333 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 30 of file class.ilFileDataForum.php.
Referenced by getForumPath().
| ilFileDataForum::$obj_id |
Definition at line 22 of file class.ilFileDataForum.php.
Referenced by getObjId().
| ilFileDataForum::$pos_id |
Definition at line 23 of file class.ilFileDataForum.php.
Referenced by getPosId().