38 include_once
"./Services/Object/classes/class.ilObject.php";
68 public function __construct($a_id = 0, $a_call_by_reference =
true)
72 parent::__construct($a_id, $a_call_by_reference);
85 $query =
"SELECT object_reference.ref_id FROM object_reference,tree,object_data " .
86 "WHERE tree.parent = " .
$ilDB->quote(SYSTEM_FOLDER_ID,
'integer') .
" " .
87 "AND object_data.type = " .
$ilDB->quote(
'facs',
'text') .
88 "AND object_reference.ref_id = tree.child " .
89 "AND object_reference.obj_id = object_data.obj_id";
108 $this->diskQuotaEnabled = $newValue;
127 $this->diskQuotaReminderMailEnabled = $newValue;
167 $settings->set(
'enabled', $this->diskQuotaEnabled);
168 $settings->set(
'reminder_mail_enabled', $this->diskQuotaReminderMailEnabled);
171 $settings->set(
'wsp_enabled', $this->personalWorkspaceDiskQuotaEnabled);
181 $this->diskQuotaEnabled = $settings->get(
'enabled') ==
true;
182 $this->diskQuotaReminderMailEnabled = $settings->get(
'reminder_mail_enabled') ==
true;
201 $ilDB = $DIC[
'ilDB'];
203 $set =
$ilDB->query(
"SELECT * FROM mail_template " .
204 " WHERE type='dqta' AND lang = " .
$ilDB->quote($a_lang,
'text'));
215 $ilDB = $DIC[
'ilDB'];
217 if (self::_lookupReminderMailTemplate($a_lang)) {
219 'subject' =>
array(
'text',$a_subject),
220 'body' =>
array(
'clob',$a_body),
221 'sal_g' =>
array(
'text',$a_sal_g),
222 'sal_f' =>
array(
'text',$a_sal_f),
223 'sal_m' =>
array(
'text',$a_sal_m)
232 'subject' =>
array(
'text',$a_subject),
233 'body' =>
array(
'clob',$a_body),
234 'sal_g' =>
array(
'text',$a_sal_g),
235 'sal_f' =>
array(
'text',$a_sal_f),
236 'sal_m' =>
array(
'text',$a_sal_m),
237 'lang' =>
array(
'text',$a_lang),
238 'type' =>
array(
'text',
'dqta')
240 $ilDB->insert(
'mail_template', $values);
255 $s_recipients = explode(
',', $s_recipients);
256 $loginnames =
array();
257 foreach ($s_recipients as $loginname) {
258 $loginname = trim($loginname);
260 $loginnames[] = $loginname;
263 $s_recipients = implode(
',', $loginnames);
266 $this->summary_recipients = $s_recipients;
295 if (null === $status) {
299 $this->diskQuotaSummaryMailEnabled = $status;
312 $this->personalWorkspaceDiskQuotaEnabled = $newValue;
setPersonalWorkspaceDiskQuotaEnabled($newValue)
Sets the personalWorkspaceDiskQuotaEnabled property.
isDiskQuotaReminderMailEnabled()
Gets the diskQuotaReminderMailEnabled property.
isPersonalWorkspaceDiskQuotaEnabled()
Gets the personalWorkspaceDiskQuotaEnabled property.
$diskQuotaSummaryMailEnabled
Boolean property.
static _lookupReminderMailTemplate($a_lang)
Looks up the mail template for the specified language.
static _lookupId($a_user_str)
Lookup id by login.
$diskQuotaReminderMailEnabled
Boolean property.
$summary_recipients
Recipients.
getSummaryRecipients()
Getter fpr summary recipients.
isDiskQuotaEnabled()
Gets the diskQuotaEnabled property.
setDiskQuotaEnabled($newValue)
Sets the diskQuotaEnabled property.
foreach($_POST as $key=> $value) $res
update()
update object in db
$diskQuotaEnabled
Boolean property.
write()
write object data into db
_writeReminderMailTemplate($a_lang, $a_subject, $a_sal_g, $a_sal_f, $a_sal_m, $a_body)
static $dqSettings
DiskQuota Settings variable.
Create styles array
The data for the language used.
$personalWorkspaceDiskQuotaEnabled
setSummaryRecipients($s_recipients)
Setter for summary recipients.
update($pash, $contents, Config $config)
setDiskQuotaReminderMailEnabled($newValue)
Sets the diskQuotaReminderMailEnabled property.
read()
read object data from db into object
static getInstance()
Get settings instance.
__construct($a_id=0, $a_call_by_reference=true)
Constructor.
isDiskQuotaSummaryMailEnabled($status=null)
Setter/Getter to activate/deactivate the summary mail cron job.