Representation of ECS EContent Time Place.
More...
Representation of ECS EContent Time Place.
- Author
- Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
- Version
- $Id$
Definition at line 34 of file class.ilECSTimePlace.php.
◆ __construct()
ilECSTimePlace::__construct |
( |
| ) |
|
◆ getBegin()
ilECSTimePlace::getBegin |
( |
| ) |
|
◆ getCycle()
ilECSTimePlace::getCycle |
( |
| ) |
|
◆ getEnd()
ilECSTimePlace::getEnd |
( |
| ) |
|
◆ getRoom()
ilECSTimePlace::getRoom |
( |
| ) |
|
◆ getUTBegin()
ilECSTimePlace::getUTBegin |
( |
| ) |
|
get begin as unix time
public
Definition at line 114 of file class.ilECSTimePlace.php.
116 if(!@include_once(
'Date.php'))
122 $date->setDate($this->begin);
123 return $date->getDate(DATE_FORMAT_UNIXTIME);
◆ getUTEnd()
ilECSTimePlace::getUTEnd |
( |
| ) |
|
get end as unix time
public
Definition at line 162 of file class.ilECSTimePlace.php.
165 if(!@include_once(
'Date.php'))
171 $date->setDate($this->end);
172 return $date->getDate(DATE_FORMAT_UNIXTIME);
◆ loadFromJson()
ilECSTimePlace::loadFromJson |
( |
|
$a_json | ) |
|
load from json
public
- Parameters
-
object | json representation |
- Exceptions
-
Definition at line 60 of file class.ilECSTimePlace.php.
References $GLOBALS, and $ilLog.
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; Base class for ILIAS Exception handling.
◆ setBegin()
ilECSTimePlace::setBegin |
( |
|
$a_begin | ) |
|
set begin
public
Definition at line 85 of file class.ilECSTimePlace.php.
88 if(is_numeric($a_begin) and $a_begin)
90 $this->begin = date(
'c', $a_begin);
94 $this->begin = $a_begin;
◆ setCycle()
ilECSTimePlace::setCycle |
( |
|
$a_cycle | ) |
|
◆ setEnd()
ilECSTimePlace::setEnd |
( |
|
$a_end | ) |
|
set end
public
- Parameters
-
Definition at line 133 of file class.ilECSTimePlace.php.
136 if(is_numeric($a_end) and $a_end)
138 $this->end = date(
'c', $a_end);
◆ setRoom()
ilECSTimePlace::setRoom |
( |
|
$a_room | ) |
|
◆ $begin
ilECSTimePlace::$begin = '' |
◆ $cycle
ilECSTimePlace::$cycle = '' |
◆ $end
ilECSTimePlace::$end = '' |
◆ $room
ilECSTimePlace::$room = '' |
The documentation for this class was generated from the following file: