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; 98 if(is_numeric($a_begin)
and $a_begin)
105 $this->begin = $a_begin;
127 include_once
'./Services/Calendar/classes/class.ilDateTime.php';
143 if(is_numeric($a_end)
and $a_end)
172 include_once
'./Services/Calendar/classes/class.ilDateTime.php';
186 $this->room = $a_room;
209 $this->cycle = $a_cycle;
Base class for ILIAS Exception handling.
Representation of ECS EContent Time Place.
static _before(ilDateTime $start, ilDateTime $end, $a_compare_field='', $a_tz='')
compare two dates and check start is before end This method does not consider tz offsets.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
setCycle($a_cycle)
set cycle
loadFromJson($a_json)
load from json
getUTBegin()
get begin as unix time
setBegin($a_begin)
set begin
__construct()
Constructor.
getUTEnd()
get end as unix time