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";
109 $this->diskQuotaEnabled = $newValue;
128 $this->diskQuotaReminderMailEnabled = $newValue;
168 $settings->set(
'enabled', $this->diskQuotaEnabled);
169 $settings->set(
'reminder_mail_enabled', $this->diskQuotaReminderMailEnabled);
172 $settings->set(
'wsp_enabled', $this->personalWorkspaceDiskQuotaEnabled);
182 $this->diskQuotaEnabled = $settings->get(
'enabled') ==
true;
183 $this->diskQuotaReminderMailEnabled = $settings->get(
'reminder_mail_enabled') ==
true;
202 $ilDB = $DIC[
'ilDB'];
204 $set =
$ilDB->query(
"SELECT * FROM mail_template ".
205 " WHERE type='dqta' AND lang = ".
$ilDB->quote($a_lang,
'text'));
217 $ilDB = $DIC[
'ilDB'];
219 if(self::_lookupReminderMailTemplate($a_lang))
222 'subject' =>
array(
'text',$a_subject),
223 'body' =>
array(
'clob',$a_body),
224 'sal_g' =>
array(
'text',$a_sal_g),
225 'sal_f' =>
array(
'text',$a_sal_f),
226 'sal_m' =>
array(
'text',$a_sal_m)
228 $ilDB->update(
'mail_template',
236 'subject' =>
array(
'text',$a_subject),
237 'body' =>
array(
'clob',$a_body),
238 'sal_g' =>
array(
'text',$a_sal_g),
239 'sal_f' =>
array(
'text',$a_sal_f),
240 'sal_m' =>
array(
'text',$a_sal_m),
241 'lang' =>
array(
'text',$a_lang),
242 'type' =>
array(
'text',
'dqta')
244 $ilDB->insert(
'mail_template',$values);
260 $s_recipients = explode(
',', $s_recipients);
261 $loginnames =
array();
262 foreach($s_recipients as $loginname)
264 $loginname = trim($loginname);
267 $loginnames[] = $loginname;
270 $s_recipients = implode(
',', $loginnames);
273 $this->summary_recipients = $s_recipients;
302 if( null === $status )
307 $this->diskQuotaSummaryMailEnabled = $status;
320 $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.
Class ilObject Basic functions for all objects.
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.
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.
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.