38 include_once
"./Services/Object/classes/class.ilObject.php";
70 $this->
ilObject($a_id,$a_call_by_reference);
81 $this->diskQuotaEnabled = $newValue;
100 $this->diskQuotaReminderMailEnabled = $newValue;
140 $settings->set(
'enabled', $this->diskQuotaEnabled);
141 $settings->set(
'reminder_mail_enabled', $this->diskQuotaReminderMailEnabled);
149 public function read($a_force_db =
false)
154 $this->diskQuotaEnabled = $settings->get(
'enabled') ==
true;
155 $this->diskQuotaReminderMailEnabled = $settings->get(
'reminder_mail_enabled') ==
true;
174 $set = $ilDB->query(
"SELECT * FROM mail_template ".
175 " WHERE type='dqta' AND lang = ".$ilDB->quote($a_lang,
'text'));
188 if(self::_lookupReminderMailTemplate($a_lang))
191 'subject' => array(
'text',$a_subject),
192 'body' => array(
'clob',$a_body),
193 'sal_g' => array(
'text',$a_sal_g),
194 'sal_f' => array(
'text',$a_sal_f),
195 'sal_m' => array(
'text',$a_sal_m)
197 $ilDB->update(
'mail_template',
199 array(
'lang' => array(
'text',$a_lang),
'type' => array(
'text',
'dqta'))
205 'subject' => array(
'text',$a_subject),
206 'body' => array(
'clob',$a_body),
207 'sal_g' => array(
'text',$a_sal_g),
208 'sal_f' => array(
'text',$a_sal_f),
209 'sal_m' => array(
'text',$a_sal_m),
210 'lang' => array(
'text',$a_lang),
211 'type' => array(
'text',
'dqta')
213 $ilDB->insert(
'mail_template',$values);
229 $s_recipients = explode(
',', $s_recipients);
230 $loginnames = array();
231 foreach($s_recipients as $loginname)
233 $loginname = trim($loginname);
236 $loginnames[] = $loginname;
239 $s_recipients = implode(
',', $loginnames);
242 $this->summary_recipients = $s_recipients;
271 if( null === $status )
276 $this->diskQuotaSummaryMailEnabled = $status;