Class to represent a time period object. More...
Public Member Functions | |
| __construct ($startDateTime, $endDateTime) | |
| Class constructor. | |
| toJsonldObject () | |
| Generate the JSON-LD object representation of the time period. | |
| toJsonObject () | |
| Generate the JSON object representation of the image. | |
Static Public Member Functions | |
| static | fromJsonObject ($item) |
| Generate a LineItem object from its JSON or JSON-LD representation. | |
Class to represent a time period object.
Definition at line 12 of file TimePeriod.php.
| __construct | ( | $startDateTime, | |
| $endDateTime | |||
| ) |
Class constructor.
| int | null | $startDateTime | Start date/time |
| int | null | $endDateTime | End date/time |
Definition at line 35 of file TimePeriod.php.
|
static |
Generate a LineItem object from its JSON or JSON-LD representation.
| object | $item | A JSON or JSON-LD object representing a content-item |
Definition at line 84 of file TimePeriod.php.
Referenced by LtiLinkItem\fromJsonObject().
| toJsonldObject | ( | ) |
Generate the JSON-LD object representation of the time period.
Definition at line 50 of file TimePeriod.php.
References TimePeriod\toJsonObject().
| toJsonObject | ( | ) |
Generate the JSON object representation of the image.
Definition at line 60 of file TimePeriod.php.
Referenced by TimePeriod\toJsonldObject().