ILIAS
release_4-3 Revision
|
Class ilDiskQuotaReminderMail. More...
Public Member Functions | |
__construct () | |
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 13 of file class.ilDiskQuotaReminderMail.php.
ilDiskQuotaReminderMail::__construct | ( | ) |
ilDiskQuotaReminderMail::areLangVariablesUsedAsFallback | ( | ) |
Definition at line 37 of file class.ilDiskQuotaReminderMail.php.
References $lang_variables_as_fallback.
Referenced by send().
|
private |
Definition at line 161 of file class.ilDiskQuotaReminderMail.php.
References $lang, and $tmp_lng.
Referenced by replacePlaceholders(), and send().
ilDiskQuotaReminderMail::readMailTemplate | ( | $a_lang | ) |
get new mail template array (including subject and message body)
Definition at line 77 of file class.ilDiskQuotaReminderMail.php.
References ilObjDiskQuotaSettings\_lookupReminderMailTemplate().
Referenced by send().
ilDiskQuotaReminderMail::replacePlaceholders | ( | $a_string, | |
$a_amail, | |||
$a_lang | |||
) |
Definition at line 169 of file class.ilDiskQuotaReminderMail.php.
References $ilSetting, ilFormat\formatFloat(), ilFormat\formatSize(), and getLng().
Referenced by send().
ilDiskQuotaReminderMail::reset | ( | ) |
reset all values
Definition at line 69 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 98 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 61 of file class.ilDiskQuotaReminderMail.php.
ilDiskQuotaReminderMail::useLangVariablesAsFallback | ( | $a_status | ) |
Definition at line 32 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 20 of file class.ilDiskQuotaReminderMail.php.
Referenced by send().
|
private |
Definition at line 15 of file class.ilDiskQuotaReminderMail.php.
Referenced by areLangVariablesUsedAsFallback().
|
private |
Definition at line 22 of file class.ilDiskQuotaReminderMail.php.
Referenced by getLng().