|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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) | |
| deliverZipFile () | |
| 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 = '' | |
Private Attributes | |
| $lng | |
| $error | |
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 22 of file class.ilFileDataForumDrafts.php.
References $DIC, $draft_id, $obj_id, __checkPath(), __initDirectory(), and error().
Here is the call graph for this function:| ilFileDataForumDrafts::__checkPath | ( | ) |
Definition at line 316 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 331 of file class.ilFileDataForumDrafts.php.
References error(), 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 345 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 363 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 302 of file class.ilFileDataForumDrafts.php.
References $file, getDraftId(), and getDraftsPath().
Here is the call graph for this function:| ilFileDataForumDrafts::createZipFile | ( | ) |
Definition at line 402 of file class.ilFileDataForumDrafts.php.
References $file, getDraftId(), getDraftsPath(), ilUtil\makeDirParents(), and ilUtil\zip().
Referenced by deliverZipFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataForumDrafts::delete | ( | ) |
Definition at line 152 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 376 of file class.ilFileDataForumDrafts.php.
References ilFile\$path, ilUtil\deliverFile(), getFileDataByMD5Filename(), and ilUtil\sendFailure().
Here is the call graph for this function:| ilFileDataForumDrafts::deliverZipFile | ( | ) |
Definition at line 385 of file class.ilFileDataForumDrafts.php.
References $post, createZipFile(), ilUtil\delDir(), ilUtil\deliverFile(), exit, getDraftId(), getDraftsPath(), ilForumPostDraft\newInstanceByDraftId(), 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 241 of file class.ilFileDataForumDrafts.php.
References getDraftId(), and getDraftsPath().
Here is the call graph for this function:| ilFileDataForumDrafts::getDraftId | ( | ) |
Definition at line 60 of file class.ilFileDataForumDrafts.php.
References $draft_id.
Referenced by __checkPath(), __checkReadWrite(), __initDirectory(), checkFilesExist(), createZipFile(), delete(), deliverZipFile(), getAbsolutePath(), getFileDataByMD5Filename(), storeUploadedFile(), unlinkFile(), and unlinkFilesByMD5Filenames().
Here is the caller graph for this function:| ilFileDataForumDrafts::getDraftsPath | ( | ) |
Definition at line 76 of file class.ilFileDataForumDrafts.php.
References $drafts_path.
Referenced by __checkPath(), __checkReadWrite(), __initDirectory(), checkFilesExist(), createZipFile(), delete(), deliverZipFile(), 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 252 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 68 of file class.ilFileDataForumDrafts.php.
References $draft_id.
| ilFileDataForumDrafts::setObjId | ( | $obj_id | ) |
| int | $obj_id |
Definition at line 52 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 167 of file class.ilFileDataForumDrafts.php.
References $error, $filename, $files, $index, $name, ilFile\$path, __rotateFiles(), ilUtil\_sanitizeFilemame(), getDraftId(), and getDraftsPath().
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 229 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 212 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 274 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().
|
private |
Definition at line 20 of file class.ilFileDataForumDrafts.php.
Referenced by storeUploadedFile().
|
private |
Definition at line 19 of file class.ilFileDataForumDrafts.php.
|
protected |
Definition at line 16 of file class.ilFileDataForumDrafts.php.
Referenced by __construct(), getObjId(), and setObjId().