ILIAS
release_8 Revision v8.19
|
Class ilAccountMail. More...
Public Member Functions | |
__construct () | |
useLangVariablesAsFallback (bool $a_status) | |
areLangVariablesUsedAsFallback () | |
shouldAttachConfiguredFiles () | |
setAttachConfiguredFiles (bool $attachConfiguredFiles) | |
setUserPassword (string $a_pwd) | |
getUserPassword () | |
setUser (ilObjUser $a_user) | |
getUser () | |
getTarget () | |
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 |
string | $target = '' |
Private Member Functions | |
ensureValidMailDataShape (array $mailData) | |
readAccountMail (string $a_lang) | |
addAttachments (array $mailData) | |
Private Attributes | |
GlobalHttpState | $http |
ilSetting | $settings |
Refinery | $refinery |
ilTree | $repositoryTree |
ilMailMimeSenderFactory | $senderFactory |
bool | $lang_variables_as_fallback = false |
array | $attachments = [] |
bool | $attachConfiguredFiles = false |
array | $amail = [] |
Class ilAccountMail.
Sends e-mail to newly created accounts.
Definition at line 33 of file class.ilAccountMail.php.
ilAccountMail::__construct | ( | ) |
Definition at line 49 of file class.ilAccountMail.php.
References $DIC, ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), ILIAS\Repository\repositoryTree(), and ILIAS\Repository\settings().
ilAccountMail::addAttachment | ( | string | $a_filename, |
string | $a_display_name | ||
) |
Definition at line 381 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} $mailData |
Definition at line 155 of file class.ilAccountMail.php.
References addAttachment(), shouldAttachConfiguredFiles(), and USER_FOLDER_ID.
Referenced by send().
ilAccountMail::areLangVariablesUsedAsFallback | ( | ) |
Definition at line 64 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} $mailData |
Definition at line 122 of file class.ilAccountMail.php.
References ILIAS\LTI\ToolProvider\$key.
Referenced by readAccountMail().
ilAccountMail::getTarget | ( | ) |
ilAccountMail::getUser | ( | ) |
Definition at line 101 of file class.ilAccountMail.php.
References $user.
Referenced by send().
ilAccountMail::getUserPassword | ( | ) |
Definition at line 84 of file class.ilAccountMail.php.
References $u_password.
Referenced by replacePlaceholders().
|
private |
Definition at line 139 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 252 of file class.ilAccountMail.php.
References $type, 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(), ILIAS\FileDelivery\http(), IL_CAL_UNIX, ILIAS\Repository\refinery(), ILIAS\Repository\repositoryTree(), and ILIAS\Repository\settings().
Referenced by send().
ilAccountMail::reset | ( | ) |
Definition at line 111 of file class.ilAccountMail.php.
References 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.
RuntimeException |
Definition at line 180 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 | $attachConfiguredFiles | ) |
Definition at line 74 of file class.ilAccountMail.php.
References $attachConfiguredFiles.
ilAccountMail::setUser | ( | ilObjUser | $a_user | ) |
Definition at line 89 of file class.ilAccountMail.php.
References ilObject\getId(), and ILIAS\Repository\user().
ilAccountMail::setUserPassword | ( | string | $a_pwd | ) |
Definition at line 79 of file class.ilAccountMail.php.
ilAccountMail::shouldAttachConfiguredFiles | ( | ) |
Definition at line 69 of file class.ilAccountMail.php.
References $attachConfiguredFiles.
Referenced by addAttachments().
ilAccountMail::useLangVariablesAsFallback | ( | bool | $a_status | ) |
Definition at line 59 of file class.ilAccountMail.php.
|
private |
Definition at line 47 of file class.ilAccountMail.php.
|
private |
Definition at line 46 of file class.ilAccountMail.php.
Referenced by setAttachConfiguredFiles(), and shouldAttachConfiguredFiles().
|
private |
Definition at line 45 of file class.ilAccountMail.php.
|
private |
Definition at line 35 of file class.ilAccountMail.php.
|
private |
Definition at line 43 of file class.ilAccountMail.php.
Referenced by areLangVariablesUsedAsFallback().
|
private |
Definition at line 37 of file class.ilAccountMail.php.
|
private |
Definition at line 38 of file class.ilAccountMail.php.
|
private |
Definition at line 39 of file class.ilAccountMail.php.
|
private |
Definition at line 36 of file class.ilAccountMail.php.
string ilAccountMail::$target = '' |
Definition at line 42 of file class.ilAccountMail.php.
Referenced by getTarget().
string ilAccountMail::$u_password = '' |
Definition at line 40 of file class.ilAccountMail.php.
Referenced by getUserPassword().
ilObjUser ilAccountMail::$user = null |
Definition at line 41 of file class.ilAccountMail.php.
Referenced by getUser().