63 $ilLog = $DIC[
'ilLog'];
65 if (!is_object($a_json)) {
66 $ilLog->write(__METHOD__ .
': Cannot load from JSON. No object given.');
70 $GLOBALS[
'DIC'][
'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; 96 if (is_numeric($a_begin) and $a_begin) {
100 $this->begin = $a_begin;
122 include_once
'./Services/Calendar/classes/class.ilDateTime.php';
137 if (is_numeric($a_end) and $a_end) {
163 include_once
'./Services/Calendar/classes/class.ilDateTime.php';
177 $this->room = $a_room;
200 $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.
setCycle($a_cycle)
set cycle
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
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