|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Class ilAccountMail. More...
Collaboration diagram for ilAccountMail:Public Member Functions | |
| __construct () | |
| useLangVariablesAsFallback (bool $a_status) | |
| areLangVariablesUsedAsFallback () | |
| shouldAttachConfiguredFiles () | |
| setAttachConfiguredFiles (bool $attachConfiguredFiles) | |
| 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 $mailData) | |
| readAccountMail (string $a_lang) | |
| addAttachments (array $mailData) | |
Private Attributes | |
| readonly ilSetting | $settings |
| readonly ilTree | $repositoryTree |
| readonly ilMailMimeSenderFactory | $senderFactory |
| bool | $lang_variables_as_fallback = false |
| array | $attachments = [] |
| bool | $attachConfiguredFiles = false |
| array | $amail = [] |
| string | $permanent_link_target = null |
Class ilAccountMail.
Sends e-mail to newly created accounts.
Definition at line 33 of file class.ilAccountMail.php.
| ilAccountMail::__construct | ( | ) |
Definition at line 47 of file class.ilAccountMail.php.
References $DIC, ILIAS\Repository\repositoryTree(), and ILIAS\Repository\settings().
Here is the call graph for this function:| ilAccountMail::addAttachment | ( | string | $a_filename, |
| string | $a_display_name | ||
| ) |
Definition at line 319 of file class.ilAccountMail.php.
Referenced by addAttachments().
Here is the caller graph for this function:
|
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 156 of file class.ilAccountMail.php.
References addAttachment(), shouldAttachConfiguredFiles(), and USER_FOLDER_ID.
Referenced by send().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAccountMail::areLangVariablesUsedAsFallback | ( | ) |
Definition at line 60 of file class.ilAccountMail.php.
References $lang_variables_as_fallback.
Referenced by send().
Here is the caller graph for this function:
|
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 124 of file class.ilAccountMail.php.
Referenced by readAccountMail().
Here is the caller graph for this function:| ilAccountMail::getUser | ( | ) |
Definition at line 108 of file class.ilAccountMail.php.
References $user.
Referenced by send().
Here is the caller graph for this function:| ilAccountMail::getUserPassword | ( | ) |
Definition at line 80 of file class.ilAccountMail.php.
References $u_password.
Referenced by replacePlaceholders().
Here is the caller graph for this function:
|
private |
Definition at line 141 of file class.ilAccountMail.php.
References ilObjUserFolder\_lookupNewAccountMail(), and ensureValidMailDataShape().
Referenced by send().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAccountMail::replacePlaceholders | ( | string | $a_string, |
| ilObjUser | $a_user, | ||
| array | $a_amail, | ||
| string | $a_lang | ||
| ) |
Definition at line 252 of file class.ilAccountMail.php.
References $DIC, $ilSetting, $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 ILIAS\Repository\repositoryTree().
Referenced by send().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAccountMail::reset | ( | ) |
Definition at line 113 of file class.ilAccountMail.php.
References ILIAS\Repository\user().
Here is the call graph for this function:| 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, 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().
Here is the call graph for this function:| ilAccountMail::setAttachConfiguredFiles | ( | bool | $attachConfiguredFiles | ) |
Definition at line 70 of file class.ilAccountMail.php.
References $attachConfiguredFiles.
| ilAccountMail::setPermanentLinkTarget | ( | ?string | $permanent_link_target | ) |
Definition at line 97 of file class.ilAccountMail.php.
References $permanent_link_target.
| ilAccountMail::setUser | ( | ilObjUser | $a_user | ) |
Definition at line 85 of file class.ilAccountMail.php.
References ilObject\getId(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilAccountMail::setUserPassword | ( | string | $a_pwd | ) |
Definition at line 75 of file class.ilAccountMail.php.
| ilAccountMail::shouldAttachConfiguredFiles | ( | ) |
Definition at line 65 of file class.ilAccountMail.php.
References $attachConfiguredFiles.
Referenced by addAttachments().
Here is the caller graph for this function:| ilAccountMail::useLangVariablesAsFallback | ( | bool | $a_status | ) |
Definition at line 55 of file class.ilAccountMail.php.
|
private |
Definition at line 44 of file class.ilAccountMail.php.
|
private |
Definition at line 43 of file class.ilAccountMail.php.
Referenced by setAttachConfiguredFiles(), and shouldAttachConfiguredFiles().
|
private |
Definition at line 42 of file class.ilAccountMail.php.
|
private |
Definition at line 40 of file class.ilAccountMail.php.
Referenced by areLangVariablesUsedAsFallback().
|
private |
Definition at line 45 of file class.ilAccountMail.php.
Referenced by replacePlaceholders(), and setPermanentLinkTarget().
|
private |
Definition at line 36 of file class.ilAccountMail.php.
|
private |
Definition at line 37 of file class.ilAccountMail.php.
|
private |
Definition at line 35 of file class.ilAccountMail.php.
| string ilAccountMail::$u_password = '' |
Definition at line 38 of file class.ilAccountMail.php.
Referenced by getUserPassword().
| ilObjUser ilAccountMail::$user = null |
Definition at line 39 of file class.ilAccountMail.php.
Referenced by getUser().