38 include_once
"classes/class.ilObject.php";
64 $this->
ilObject($a_id,$a_call_by_reference);
75 $this->diskQuotaEnabled = $newValue;
94 $this->diskQuotaReminderMailEnabled = $newValue;
134 $settings->set(
'enabled', $this->diskQuotaEnabled);
135 $settings->set(
'reminder_mail_enabled', $this->diskQuotaReminderMailEnabled);
141 public function read($a_force_db =
false)
146 $this->diskQuotaEnabled = $settings->get(
'enabled') ==
true;
147 $this->diskQuotaReminderMailEnabled = $settings->get(
'reminder_mail_enabled') ==
true;
164 $set = $ilDB->query(
"SELECT * FROM mail_template ".
165 " WHERE type='dqta' AND lang = ".$ilDB->quote($a_lang,
'text'));
178 if(self::_lookupReminderMailTemplate($a_lang))
181 'subject' => array(
'text',$a_subject),
182 'body' => array(
'clob',$a_body),
183 'sal_g' => array(
'text',$a_sal_g),
184 'sal_f' => array(
'text',$a_sal_f),
185 'sal_m' => array(
'text',$a_sal_m)
187 $ilDB->update(
'mail_template',
189 array(
'lang' => array(
'text',$a_lang),
'type' => array(
'text',
'dqta'))
195 'subject' => array(
'text',$a_subject),
196 'body' => array(
'clob',$a_body),
197 'sal_g' => array(
'text',$a_sal_g),
198 'sal_f' => array(
'text',$a_sal_f),
199 'sal_m' => array(
'text',$a_sal_m),
200 'lang' => array(
'text',$a_lang),
201 'type' => array(
'text',
'dqta')
203 $ilDB->insert(
'mail_template',$values);