|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Inheritance diagram for ilFileDataMail:
Collaboration diagram for ilFileDataMail:Public Member Functions | |
| __construct (public int $user_id=0) | |
| initDirectory () | |
| getUploadLimit () | |
| getAttachmentsTotalSizeLimit () | |
| getMailPath () | |
| getAbsoluteAttachmentPoolPathPrefix () | |
| getAttachmentPathAndFilenameByMd5Hash (string $md5FileHash, int $mail_id) | |
| getAttachmentPath (string $a_filename, int $a_mail_id) | |
| adoptAttachments (array $a_attachments, int $a_mail_id) | |
| checkReadWrite () | |
| getUserFilesData () | |
| storeAsAttachment (string $a_filename, string $a_content) | |
| storeUploadedFile (array $file) | |
| copyAttachmentFile (string $a_abs_path, string $a_new_name) | |
| unlinkFiles (array $a_filenames) | |
| unlinkFile (string $a_filename) | |
| getAbsoluteAttachmentPoolPathByFilename (string $filename) | |
| Resolves a path for a passed filename in regards of a user's mail attachment pool, meaning attachments not being sent. More... | |
| saveFiles (int $a_mail_id, array $a_attachments) | |
| Saves all attachment files in a specific mail directory .../mail/<calculated_path>/mail_<mail_id>_<user_id>/... More... | |
| saveFile (int $a_mail_id, string $a_attachment) | |
| Save attachment file in a specific mail directory .../mail/<calculated_path>/mail_<mail_id>_<user_id>/... More... | |
| checkFilesExist (array $a_files) | |
| assignAttachmentsToDirectory (int $a_mail_id, int $a_sent_mail_id) | |
| deassignAttachmentFromDirectory (int $a_mail_id) | |
| deliverAttachmentsAsZip (string $basename, int $mail_id, array $files=[], bool $is_draft=false) | |
Public Member Functions inherited from ilFileData | |
| __construct () | |
| checkPath (string $a_path) | |
| getPath () | |
Public Member Functions inherited from ilFile | |
| deleteTrailingSlash (string $a_path) | |
| delete trailing slash of path variables More... | |
Static Public Member Functions | |
| static | getStorage (int $a_mail_id, int $a_usr_id) |
Data Fields | |
| string | $mail_path |
Protected Member Functions | |
| initAttachmentMaxUploadSize () | |
Protected Attributes | |
| int | $mail_max_upload_file_size |
| Filesystem | $tmp_directory |
| Filesystem | $storage_directory |
| ilDBInterface | $db |
| ILIAS | $ilias |
Protected Attributes inherited from ilFile | |
| string | $path |
Private Member Functions | |
| getAttachmentPathByMailId (int $mail_id) | |
| rotateFiles (string $a_path) | |
| deleteAttachmentDirectory (string $a_rel_path) | |
Definition at line 24 of file class.ilFileDataMail.php.
| ilFileDataMail::__construct | ( | public int | $user_id = 0 | ) |
Definition at line 33 of file class.ilFileDataMail.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), checkReadWrite(), ilFileData\getPath(), initAttachmentMaxUploadSize(), and MAILPATH.
Here is the call graph for this function:| ilFileDataMail::adoptAttachments | ( | array | $a_attachments, |
| int | $a_mail_id | ||
| ) |
| list<string> | $a_attachments |
Definition at line 150 of file class.ilFileDataMail.php.
References ilFile\$path, getAttachmentPath(), and getMailPath().
Here is the call graph for this function:| ilFileDataMail::assignAttachmentsToDirectory | ( | int | $a_mail_id, |
| int | $a_sent_mail_id | ||
| ) |
Definition at line 379 of file class.ilFileDataMail.php.
References getStorage().
Here is the call graph for this function:| ilFileDataMail::checkFilesExist | ( | array | $a_files | ) |
| list<string> | $a_files |
Definition at line 366 of file class.ilFileDataMail.php.
| ilFileDataMail::checkReadWrite | ( | ) |
Definition at line 162 of file class.ilFileDataMail.php.
Referenced by __construct().
Here is the caller graph for this function:| ilFileDataMail::copyAttachmentFile | ( | string | $a_abs_path, |
| string | $a_new_name | ||
| ) |
Definition at line 271 of file class.ilFileDataMail.php.
References getMailPath().
Here is the call graph for this function:| ilFileDataMail::deassignAttachmentFromDirectory | ( | int | $a_mail_id | ) |
Definition at line 391 of file class.ilFileDataMail.php.
References ilFile\$path, $res, deleteAttachmentDirectory(), and ILIAS\Repository\int().
Here is the call graph for this function:
|
private |
Definition at line 427 of file class.ilFileDataMail.php.
References ilFileUtils\delDir().
Referenced by deassignAttachmentFromDirectory().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataMail::deliverAttachmentsAsZip | ( | string | $basename, |
| int | $mail_id, | ||
| array | $files = [], |
||
| bool | $is_draft = false |
||
| ) |
| list<string> | $files |
Definition at line 545 of file class.ilFileDataMail.php.
References ilFile\$path, and getAttachmentPathByMailId().
Here is the call graph for this function:| ilFileDataMail::getAbsoluteAttachmentPoolPathByFilename | ( | string | $filename | ) |
Resolves a path for a passed filename in regards of a user's mail attachment pool, meaning attachments not being sent.
Definition at line 315 of file class.ilFileDataMail.php.
References $filename, and getAbsoluteAttachmentPoolPathPrefix().
Here is the call graph for this function:| ilFileDataMail::getAbsoluteAttachmentPoolPathPrefix | ( | ) |
Definition at line 83 of file class.ilFileDataMail.php.
Referenced by getAbsoluteAttachmentPoolPathByFilename().
Here is the caller graph for this function:| ilFileDataMail::getAttachmentPath | ( | string | $a_filename, |
| int | $a_mail_id | ||
| ) |
Definition at line 136 of file class.ilFileDataMail.php.
References ilFile\$path, getAttachmentPathByMailId(), and getMailPath().
Referenced by adoptAttachments().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataMail::getAttachmentPathAndFilenameByMd5Hash | ( | string | $md5FileHash, |
| int | $mail_id | ||
| ) |
| OutOfBoundsException |
Definition at line 92 of file class.ilFileDataMail.php.
References ilFile\$path, $res, ilFileUtils\getDir(), and getMailPath().
Here is the call graph for this function:
|
private |
Definition at line 123 of file class.ilFileDataMail.php.
Referenced by deliverAttachmentsAsZip(), and getAttachmentPath().
Here is the caller graph for this function:| ilFileDataMail::getAttachmentsTotalSizeLimit | ( | ) |
Definition at line 68 of file class.ilFileDataMail.php.
| ilFileDataMail::getMailPath | ( | ) |
Definition at line 78 of file class.ilFileDataMail.php.
References $mail_path.
Referenced by adoptAttachments(), copyAttachmentFile(), getAttachmentPath(), getAttachmentPathAndFilenameByMd5Hash(), storeAsAttachment(), and storeUploadedFile().
Here is the caller graph for this function:
|
static |
Definition at line 335 of file class.ilFileDataMail.php.
Referenced by assignAttachmentsToDirectory(), and saveFile().
Here is the caller graph for this function:| ilFileDataMail::getUploadLimit | ( | ) |
Definition at line 63 of file class.ilFileDataMail.php.
References $mail_max_upload_file_size.
Referenced by storeAsAttachment().
Here is the caller graph for this function:| ilFileDataMail::getUserFilesData | ( | ) |
Definition at line 180 of file class.ilFileDataMail.php.
|
protected |
Definition at line 432 of file class.ilFileDataMail.php.
References ILIAS\Repository\int(), and PREG_SPLIT_DELIM_CAPTURE.
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataMail::initDirectory | ( | ) |
Definition at line 51 of file class.ilFileDataMail.php.
References ilFileData\getPath(), and MAILPATH.
Here is the call graph for this function:
|
private |
Definition at line 278 of file class.ilFileDataMail.php.
References ilFileUtils\rename(), and rotateFiles().
Referenced by rotateFiles(), storeAsAttachment(), and storeUploadedFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataMail::saveFile | ( | int | $a_mail_id, |
| string | $a_attachment | ||
| ) |
Save attachment file in a specific mail directory .../mail/<calculated_path>/mail_<mail_id>_<user_id>/...
Definition at line 347 of file class.ilFileDataMail.php.
References $storage_directory, and getStorage().
Referenced by saveFiles().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileDataMail::saveFiles | ( | int | $a_mail_id, |
| array | $a_attachments | ||
| ) |
Saves all attachment files in a specific mail directory .../mail/<calculated_path>/mail_<mail_id>_<user_id>/...
| list<string> | $a_attachments |
Definition at line 324 of file class.ilFileDataMail.php.
References saveFile().
Here is the call graph for this function:| ilFileDataMail::storeAsAttachment | ( | string | $a_filename, |
| string | $a_content | ||
| ) |
Definition at line 212 of file class.ilFileDataMail.php.
References ilFileUtils\_sanitizeFilemame(), getMailPath(), getUploadLimit(), and rotateFiles().
Here is the call graph for this function:| ilFileDataMail::storeUploadedFile | ( | array | $file | ) |
| array{name:string,tmp_name:string} | $file |
Definition at line 256 of file class.ilFileDataMail.php.
References ilFileUtils\_sanitizeFilemame(), getMailPath(), ilFileUtils\moveUploadedFile(), and rotateFiles().
Here is the call graph for this function:| ilFileDataMail::unlinkFile | ( | string | $a_filename | ) |
Definition at line 302 of file class.ilFileDataMail.php.
Referenced by unlinkFiles().
Here is the caller graph for this function:| ilFileDataMail::unlinkFiles | ( | array | $a_filenames | ) |
| list<string> | $a_filenames |
Definition at line 291 of file class.ilFileDataMail.php.
References unlinkFile().
Here is the call graph for this function:
|
protected |
Definition at line 30 of file class.ilFileDataMail.php.
|
protected |
Definition at line 31 of file class.ilFileDataMail.php.
|
protected |
Definition at line 27 of file class.ilFileDataMail.php.
Referenced by getUploadLimit().
| string ilFileDataMail::$mail_path |
Definition at line 26 of file class.ilFileDataMail.php.
Referenced by getMailPath().
|
protected |
Definition at line 29 of file class.ilFileDataMail.php.
Referenced by saveFile().
|
protected |
Definition at line 28 of file class.ilFileDataMail.php.