63 if (!is_object($a_json)) {
64 $ilLog->write(__METHOD__ .
': Cannot load from JSON. No object given.');
68 $GLOBALS[
'ilLog']->write(__METHOD__ .
': ' . print_r($a_json,
true));
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; 94 if (is_numeric($a_begin) and $a_begin) {
98 $this->begin = $a_begin;
120 include_once
'./Services/Calendar/classes/class.ilDateTime.php';
135 if (is_numeric($a_end) and $a_end) {
161 include_once
'./Services/Calendar/classes/class.ilDateTime.php';
175 $this->room = $a_room;
198 $this->cycle = $a_cycle;
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