64 if(!is_object($a_json))
66 include_once(
'./Services/WebServices/ECS/classes/class.ilECSReaderException.php');
67 $ilLog->write(__METHOD__ .
': Cannot load from JSON. No object given.');
71 $this->room = $a_json->room;
72 $this->begin = $a_json->begin;
73 $this->end = $a_json->end;
74 $this->cycle = $a_json->cycle;
75 #$this->day = $a_json->day;
87 if(is_numeric($a_begin) and $a_begin)
89 $this->begin = date(
'c', $a_begin);
93 $this->begin = $a_begin;
115 include_once(
'Date.php');
118 $date->setDate($this->begin);
119 return $date->getDate(DATE_FORMAT_UNIXTIME);
132 if(is_numeric($a_end) and $a_end)
134 $this->end = date(
'c', $a_end);
160 include_once(
'Date.php');
163 $date->setDate($this->end);
164 return $date->getDate(DATE_FORMAT_UNIXTIME);
176 $this->room = $a_room;
199 $this->cycle = $a_cycle;