38 include_once
"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);
227 $this->summary_recipients = $s_recipients;
256 if( null === $status )
261 $this->diskQuotaSummaryMailEnabled = $status;