64 if(!is_object($a_json))
66 $ilLog->write(__METHOD__ .
': Cannot load from JSON. No object given.');
70 $GLOBALS[
'ilLog']->write(__METHOD__.
': '.print_r($a_json,
true));
72 $this->room = $a_json->room;
73 $this->begin = $a_json->begin;
74 $this->end = $a_json->end;
75 $this->cycle = $a_json->cycle;
76 #$this->day = $a_json->day;
88 if(is_numeric($a_begin) and $a_begin)
90 $this->begin = date(
'c', $a_begin);
94 $this->begin = $a_begin;
116 if(!@include_once(
'Date.php'))
122 $date->setDate($this->begin);
123 return $date->getDate(DATE_FORMAT_UNIXTIME);
136 if(is_numeric($a_end) and $a_end)
138 $this->end = date(
'c', $a_end);
165 if(!@include_once(
'Date.php'))
171 $date->setDate($this->end);
172 return $date->getDate(DATE_FORMAT_UNIXTIME);
184 $this->room = $a_room;
207 $this->cycle = $a_cycle;