ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
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 (UploadResult $result) | |
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) | |
![]() | |
__construct () | |
checkPath (string $a_path) | |
getPath () | |
![]() | |
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 |
![]() | |
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.
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().
ilFileDataMail::assignAttachmentsToDirectory | ( | int | $a_mail_id, |
int | $a_sent_mail_id | ||
) |
Definition at line 378 of file class.ilFileDataMail.php.
ilFileDataMail::checkFilesExist | ( | array | $a_files | ) |
list<string> | $a_files |
Definition at line 365 of file class.ilFileDataMail.php.
ilFileDataMail::checkReadWrite | ( | ) |
Definition at line 162 of file class.ilFileDataMail.php.
Referenced by __construct().
ilFileDataMail::copyAttachmentFile | ( | string | $a_abs_path, |
string | $a_new_name | ||
) |
Definition at line 270 of file class.ilFileDataMail.php.
References getMailPath().
ilFileDataMail::deassignAttachmentFromDirectory | ( | int | $a_mail_id | ) |
Definition at line 390 of file class.ilFileDataMail.php.
References ilFile\$path, $res, deleteAttachmentDirectory(), and ILIAS\Repository\int().
|
private |
Definition at line 426 of file class.ilFileDataMail.php.
References ilFileUtils\delDir().
Referenced by deassignAttachmentFromDirectory().
ilFileDataMail::deliverAttachmentsAsZip | ( | string | $basename, |
int | $mail_id, | ||
array | $files = [] , |
||
bool | $is_draft = false |
||
) |
list<string> | $files |
Definition at line 544 of file class.ilFileDataMail.php.
References $filename, ilFile\$path, ilFileDelivery\deliverFileAttached(), getAbsoluteAttachmentPoolPathByFilename(), ilFileUtils\getASCIIFilename(), getAttachmentPathByMailId(), ilFileUtils\getValidFilename(), ilFileUtils\ilTempnam(), MAILPATH, and ilFileUtils\zip().
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 314 of file class.ilFileDataMail.php.
References $filename, and getAbsoluteAttachmentPoolPathPrefix().
Referenced by deliverAttachmentsAsZip().
ilFileDataMail::getAbsoluteAttachmentPoolPathPrefix | ( | ) |
Definition at line 83 of file class.ilFileDataMail.php.
Referenced by getAbsoluteAttachmentPoolPathByFilename().
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().
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().
Referenced by ilMailFolderGUI\deliverFile().
|
private |
Definition at line 123 of file class.ilFileDataMail.php.
Referenced by deliverAttachmentsAsZip(), and getAttachmentPath().
ilFileDataMail::getAttachmentsTotalSizeLimit | ( | ) |
Definition at line 68 of file class.ilFileDataMail.php.
References null.
ilFileDataMail::getMailPath | ( | ) |
Definition at line 78 of file class.ilFileDataMail.php.
References $mail_path.
Referenced by adoptAttachments(), copyAttachmentFile(), getAttachmentPath(), getAttachmentPathAndFilenameByMd5Hash(), initAttachmentMaxUploadSize(), storeAsAttachment(), and storeUploadedFile().
|
static |
Definition at line 334 of file class.ilFileDataMail.php.
ilFileDataMail::getUploadLimit | ( | ) |
Definition at line 63 of file class.ilFileDataMail.php.
References $mail_max_upload_file_size.
Referenced by storeAsAttachment().
ilFileDataMail::getUserFilesData | ( | ) |
Definition at line 180 of file class.ilFileDataMail.php.
References $user_id.
|
protected |
Definition at line 431 of file class.ilFileDataMail.php.
References ilFile\$path, $res, getMailPath(), and ILIAS\Repository\int().
Referenced by __construct().
ilFileDataMail::initDirectory | ( | ) |
Definition at line 51 of file class.ilFileDataMail.php.
References ilFileData\getPath(), and MAILPATH.
|
private |
Definition at line 277 of file class.ilFileDataMail.php.
References ilFileUtils\rename().
Referenced by storeAsAttachment(), and storeUploadedFile().
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 346 of file class.ilFileDataMail.php.
Referenced by saveFiles().
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 323 of file class.ilFileDataMail.php.
References saveFile().
ilFileDataMail::storeAsAttachment | ( | string | $a_filename, |
string | $a_content | ||
) |
Definition at line 212 of file class.ilFileDataMail.php.
References ilFileUtils\_sanitizeFilemame(), getMailPath(), getUploadLimit(), and rotateFiles().
ilFileDataMail::storeUploadedFile | ( | UploadResult | $result | ) |
Definition at line 253 of file class.ilFileDataMail.php.
References $filename, ilFileUtils\_sanitizeFilemame(), getMailPath(), ILIAS\FileUpload\DTO\UploadResult\getName(), ILIAS\FileUpload\DTO\UploadResult\getPath(), ilFileUtils\moveUploadedFile(), and rotateFiles().
ilFileDataMail::unlinkFile | ( | string | $a_filename | ) |
Definition at line 301 of file class.ilFileDataMail.php.
Referenced by unlinkFiles().
ilFileDataMail::unlinkFiles | ( | array | $a_filenames | ) |
list<string> | $a_filenames |
Definition at line 290 of file class.ilFileDataMail.php.
References unlinkFile().
|
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.
|
protected |
Definition at line 28 of file class.ilFileDataMail.php.