Class to represent a time period object.
More...
|
| __construct (?int $startDateTime, ?int $endDateTime) |
| Class constructor.
|
|
object | toJsonldObject () |
| Generate the JSON-LD object representation of the time period.
|
|
object | toJsonObject () |
| Generate the JSON object representation of the image.
|
|
|
static TimePeriod null | fromJsonObject (object $item) |
| Generate a LineItem object from its JSON or JSON-LD representation.
|
|
Class to represent a time period object.
- Author
- Stephen P Vickers steph.nosp@m.en@s.nosp@m.pvsof.nosp@m.twar.nosp@m.eprod.nosp@m.ucts.nosp@m..com
- Copyright
- SPV Software Products
- Licence: http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3
◆ __construct()
__construct |
( |
?int | $startDateTime, |
|
|
?int | $endDateTime ) |
Class constructor.
- Parameters
-
int | null | $startDateTime | Start date/time |
int | null | $endDateTime | End date/time |
◆ fromJsonObject()
static TimePeriod null fromJsonObject |
( |
object | $item | ) |
|
|
static |
Generate a LineItem object from its JSON or JSON-LD representation.
- Parameters
-
object | $item | A JSON or JSON-LD object representing a content-item |
- Returns
- TimePeriod|null The TimePeriod object
◆ toJsonldObject()
object toJsonldObject |
( |
| ) |
|
Generate the JSON-LD object representation of the time period.
- Returns
- object JSON object
References Util\valToString().
◆ toJsonObject()
Generate the JSON object representation of the image.
- Returns
- object JSON object