38include_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";
 
  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);
 
  181        $this->diskQuotaEnabled = $settings->get(
'enabled') == 
true;
 
  182        $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)) {
 
  219                'subject' => array(
'text',$a_subject),
 
  220                'body' => array(
'clob',$a_body),
 
  221                'sal_g' => array(
'text',$a_sal_g),
 
  222                'sal_f' => array(
'text',$a_sal_f),
 
  223                'sal_m' => array(
'text',$a_sal_m)
 
  228                array(
'lang' => array(
'text',$a_lang), 
'type' => array(
'text',
'dqta'))
 
  232                'subject' => array(
'text',$a_subject),
 
  233                'body' => array(
'clob',$a_body),
 
  234                'sal_g' => array(
'text',$a_sal_g),
 
  235                'sal_f' => array(
'text',$a_sal_f),
 
  236                'sal_m' => array(
'text',$a_sal_m),
 
  237                'lang' => array(
'text',$a_lang),
 
  238                'type' => array(
'text',
'dqta')
 
  255            $s_recipients = explode(
',', $s_recipients);
 
  256            $loginnames = array();
 
  257            foreach ($s_recipients as $loginname) {
 
  258                $loginname = trim($loginname);
 
  260                    $loginnames[] = $loginname;
 
  263            $s_recipients = implode(
',', $loginnames);
 
  266        $this->summary_recipients = $s_recipients;
 
  295        if (
null === $status) {
 
  299        $this->diskQuotaSummaryMailEnabled = $status;
 
  312        $this->personalWorkspaceDiskQuotaEnabled = $newValue;
 
An exception for terminatinating execution or to throw for unit testing.
static $dqSettings
DiskQuota Settings variable.
isDiskQuotaEnabled()
Gets the diskQuotaEnabled property.
_writeReminderMailTemplate($a_lang, $a_subject, $a_sal_g, $a_sal_f, $a_sal_m, $a_body)
$summary_recipients
Recipients
update()
update object in db
$diskQuotaSummaryMailEnabled
Boolean property.
static _lookupReminderMailTemplate($a_lang)
Looks up the mail template for the specified language.
setSummaryRecipients($s_recipients)
Setter for summary recipients.
setDiskQuotaEnabled($newValue)
Sets the diskQuotaEnabled property.
isDiskQuotaSummaryMailEnabled($status=null)
Setter/Getter to activate/deactivate the summary mail cron job.
setPersonalWorkspaceDiskQuotaEnabled($newValue)
Sets the personalWorkspaceDiskQuotaEnabled property.
__construct($a_id=0, $a_call_by_reference=true)
Constructor.
getSummaryRecipients()
Getter fpr summary recipients.
$diskQuotaEnabled
Boolean property.
write()
write object data into db
static getInstance()
Get settings instance.
setDiskQuotaReminderMailEnabled($newValue)
Sets the diskQuotaReminderMailEnabled property.
$personalWorkspaceDiskQuotaEnabled
isDiskQuotaReminderMailEnabled()
Gets the diskQuotaReminderMailEnabled property.
isPersonalWorkspaceDiskQuotaEnabled()
Gets the personalWorkspaceDiskQuotaEnabled property.
read()
read object data from db into object
$diskQuotaReminderMailEnabled
Boolean property.
static _lookupId($a_user_str)
Lookup id by login.
Class ilObject Basic functions for all objects.
update($pash, $contents, Config $config)
foreach($_POST as $key=> $value) $res