ILIAS
Release_5_0_x_branch Revision 61816
|
Wrapper classes for system notifications. More...
Public Member Functions | |
setSubjectLangId ($a_lang_id) | |
Set subject lang id. | |
setIntroductionLangId ($a_lang_id) | |
Set introduction lang id. | |
setIntroductionDirect ($a_text) | |
Set introduction text. | |
setTaskLangId ($a_lang_id) | |
Set task lang id. | |
setReasonLangId ($a_lang_id) | |
Set reason lang id. | |
setGotoLangId ($a_lang_id) | |
Set goto lang id. | |
setChangedByUserId ($a_id) | |
Set changed by user id. | |
addAdditionalInfo ($a_lang_id, $a_value, $a_multiline=false) | |
Add additional information. | |
sendMail (array $a_user_ids, $a_goto_additional=null, $a_permission="read") | |
Send notification(s) | |
compose ($a_user_id, $a_goto_additional=null, $a_permission="read", $a_append_signature_direct=false) | |
Compose notification to single recipient. | |
composeAndGetMessage ($a_user_id, $a_goto_additional=null, $a_permission="read", $a_append_signature_direct=false) | |
Compose notification to single recipient. | |
Public Member Functions inherited from ilMailNotification | |
__construct ($a_is_personal_workspace=false) | |
Constructor. | |
setType ($a_type) | |
Set notification type. | |
getType () | |
Get notification type. | |
setSender ($a_usr_id) | |
Set sender of mail. | |
getSender () | |
get sender of mail | |
setRecipients ($a_rcp) | |
set mail recipients | |
getRecipients () | |
get array of recipients | |
setAttachments ($a_att) | |
Set attachments. | |
getAttachments () | |
Get attachments. | |
setLangModules (array $a_modules) | |
Set lang modules. | |
getUserLanguage ($a_usr_id) | |
Get user language. | |
setRefId ($a_id) | |
Set ref id. | |
getRefId () | |
get reference id | |
getObjId () | |
get object id | |
setObjId ($a_obj_id) | |
set obj id | |
getObjType () | |
Get object type. | |
setAdditionalInformation ($a_info) | |
Additional information for creating notification mails. | |
getAdditionalInformation () | |
Get additional information for generating notification mails. | |
sendMail ($a_rcp, $a_type, $a_parse_recipients=true) | |
Send Mail. | |
getBlockBorder () | |
Get (ascii) block border. |
Protected Member Functions | |
composeAndSendMail ($a_user_id, $a_goto_additional=null, $a_permission="read") | |
Send notification to single recipient. | |
Protected Member Functions inherited from ilMailNotification | |
setSubject ($a_subject) | |
Set mail subject. | |
getSubject () | |
Get mail subject. | |
setBody ($a_body) | |
Set mail body. | |
appendBody ($a_body) | |
Append body text. | |
getBody () | |
Get body. | |
initLanguage ($a_usr_id) | |
Init language. | |
initLanguageByIso2Code ($a_code= '') | |
Init language by ISO2 code. | |
setLanguage ($a_language) | |
A language. | |
getLanguage () | |
get language object | |
getLanguageText ($a_keyword) | |
Replace new lines. | |
getObjectTitle ($a_shorten=false) | |
Get object title. | |
initMail () | |
Init mail. | |
getMail () | |
Get mail object. | |
createPermanentLink ($a_params=array(), $a_append= '') | |
Create a permanent link for an object. | |
userToString ($a_usr_id) | |
Utility function. | |
isRefIdAccessible ($a_user_id, $a_ref_id, $a_permission="read") | |
Check if ref id is accessible for user. |
Protected Attributes | |
$subject_lang_id | |
$introduction | |
$introduction_direct | |
$task | |
$reason | |
$additional | |
$goto_caption | |
$changed_by | |
$all_ref_ids | |
Protected Attributes inherited from ilMailNotification | |
$type = null | |
$sender = null | |
$mail = null | |
$subject = '' | |
$body = '' | |
$attachments = array() | |
$language = null | |
$lang_modules = array() | |
$recipients = array() | |
$ref_id = null | |
$obj_id = null | |
$obj_type = null | |
$additional_info = array() | |
$is_in_wsp | |
$wsp_tree | |
$wsp_access_handler |
Additional Inherited Members | |
Data Fields inherited from ilMailNotification | |
const | SUBJECT_TITLE_LENGTH = 60 |
Wrapper classes for system notifications.
Definition at line 16 of file class.ilSystemNotification.php.
ilSystemNotification::addAdditionalInfo | ( | $a_lang_id, | |
$a_value, | |||
$a_multiline = false |
|||
) |
Add additional information.
string | $a_lang_id | |
mixed | $a_value | |
bool | $a_multiline |
Definition at line 107 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.
mixed | $a_rcp | |
string | $a_goto_additional | |
string | $a_permission | |
bool | $a_append_signature_direct |
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().
ilSystemNotification::composeAndGetMessage | ( | $a_user_id, | |
$a_goto_additional = null , |
|||
$a_permission = "read" , |
|||
$a_append_signature_direct = false |
|||
) |
Compose notification to single recipient.
mixed | $a_user_id | |
string | $a_goto_additional | |
string | $a_permission | |
bool | $a_append_signature_direct |
Definition at line 334 of file class.ilSystemNotification.php.
References ilMailNotification\$body, and compose().
|
protected |
Send notification to single recipient.
mixed | $a_rcp | |
string | $a_goto_additional | |
string | $a_permission |
Definition at line 315 of file class.ilSystemNotification.php.
References compose(), and sendMail().
Referenced by sendMail().
ilSystemNotification::sendMail | ( | array | $a_user_ids, |
$a_goto_additional = null , |
|||
$a_permission = "read" |
|||
) |
Send notification(s)
array | $a_user_ids | |
string | $a_goto_additional | |
string | $a_permission |
Definition at line 120 of file class.ilSystemNotification.php.
References ilObject\_getAllReferences(), composeAndSendMail(), ilMailNotification\getObjId(), and ilMailNotification\getRefId().
Referenced by composeAndSendMail().
ilSystemNotification::setChangedByUserId | ( | $a_id | ) |
Set changed by user id.
int | $a_id |
Definition at line 93 of file class.ilSystemNotification.php.
ilSystemNotification::setGotoLangId | ( | $a_lang_id | ) |
Set goto lang id.
string | $a_lang_id |
Definition at line 83 of file class.ilSystemNotification.php.
ilSystemNotification::setIntroductionDirect | ( | $a_text | ) |
Set introduction text.
string | $a_text |
Definition at line 53 of file class.ilSystemNotification.php.
ilSystemNotification::setIntroductionLangId | ( | $a_lang_id | ) |
Set introduction lang id.
string | $a_lang_id |
Definition at line 43 of file class.ilSystemNotification.php.
ilSystemNotification::setReasonLangId | ( | $a_lang_id | ) |
Set reason lang id.
string | $a_lang_id |
Definition at line 73 of file class.ilSystemNotification.php.
ilSystemNotification::setSubjectLangId | ( | $a_lang_id | ) |
Set subject lang id.
string | $a_lang_id |
Definition at line 33 of file class.ilSystemNotification.php.
ilSystemNotification::setTaskLangId | ( | $a_lang_id | ) |
Set task lang id.
string | $a_lang_id |
Definition at line 63 of file class.ilSystemNotification.php.
|
protected |
Definition at line 23 of file class.ilSystemNotification.php.
|
protected |
Definition at line 26 of file class.ilSystemNotification.php.
|
protected |
Definition at line 25 of file class.ilSystemNotification.php.
|
protected |
Definition at line 24 of file class.ilSystemNotification.php.
|
protected |
Definition at line 19 of file class.ilSystemNotification.php.
|
protected |
Definition at line 20 of file class.ilSystemNotification.php.
|
protected |
Definition at line 22 of file class.ilSystemNotification.php.
|
protected |
Definition at line 18 of file class.ilSystemNotification.php.
|
protected |
Definition at line 21 of file class.ilSystemNotification.php.