ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilCronDeleteInactiveUserReminderMailNotification Class Reference
+ Inheritance diagram for ilCronDeleteInactiveUserReminderMailNotification:
+ Collaboration diagram for ilCronDeleteInactiveUserReminderMailNotification:

Public Member Functions

 __construct ()
 Constructor.
 send ()
- Public Member Functions inherited from ilMimeMailNotification
 sendMimeMail ($a_rcp)
 setCurrentRecipient ($current_recipient)
 getCurrentRecipient ()
 setMimeMail ($mime_mail)
 getMimeMail ()
- 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

 initLanguageByIso2Code ($a_code= '')
- Protected Member Functions inherited from ilMimeMailNotification
 initLanguage ($a_usr_id)
- 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.
 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.

Additional Inherited Members

- Data Fields inherited from ilMailNotification
const SUBJECT_TITLE_LENGTH = 60
- Protected Attributes inherited from ilMimeMailNotification
 $mime_mail
 $current_recipient

Detailed Description

Constructor & Destructor Documentation

ilCronDeleteInactiveUserReminderMailNotification::__construct ( )

Member Function Documentation

ilCronDeleteInactiveUserReminderMailNotification::initLanguageByIso2Code (   $a_code = '')
protected
Parameters
string$a_code

Reimplemented from ilMimeMailNotification.

Definition at line 26 of file class.ilCronDeleteInactiveUserReminderMailNotification.php.

References ilMailNotification\getLanguage().

Referenced by send().

{
$this->getLanguage()->loadLanguageModule('user');
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilCronDeleteInactiveUserReminderMailNotification::send ( )

Definition at line 32 of file class.ilCronDeleteInactiveUserReminderMailNotification.php.

References ilMailNotification\$body, $lng, ilMail\_getInstallationSignature(), ilMailNotification\appendBody(), ilDatePresentation\formatDate(), ilMailNotification\getAdditionalInformation(), ilMimeMailNotification\getCurrentRecipient(), ilMailNotification\getLanguage(), ilMailNotification\getRecipients(), IL_CAL_UNIX, initLanguageByIso2Code(), ilMimeMailNotification\sendMimeMail(), ilMailNotification\setLanguage(), ilMailNotification\setSubject(), ilDatePresentation\setUseRelativeDates(), and ilDatePresentation\useRelativeDates().

{
global $lng;
$additional_information = $this->getAdditionalInformation();
foreach($this->getRecipients() as $rcp)
{
try
{
$this->handleCurrentRecipient($rcp);
}
catch(ilMailException $e)
{
continue;
}
$this->initMimeMail();
$date_for_deletion = ilDatePresentation::formatDate(new ilDate($additional_information["date"], IL_CAL_UNIX));
$this->setSubject($this->getLanguage()->txt('del_mail_subject'));
$body = sprintf($this->getLanguage()->txt("del_mail_body"), $rcp->fullname,"\n\n",$additional_information["www"], $date_for_deletion);
$this->appendBody($body);
}
}

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: