|
| setSubjectLangId ($a_lang_id) |
| Set subject lang id. 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) |
| 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) |
| Constructor. More...
|
|
| 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 ($a_rcp) |
| set mail recipients More...
|
|
| 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) |
| Set ref id. More...
|
|
| getRefId () |
| get reference id More...
|
|
| getObjId () |
| get object id More...
|
|
| setObjId ($a_obj_id) |
| set obj id More...
|
|
| getObjType () |
| Get object type. More...
|
|
| setAdditionalInformation ($a_info) |
| Additional information for creating notification mails. More...
|
|
| getAdditionalInformation () |
| Get additional information for generating notification mails. More...
|
|
| sendMail ($a_rcp, $a_type, $a_parse_recipients=true) |
| Send Mail. More...
|
|
| 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 182 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().
194 if($this->introduction)
200 if($this->introduction_direct)
202 $this->
appendBody($this->introduction_direct);
218 if(
sizeof($this->additional))
220 foreach($this->additional as $lang_id => $item)
236 $this->body = trim($this->body);
239 if($this->changed_by)
249 if(!$this->
getRefId() && $this->all_ref_ids)
252 foreach($this->all_ref_ids as
$ref_id)
280 $this->ref_id = null;
293 $this->body = trim($this->body);
295 if(!$a_append_signature_direct)
297 $this->
getMail()->appendInstallationSignature(
true);
getLanguage()
get language object
setBody($a_body)
Set mail body.
getLanguageText($a_keyword)
Replace new lines.
initLanguage($a_usr_id)
Init language.
isRefIdAccessible($a_user_id, $a_ref_id, $a_permission="read")
Check if ref id is accessible for user.
setSubject($a_subject)
Set mail subject.
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)
Default behaviour is:
getObjectTitle($a_shorten=false)
Get object title.
static getSalutation($a_usr_id, $a_language=null)
Get salutation.
getObjType()
Get object type.
getRefId()
get reference id
getBlockBorder()
Get (ascii) block border.
createPermanentLink($a_params=array(), $a_append='')
Create a permanent link for an object.
appendBody($a_body)
Append body text.
getMail()
Get mail object.
static _getAutoGeneratedMessageString($lang=null)
get auto generated info string
static _getInstallationSignature()
Static getter for the installation signature.