38 include_once
"./Services/Object/classes/class.ilObject.php";
72 $this->
ilObject($a_id,$a_call_by_reference);
84 $query =
"SELECT object_reference.ref_id FROM object_reference,tree,object_data ".
85 "WHERE tree.parent = ".$ilDB->quote(SYSTEM_FOLDER_ID,
'integer').
" ".
86 "AND object_data.type = ".$ilDB->quote(
'facs',
'text').
87 "AND object_reference.ref_id = tree.child ".
88 "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);
177 public function read($a_force_db =
false)
182 $this->diskQuotaEnabled = $settings->get(
'enabled') ==
true;
183 $this->diskQuotaReminderMailEnabled = $settings->get(
'reminder_mail_enabled') ==
true;
203 $set = $ilDB->query(
"SELECT * FROM mail_template ".
204 " WHERE type='dqta' AND lang = ".$ilDB->quote($a_lang,
'text'));
217 if(self::_lookupReminderMailTemplate($a_lang))
220 'subject' => array(
'text',$a_subject),
221 'body' => array(
'clob',$a_body),
222 'sal_g' => array(
'text',$a_sal_g),
223 'sal_f' => array(
'text',$a_sal_f),
224 'sal_m' => array(
'text',$a_sal_m)
226 $ilDB->update(
'mail_template',
228 array(
'lang' => array(
'text',$a_lang),
'type' => array(
'text',
'dqta'))
234 'subject' => array(
'text',$a_subject),
235 'body' => array(
'clob',$a_body),
236 'sal_g' => array(
'text',$a_sal_g),
237 'sal_f' => array(
'text',$a_sal_f),
238 'sal_m' => array(
'text',$a_sal_m),
239 'lang' => array(
'text',$a_lang),
240 'type' => array(
'text',
'dqta')
242 $ilDB->insert(
'mail_template',$values);
258 $s_recipients = explode(
',', $s_recipients);
259 $loginnames = array();
260 foreach($s_recipients as $loginname)
262 $loginname = trim($loginname);
265 $loginnames[] = $loginname;
268 $s_recipients = implode(
',', $loginnames);
271 $this->summary_recipients = $s_recipients;
300 if( null === $status )
305 $this->diskQuotaSummaryMailEnabled = $status;
318 $this->personalWorkspaceDiskQuotaEnabled = $newValue;