|
| setSubjectLangId ($a_lang_id) |
| Set subject lang id. More...
|
|
| setSubjectDirect ($a_text) |
| Set subject text. More...
|
|
| setIntroductionLangId ($a_lang_id) |
| Set introduction lang id. More...
|
|
| setIntroductionDirect ($a_text) |
| Set introduction text. More...
|
|
| setTaskLangId ($a_lang_id) |
| Set task lang id. More...
|
|
| setReasonLangId ($a_lang_id) |
| Set reason lang id. More...
|
|
| setGotoLangId ($a_lang_id) |
| Set goto lang id. More...
|
|
| setChangedByUserId ($a_id) |
| Set changed by user id. More...
|
|
| addAdditionalInfo ($a_lang_id, $a_value, $a_multiline=false, $a_lang_direct=false) |
| Add additional information. More...
|
|
| sendMail (array $a_user_ids, $a_goto_additional=null, $a_permission="read") |
| Send notification(s) More...
|
|
| compose ($a_user_id, $a_goto_additional=null, $a_permission="read", $a_append_signature_direct=false) |
| Compose notification to single recipient. More...
|
|
| composeAndGetMessage ($a_user_id, $a_goto_additional=null, $a_permission="read", $a_append_signature_direct=false) |
| Compose notification to single recipient. More...
|
|
| __construct ($a_is_personal_workspace=false) |
|
| setType ($a_type) |
| Set notification type. More...
|
|
| getType () |
| Get notification type. More...
|
|
| setSender ($a_usr_id) |
| Set sender of mail. More...
|
|
| getSender () |
| get sender of mail More...
|
|
| setRecipients (array $a_rcp) |
|
| getRecipients () |
| get array of recipients More...
|
|
| setAttachments ($a_att) |
| Set attachments. More...
|
|
| getAttachments () |
| Get attachments. More...
|
|
| setLangModules (array $a_modules) |
| Set lang modules. More...
|
|
| getUserLanguage ($a_usr_id) |
| Get user language. More...
|
|
| setRefId ($a_id) |
|
| getRefId () |
|
| getObjId () |
|
| setObjId ($a_obj_id) |
|
| getObjType () |
| Get object type. More...
|
|
| setAdditionalInformation (array $a_info) |
| Additional information for creating notification mails. More...
|
|
| getAdditionalInformation () |
|
| sendMail (array $a_rcp, $a_type, $a_parse_recipients=true) |
|
| getBlockBorder () |
| Get (ascii) block border. More...
|
|
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
- Id
- class.ilObjExerciseGUI.php 24003 2010-05-26 14:35:42Z akill
Definition at line 16 of file class.ilSystemNotification.php.
ilSystemNotification::compose |
( |
|
$a_user_id, |
|
|
|
$a_goto_additional = null , |
|
|
|
$a_permission = "read" , |
|
|
|
$a_append_signature_direct = false |
|
) |
| |
Compose notification to single recipient.
- Parameters
-
mixed | $a_rcp | |
string | $a_goto_additional | |
string | $a_permission | |
bool | $a_append_signature_direct | |
- Returns
- bool
Definition at line 181 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(), ilMailNotification\setBody(), and ilMailNotification\setSubject().
Referenced by composeAndGetMessage(), and composeAndSendMail().
186 if ($this->subject_direct) {
197 if ($this->introduction) {
202 if ($this->introduction_direct) {
203 $this->
appendBody($this->introduction_direct);
217 if (is_array($this->additional)) {
218 foreach ($this->additional as $lang_id => $item) {
221 $caption = (!$item[2])
229 $this->
appendBody($caption . $item[0] .
"\n");
241 $this->body = trim($this->body);
244 if ($this->changed_by) {
252 if (!$this->
getRefId() && $this->all_ref_ids) {
254 foreach ($this->all_ref_ids as
$ref_id) {
277 $this->ref_id = null;
289 $this->body = trim($this->body);
291 if (!$a_append_signature_direct) {
292 $this->
getMail()->appendInstallationSignature(
true);
getLanguageText($a_keyword)
initLanguage($a_usr_id)
Init language.
isRefIdAccessible($a_user_id, $a_ref_id, $a_permission="read")
Check if ref id is accessible for user.
getObjectTitle($a_shorten=false)
static getNamePresentation( $a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
getObjType()
Get object type.
getBlockBorder()
Get (ascii) block border.
createPermanentLink($a_params=array(), $a_append='')
static _getAutoGeneratedMessageString(ilLanguage $lang=null)
Get auto generated info string.
appendBody($a_body)
Append body text.
static _getInstallationSignature()
static getSalutation($a_usr_id, ilLanguage $a_language=null)