64 if(!is_object($a_json))
66 $ilLog->write(__METHOD__ .
': Cannot load from JSON. No object given.');
70 $this->room = $a_json->room;
71 $this->begin = $a_json->begin;
72 $this->end = $a_json->end;
73 $this->cycle = $a_json->cycle;
74 #$this->day = $a_json->day;
86 if(is_numeric($a_begin) and $a_begin)
88 $this->begin = date(
'c', $a_begin);
92 $this->begin = $a_begin;
114 include_once(
'Date.php');
117 $date->setDate($this->begin);
118 return $date->getDate(DATE_FORMAT_UNIXTIME);
131 if(is_numeric($a_end) and $a_end)
133 $this->end = date(
'c', $a_end);
159 include_once(
'Date.php');
162 $date->setDate($this->end);
163 return $date->getDate(DATE_FORMAT_UNIXTIME);
175 $this->room = $a_room;
198 $this->cycle = $a_cycle;