ILIAS
Release_4_0_x_branch Revision 61816
|
Class ilDiskQuotaReminderMail. More...
Public Member Functions | |
ilDiskQuotaReminderMail () | |
constructor public | |
useLangVariablesAsFallback ($a_status) | |
areLangVariablesUsedAsFallback () | |
setData ($a_data) | |
Sets used to fill in the placeholders in the mail. | |
reset () | |
reset all values | |
readMailTemplate ($a_lang) | |
get new mail template array (including subject and message body) | |
send () | |
Sends the mail with its object properties as MimeMail It first tries to read the mail body, subject and sender address from posted named formular fields. | |
replacePlaceholders ($a_string, $a_amail, $a_lang) |
Private Member Functions | |
getLng ($a_lang) |
Private Attributes | |
$lang_variables_as_fallback = true | |
$data | |
Data used to fill in the placeholders in the mail. | |
$tmp_lng |
Class ilDiskQuotaReminderMail.
Sends e-mail to users who have exceeded their disk quota.
Definition at line 33 of file class.ilDiskQuotaReminderMail.php.
ilDiskQuotaReminderMail::areLangVariablesUsedAsFallback | ( | ) |
Definition at line 57 of file class.ilDiskQuotaReminderMail.php.
References $lang_variables_as_fallback.
Referenced by send().
|
private |
Definition at line 181 of file class.ilDiskQuotaReminderMail.php.
References $lang, and $tmp_lng.
Referenced by replacePlaceholders(), and send().
ilDiskQuotaReminderMail::ilDiskQuotaReminderMail | ( | ) |
ilDiskQuotaReminderMail::readMailTemplate | ( | $a_lang | ) |
get new mail template array (including subject and message body)
Definition at line 97 of file class.ilDiskQuotaReminderMail.php.
References ilObjDiskQuotaSettings\_lookupReminderMailTemplate().
Referenced by send().
ilDiskQuotaReminderMail::replacePlaceholders | ( | $a_string, | |
$a_amail, | |||
$a_lang | |||
) |
Definition at line 189 of file class.ilDiskQuotaReminderMail.php.
References $ilSetting, ilFormat\formatFloat(), ilFormat\formatSize(), and getLng().
Referenced by send().
ilDiskQuotaReminderMail::reset | ( | ) |
reset all values
Definition at line 89 of file class.ilDiskQuotaReminderMail.php.
ilDiskQuotaReminderMail::send | ( | ) |
Sends the mail with its object properties as MimeMail It first tries to read the mail body, subject and sender address from posted named formular fields.
If no field values found the defaults are used. Placehoders will be replaced by the appropriate data. public
object | ilUser |
Definition at line 118 of file class.ilDiskQuotaReminderMail.php.
References $_SESSION, $data, $ilSetting, $lang, areLangVariablesUsedAsFallback(), getLng(), readMailTemplate(), and replacePlaceholders().
ilDiskQuotaReminderMail::setData | ( | $a_data | ) |
Sets used to fill in the placeholders in the mail.
The following key value pairs must be supplied:
'language' string language of user 'gender' string gender of user 'm' or 'f' 'firstname' string firstname of the user 'lastname' string lastname of the user 'email' string email address of the user 'login' string login of the user 'disk_quota' integer disk quota in bytes of the user 'disk_usage' integer disk usage in bytes of the user 'disk_usage_details' associative array with the values returned by ilDiskQuotaChecker::_lookupDiskUsage($a_usr_id)
$a_data | array Key value pairs with the name of the placeholder as keys. |
Definition at line 81 of file class.ilDiskQuotaReminderMail.php.
ilDiskQuotaReminderMail::useLangVariablesAsFallback | ( | $a_status | ) |
Definition at line 52 of file class.ilDiskQuotaReminderMail.php.
|
private |
Data used to fill in the placeholders in the mail.
Contains key value pairs with the name of the placeholder as keys.
Definition at line 40 of file class.ilDiskQuotaReminderMail.php.
Referenced by send().
|
private |
Definition at line 35 of file class.ilDiskQuotaReminderMail.php.
Referenced by areLangVariablesUsedAsFallback().
|
private |
Definition at line 42 of file class.ilDiskQuotaReminderMail.php.
Referenced by getLng().