|
| setSubjectLangId (string $a_lang_id) |
|
| setSubjectDirect (string $a_text) |
|
| setIntroductionLangId (string $a_lang_id) |
|
| setIntroductionDirect (string $a_text) |
|
| setTaskLangId (string $a_lang_id) |
|
| setReasonLangId (string $a_lang_id) |
|
| setGotoLangId (string $a_lang_id) |
|
| setChangedByUserId (int $a_id) |
|
| addAdditionalInfo (string $a_lang_id, string $a_value, bool $a_multiline=false, bool $a_lang_direct=false) |
| Add additional information. More...
|
|
| sendMailAndReturnRecipients (array $a_user_ids, ?string $a_goto_additional=null, string $a_permission="read") |
| Send notification(s) More...
|
|
| compose (int $a_user_id, ?string $a_goto_additional=null, string $a_permission="read", bool $a_append_signature_direct=false) |
| Compose notification to single recipient. More...
|
|
| composeAndGetMessage (int $a_user_id, ?string $a_goto_additional=null, string $a_permission="read", bool $a_append_signature_direct=false) |
| Compose notification to single recipient. More...
|
|
| __construct (bool $a_is_personal_workspace=false) |
|
| setType (int $a_type) |
|
| getType () |
|
| setSender (int $a_usr_id) |
|
| getSender () |
|
| setRecipients (array $a_rcp) |
|
| getRecipients () |
|
| setAttachments (array $a_att) |
|
| getAttachments () |
|
| setLangModules (array $a_modules) |
|
| getUserLanguage (int $a_usr_id) |
|
| setRefId (int $a_id) |
|
| getRefId () |
|
| getObjId () |
|
| setObjId (int $a_obj_id) |
|
| getObjType () |
|
| setAdditionalInformation (array $a_info) |
|
| getAdditionalInformation () |
|
| sendMail (array $a_rcp, bool $a_parse_recipients=true) |
|
| getBlockBorder () |
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too. If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Wrapper classes for system notifications
- See also
- FeatureWiki/Guidelines/System Notification Guideline
- Author
- Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Definition at line 23 of file class.ilSystemNotification.php.
ilSystemNotification::compose |
( |
int |
$a_user_id, |
|
|
?string |
$a_goto_additional = null , |
|
|
string |
$a_permission = "read" , |
|
|
bool |
$a_append_signature_direct = false |
|
) |
| |
Compose notification to single recipient.
Definition at line 142 of file class.ilSystemNotification.php.
References ilMailNotification\$ref_id, ilMail\_getAutoGeneratedMessageString(), ilMail\_getInstallationSignature(), ilMailNotification\appendBody(), ilMailNotification\createPermanentLink(), ilMailNotification\getBlockBorder(), ilMailNotification\getLanguage(), ilMailNotification\getLanguageText(), ilMailNotification\getMail(), ilUserUtil\getNamePresentation(), ilMailNotification\getObjectTitle(), ilMailNotification\getObjId(), ilMailNotification\getObjType(), ilMailNotification\getRefId(), ilMail\getSalutation(), ilMailNotification\initLanguage(), ilMailNotification\initMail(), ilMailNotification\isRefIdAccessible(), ILIAS\UI\examples\Symbol\Glyph\Language\language(), ilMailNotification\setBody(), and ilMailNotification\setSubject().
Referenced by composeAndGetMessage(), and composeAndSendMail().
148 $find_ref_id =
false;
152 if ($this->subject_direct) {
163 if ($this->introduction) {
168 if ($this->introduction_direct) {
169 $this->
appendBody($this->introduction_direct);
183 if (count($this->additional) > 0) {
184 foreach ($this->additional as $lang_id => $item) {
187 $caption = (!$item[2])
195 $this->
appendBody($caption . $item[0] .
"\n");
207 $this->body = trim($this->body);
210 if ($this->changed_by) {
218 if (!$this->
getRefId() && $this->all_ref_ids) {
220 foreach ($this->all_ref_ids as
$ref_id) {
255 $this->body = trim($this->body);
257 if (!$a_append_signature_direct) {
258 $this->
getMail()->appendInstallationSignature(
true);
appendBody(string $a_body)
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link="", bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
static getSalutation(int $a_usr_id, ?ilLanguage $a_language=null)
initLanguage(int $a_usr_id)
getLanguageText(string $a_keyword)
isRefIdAccessible(int $a_user_id, int $a_ref_id, string $a_permission="read")
getObjectTitle(bool $a_shorten=false)
createPermanentLink(array $a_params=[], string $a_append='')
static _getAutoGeneratedMessageString(ilLanguage $lang=null)
setSubject(string $a_subject)
static _getInstallationSignature()