|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
This class handles all operations on files for the drafts of a forum object. More...
Inheritance diagram for ilFileDataForumDrafts:
Collaboration diagram for ilFileDataForumDrafts:Public Member Functions | |
| __construct ($obj_id=0, $draft_id) | |
| getObjId () | |
| setObjId ($obj_id) | |
| getDraftId () | |
| setDraftId ($draft_id) | |
| getDraftsPath () | |
| moveFilesOfDraft ($forum_path, $new_post_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) | |
| createZipFile () | |
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... | |
Protected Attributes | |
| $obj_id = 0 | |
| $draft_id = 0 | |
| $drafts_path = '' | |
Additional Inherited Members | |
Data Fields inherited from ilFile | |
| $path | |
| $ilias | |
This class handles all operations on files for the drafts of a forum object.
Definition at line 14 of file class.ilFileDataForumDrafts.php.
| ilFileDataForumDrafts::__construct | ( | $obj_id = 0, |
|
| $draft_id | |||
| ) |
Definition at line 20 of file class.ilFileDataForumDrafts.php.
References $draft_id, $obj_id, __checkPath(), and __initDirectory().
Here is the call graph for this function:| ilFileDataForumDrafts::__checkPath | ( | ) |
Definition at line 337 of file class.ilFileDataForumDrafts.php.
References __checkReadWrite(), getDraftId(), and getDraftsPath().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForumDrafts::__checkReadWrite | ( | ) |
check if directory is writable overwritten method from base class @access private
Definition at line 353 of file class.ilFileDataForumDrafts.php.
References getDraftId(), and getDraftsPath().
Referenced by __checkPath().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForumDrafts::__initDirectory | ( | ) |
init directory overwritten method @access public
Definition at line 370 of file class.ilFileDataForumDrafts.php.
References getDraftId(), getDraftsPath(), ilFileData\getPath(), and ilUtil\makeDirParents().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForumDrafts::__rotateFiles | ( | $a_path | ) |
rotate files with same name recursive method
| string | filename @access private |
Definition at line 391 of file class.ilFileDataForumDrafts.php.
References __rotateFiles().
Referenced by __rotateFiles(), and storeUploadedFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForumDrafts::checkFilesExist | ( | $a_files | ) |
check if files exist
| array | filenames to check @access public |
Definition at line 320 of file class.ilFileDataForumDrafts.php.
References $file, getDraftId(), and getDraftsPath().
Here is the call graph for this function:| ilFileDataForumDrafts::createZipFile | ( | ) |
Definition at line 443 of file class.ilFileDataForumDrafts.php.
References $file, getDraftId(), getDraftsPath(), ilUtil\makeDirParents(), and ilUtil\zip().
Here is the call graph for this function:| ilFileDataForumDrafts::delete | ( | ) |
Definition at line 150 of file class.ilFileDataForumDrafts.php.
References ilUtil\delDir(), getDraftId(), and getDraftsPath().
Here is the call graph for this function:| ilFileDataForumDrafts::deliverFile | ( | $file | ) |
| $file | $_GET['file'] |
Definition at line 405 of file class.ilFileDataForumDrafts.php.
References $lng, ilFile\$path, ilUtil\deliverFile(), getFileDataByMD5Filename(), and ilUtil\sendFailure().
Here is the call graph for this function:| ilFileDataForumDrafts::getAbsolutePath | ( | $a_path | ) |
get absolute path of filename
| string | relative path @access public |
Definition at line 250 of file class.ilFileDataForumDrafts.php.
References getDraftId(), and getDraftsPath().
Here is the call graph for this function:| ilFileDataForumDrafts::getDraftId | ( | ) |
Definition at line 55 of file class.ilFileDataForumDrafts.php.
References $draft_id.
Referenced by __checkPath(), __checkReadWrite(), __initDirectory(), checkFilesExist(), createZipFile(), delete(), getAbsolutePath(), getFileDataByMD5Filename(), storeUploadedFile(), unlinkFile(), and unlinkFilesByMD5Filenames().
Here is the caller graph for this function:| ilFileDataForumDrafts::getDraftsPath | ( | ) |
Definition at line 71 of file class.ilFileDataForumDrafts.php.
References $drafts_path.
Referenced by __checkPath(), __checkReadWrite(), __initDirectory(), checkFilesExist(), createZipFile(), delete(), getAbsolutePath(), getFileDataByMD5Filename(), storeUploadedFile(), unlinkFile(), and unlinkFilesByMD5Filenames().
Here is the caller graph for this function:| ilFileDataForumDrafts::getFileDataByMD5Filename | ( | $a_md5_filename | ) |
get file data of a specific attachment
| string | md5 encrypted filename @access public |
Definition at line 261 of file class.ilFileDataForumDrafts.php.
References $file, $files, ilUtil\getDir(), getDraftId(), and getDraftsPath().
Referenced by deliverFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForumDrafts::getObjId | ( | ) |
| ilFileDataForumDrafts::moveFilesOfDraft | ( | $forum_path, | |
| $new_post_id | |||
| ) |
| ilFileDataForumDrafts::setDraftId | ( | $draft_id | ) |
| int | $draft_id |
Definition at line 63 of file class.ilFileDataForumDrafts.php.
References $draft_id.
| ilFileDataForumDrafts::setObjId | ( | $obj_id | ) |
| int | $obj_id |
Definition at line 47 of file class.ilFileDataForumDrafts.php.
References $obj_id.
| ilFileDataForumDrafts::storeUploadedFile | ( | $files | ) |
Store uploaded files in filesystem.
| array | $files | Copy of $_FILES array, @access public |
Definition at line 165 of file class.ilFileDataForumDrafts.php.
References $error, $filename, $files, ilFile\$path, __rotateFiles(), ilUtil\_sanitizeFilemame(), getDraftId(), getDraftsPath(), and ilUtil\moveUploadedFile().
Here is the call graph for this function:| ilFileDataForumDrafts::unlinkFile | ( | $a_filename | ) |
unlink one uploaded file expects a filename e.g 'foo'
| string | filename to delete @access public |
Definition at line 237 of file class.ilFileDataForumDrafts.php.
References getDraftId(), and getDraftsPath().
Referenced by unlinkFiles().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForumDrafts::unlinkFiles | ( | $a_filenames | ) |
unlink files: expects an array of filenames e.g.
array('foo','bar')
| array | filenames to delete @access public |
Definition at line 217 of file class.ilFileDataForumDrafts.php.
References $file, and unlinkFile().
Here is the call graph for this function:| ilFileDataForumDrafts::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 285 of file class.ilFileDataForumDrafts.php.
References $file, $files, ilUtil\getDir(), getDraftId(), and getDraftsPath().
Here is the call graph for this function:
|
protected |
Definition at line 17 of file class.ilFileDataForumDrafts.php.
Referenced by __construct(), getDraftId(), and setDraftId().
|
protected |
Definition at line 18 of file class.ilFileDataForumDrafts.php.
Referenced by getDraftsPath().
|
protected |
Definition at line 16 of file class.ilFileDataForumDrafts.php.
Referenced by __construct(), getObjId(), and setObjId().