ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class UserMail this class handles user mails. More...
Public Member Functions | |
__construct ($a_user_id) | |
Constructor setup an mail object. More... | |
formatReplyMessage () | |
format a reply message public More... | |
formatReplySubject () | |
format a reply subject public More... | |
formatReplyRecipientsForCC () | |
get reply recipients for cc public More... | |
formatReplyRecipient () | |
get reply recipient public More... | |
formatForwardSubject () | |
format a forward subject public More... | |
appendSearchResult ($a_names, $a_type) | |
append search result to recipient public More... | |
formatLinebreakMessage ($a_message) | |
format message according to linebreak option More... | |
appendSignature () | |
append signature to mail body public More... | |
prependSignature () | |
Public Member Functions inherited from ilMail | |
__construct ( $a_user_id, ilMailAddressTypeFactory $mailAddressTypeFactory=null, ilMailRfc822AddressParserFactory $mailAddressParserFactory=null, \ilAppEventHandler $eventHandler=null) | |
withContextId (string $contextId) | |
withContextParameters (array $parameters) | |
__get ($name) | |
Magic interceptor method __get Used to include files / instantiate objects at runtime. More... | |
existsRecipient (string $newRecipient, string $existingRecipients) | |
enableSOAP ($a_status) | |
Define if external mails should be sent using SOAP client or not. More... | |
isSOAPEnabled () | |
setSaveInSentbox ($a_save_in_sentbox) | |
getSaveInSentbox () | |
getMailObjectReferenceId () | |
formatNamesForOutput ($a_recipients) | |
Prepends the fullname of each ILIAS login name (if user has a public profile) found in the passed string and brackets the ILIAS login name afterwards. More... | |
getPreviousMail ($a_mail_id) | |
getNextMail ($a_mail_id) | |
getMailsOfFolder ($a_folder_id, $filter=array()) | |
countMailsOfFolder ($a_folder_id) | |
deleteMailsOfFolder ($a_folder_id) | |
getMail ($a_mail_id) | |
markRead (array $a_mail_ids) | |
markUnread (array $a_mail_ids) | |
moveMailsToFolder (array $mailIds, int $folderId) | |
deleteMails (array $mailIds) | |
getNewDraftId ($usrId, $folderId) | |
updateDraft ( $a_folder_id, $a_attachments, $a_rcp_to, $a_rcp_cc, $a_rcp_bcc, $a_m_type, $a_m_email, $a_m_subject, $a_m_message, $a_draft_id=0, $a_use_placeholders=0, $a_tpl_context_id=null, $a_tpl_context_params=array()) | |
savePostData ( $a_user_id, $a_attachments, $a_rcp_to, $a_rcp_cc, $a_rcp_bcc, $a_m_type, $a_m_email, $a_m_subject, $a_m_message, $a_use_placeholders, $a_tpl_context_id=null, $a_tpl_ctx_params=array()) | |
save post data in table public More... | |
getSavedData () | |
sendMail ($a_rcp_to, $a_rcp_cc, $a_rcp_bc, $a_m_subject, $a_m_message, $a_attachment, $a_type, $a_use_placeholders=0) | |
Should be used to send notifcations over the internal or external mail channel. More... | |
validateRecipients (string $to, string $cc, string $bcc) | |
saveAttachments ($a_attachments) | |
appendInstallationSignature ($a_flag=null) | |
Setter/Getter for appending the installation signarue. More... | |
formatLinebreakMessage ($a_message) | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilMail | |
static | _getAutoGeneratedMessageString (ilLanguage $lang=null) |
Get auto generated info string. More... | |
static | _getInstallationSignature () |
static | getSubjectPrefix () |
Get text that will be prepended to auto generated mails. More... | |
static | getSalutation ($a_usr_id, ilLanguage $a_language=null) |
Data Fields inherited from ilMail | |
const | ILIAS_HOST = 'ilias' |
const | MAIL_SUBJECT_PREFIX = '[ILIAS]' |
$user_id | |
Protected Member Functions inherited from ilMail | |
isSystemMail () | |
readMailObjectReferenceId () | |
Read and set the mail object ref id (administration node) More... | |
fetchMailData ($a_row) | |
replacePlaceholders ($a_message, $a_user_id=0, $replace_empty=true) | |
distributeMail ($a_rcp_to, $a_rcp_cc, $a_rcp_bcc, $a_subject, $a_message, $a_attachments, $sent_mail_id, $a_type, $a_action, $a_use_placeholders=0) | |
getUserIds (array $recipients) | |
checkMail (string $to, string $cc, string $bcc, string $subject) | |
checkRecipients (string $recipients) | |
Check if recipients are valid. More... | |
saveInSentbox ($a_attachment, $a_rcp_to, $a_rcp_cc, $a_rcp_bcc, $a_type, $a_m_subject, $a_m_message) | |
Stores a message in the sent bod of the current user. More... | |
parseAddresses ($addresses) | |
Explode recipient string, allowed separators are ',' ';' ' ' Returns an array with recipient ilMailAddress instances. More... | |
getCountRecipient (string $recipients, $onlyExternalAddresses=true) | |
getCountRecipients (string $toRecipients, string $ccRecipients, string $bccRecipients, $onlyExternalAddresses=true) | |
getEmailRecipients (string $recipients) | |
Static Protected Member Functions inherited from ilMail | |
static | getCachedUserInstance ($a_usr_id) |
Protected Attributes inherited from ilMail | |
$lng | |
$db | |
$mfile | |
$mail_options | |
$mailbox | |
$table_mail | |
$table_mail_saved | |
$mail_data = array() | |
$mail_obj_ref_id | |
$save_in_sentbox | |
$soap_enabled = true | |
$appendInstallationSignature = false | |
$properties = array() | |
$contextId = null | |
$contextParameters = [] | |
Static Protected Attributes inherited from ilMail | |
static | $userInstances = array() |
Class UserMail this class handles user mails.
Definition at line 15 of file class.ilFormatMail.php.
ilFormatMail::__construct | ( | $a_user_id | ) |
Constructor setup an mail object.
int | user_id public |
Definition at line 24 of file class.ilFormatMail.php.
ilFormatMail::appendSearchResult | ( | $a_names, | |
$a_type | |||
) |
append search result to recipient public
array | names to append |
string | rcp type ('to','cc','bc') |
Definition at line 129 of file class.ilFormatMail.php.
References $a_type, and ilMail\$mail_data.
ilFormatMail::appendSignature | ( | ) |
append signature to mail body public
Definition at line 195 of file class.ilFormatMail.php.
ilFormatMail::formatForwardSubject | ( | ) |
format a forward subject public
Definition at line 114 of file class.ilFormatMail.php.
ilFormatMail::formatLinebreakMessage | ( | $a_message | ) |
format message according to linebreak option
string | message public |
Definition at line 169 of file class.ilFormatMail.php.
References $i.
ilFormatMail::formatReplyMessage | ( | ) |
format a reply message public
Definition at line 34 of file class.ilFormatMail.php.
References $i.
ilFormatMail::formatReplyRecipient | ( | ) |
get reply recipient public
Definition at line 98 of file class.ilFormatMail.php.
References $user.
ilFormatMail::formatReplyRecipientsForCC | ( | ) |
get reply recipients for cc public
Definition at line 66 of file class.ilFormatMail.php.
References $DIC.
ilFormatMail::formatReplySubject | ( | ) |
ilFormatMail::prependSignature | ( | ) |
Definition at line 203 of file class.ilFormatMail.php.