ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Public Member Functions | |
__construct () | |
useLangVariablesAsFallback (bool $a_status) | |
areLangVariablesUsedAsFallback () | |
shouldAttachConfiguredFiles () | |
setAttachConfiguredFiles (bool $attach_configured_files) | |
setUserPassword (string $a_pwd) | |
getUserPassword () | |
setUser (ilObjUser $a_user) | |
setPermanentLinkTarget (?string $permanent_link_target) | |
getUser () | |
reset () | |
send () | |
Sends the mail with its object properties as MimeMail It first tries to read the mail body, subject and sender address from posted named formular fields. More... | |
replacePlaceholders (string $a_string, ilObjUser $a_user, array $a_amail, string $a_lang) | |
addAttachment (string $a_filename, string $a_display_name) | |
Data Fields | |
string | $u_password = '' |
ilObjUser | $user = null |
Private Member Functions | |
ensureValidMailDataShape (array $mail_data) | |
readAccountMail (string $a_lang) | |
addAttachments (array $mail_data) | |
Private Attributes | |
readonly ilSetting | $settings |
readonly ilTree | $repository_tree |
readonly ilMailMimeSenderFactory | $sender_factory |
bool | $lang_variables_as_fallback = false |
array | $attachments = [] |
bool | $attach_configured_files = false |
array | $amail = [] |
string | $permanent_link_target = null |
Definition at line 24 of file class.ilAccountMail.php.
ilAccountMail::__construct | ( | ) |
Definition at line 38 of file class.ilAccountMail.php.
References $DIC, and ILIAS\Repository\settings().
ilAccountMail::addAttachment | ( | string | $a_filename, |
string | $a_display_name | ||
) |
Definition at line 311 of file class.ilAccountMail.php.
Referenced by addAttachments().
|
private |
array{lang? | string, subject?: string, body?: string, sal_f?: string, sal_g?: string, sal_m?: string, type?: string, att_file?: string} $mail_data |
Definition at line 146 of file class.ilAccountMail.php.
References addAttachment(), shouldAttachConfiguredFiles(), and USER_FOLDER_ID.
Referenced by send().
ilAccountMail::areLangVariablesUsedAsFallback | ( | ) |
Definition at line 51 of file class.ilAccountMail.php.
References $lang_variables_as_fallback.
Referenced by send().
|
private |
array{lang? | string, subject?: string, body?: string, sal_f?: string, sal_g?: string, sal_m?: string, type?: string, att_file?: string} $mail_data |
Definition at line 115 of file class.ilAccountMail.php.
Referenced by readAccountMail().
ilAccountMail::getUser | ( | ) |
Definition at line 99 of file class.ilAccountMail.php.
References $user.
Referenced by send().
ilAccountMail::getUserPassword | ( | ) |
Definition at line 71 of file class.ilAccountMail.php.
References $u_password.
Referenced by replacePlaceholders().
|
private |
Definition at line 132 of file class.ilAccountMail.php.
References ilObjUserFolder\_lookupNewAccountMail(), and ensureValidMailDataShape().
Referenced by send().
ilAccountMail::replacePlaceholders | ( | string | $a_string, |
ilObjUser | $a_user, | ||
array | $a_amail, | ||
string | $a_lang | ||
) |
Definition at line 245 of file class.ilAccountMail.php.
References $DIC, $permanent_link_target, ilLanguage\_lookupEntry(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), CLIENT_ID, CLIENT_NAME, ilDatePresentation\formatPeriod(), ilObjUser\getEmail(), ilObjUser\getFirstname(), ilObjUser\getGender(), ilObjUser\getLastname(), ilObjUser\getLogin(), ilObjUser\getTimeLimitFrom(), ilObjUser\getTimeLimitUnlimited(), ilObjUser\getTimeLimitUntil(), getUserPassword(), IL_CAL_UNIX, and null.
Referenced by send().
ilAccountMail::reset | ( | ) |
Definition at line 104 of file class.ilAccountMail.php.
References null, and ILIAS\Repository\user().
ilAccountMail::send | ( | ) |
Sends the mail with its object properties as MimeMail It first tries to read the mail body, subject and sender address from posted named formular fields.
If no field values found the defaults are used. Placehoders will be replaced by the appropriate data.
Definition at line 173 of file class.ilAccountMail.php.
References $filename, $lang, addAttachments(), areLangVariablesUsedAsFallback(), ilObjUser\checkTimeLimit(), CLIENT_ID, ilDatePresentation\formatPeriod(), ilObjUser\getEmail(), ilObjUser\getFullname(), ilObjUser\getLanguage(), ilObjUser\getLogin(), ilObjUser\getTimeLimitFrom(), ilObjUser\getTimeLimitUntil(), getUser(), IL_CAL_UNIX, readAccountMail(), replacePlaceholders(), and ILIAS\Repository\settings().
ilAccountMail::setAttachConfiguredFiles | ( | bool | $attach_configured_files | ) |
Definition at line 61 of file class.ilAccountMail.php.
References $attach_configured_files.
ilAccountMail::setPermanentLinkTarget | ( | ?string | $permanent_link_target | ) |
Definition at line 88 of file class.ilAccountMail.php.
References $permanent_link_target.
ilAccountMail::setUser | ( | ilObjUser | $a_user | ) |
Definition at line 76 of file class.ilAccountMail.php.
References ilObject\getId(), and ILIAS\Repository\user().
ilAccountMail::setUserPassword | ( | string | $a_pwd | ) |
Definition at line 66 of file class.ilAccountMail.php.
ilAccountMail::shouldAttachConfiguredFiles | ( | ) |
Definition at line 56 of file class.ilAccountMail.php.
References $attach_configured_files.
Referenced by addAttachments().
ilAccountMail::useLangVariablesAsFallback | ( | bool | $a_status | ) |
Definition at line 46 of file class.ilAccountMail.php.
|
private |
Definition at line 35 of file class.ilAccountMail.php.
|
private |
Definition at line 34 of file class.ilAccountMail.php.
Referenced by setAttachConfiguredFiles(), and shouldAttachConfiguredFiles().
|
private |
Definition at line 33 of file class.ilAccountMail.php.
|
private |
Definition at line 31 of file class.ilAccountMail.php.
Referenced by areLangVariablesUsedAsFallback().
|
private |
Definition at line 36 of file class.ilAccountMail.php.
Referenced by replacePlaceholders(), and setPermanentLinkTarget().
|
private |
Definition at line 27 of file class.ilAccountMail.php.
|
private |
Definition at line 28 of file class.ilAccountMail.php.
|
private |
Definition at line 26 of file class.ilAccountMail.php.
string ilAccountMail::$u_password = '' |
Definition at line 29 of file class.ilAccountMail.php.
Referenced by getUserPassword().
Definition at line 30 of file class.ilAccountMail.php.
Referenced by getUser().