24 include_once(
'Services/Calendar/classes/class.ilTimeZone.php');
94 $this->enabled = $a_enabled;
116 $this->week_start = $a_start;
137 $this->timezone = $a_zone;
159 $this->time_format = $a_format;
193 $this->storage->set(
'enabled',(
int) $this->
isEnabled());
208 $this->
setEnabled($this->storage->get(
'enabled'));
210 $this->
setDefaultWeekStart($this->storage->get(
'default_week_start',self::WEEK_START_MONDAY));
223 $query =
"SELECT ref_id FROM object_reference AS obr ".
224 "JOIN object_data AS obd ON obd.obj_id = obr.obj_id ".
225 "WHERE type = 'cals'";
227 $res = $this->db->query($query);
228 $row =
$res->fetchRow();
230 $this->cal_settings_id = $row[0];
241 include_once(
'./Services/Administration/classes/class.ilSetting.php');
242 $this->storage =
new ilSetting(
'calendar');