Class to represent a content-item image object.
More...
|
| | __construct ($url, $width=null, $height=null) |
| | Class constructor.
|
| |
| object | toJsonldObject () |
| | Generate the JSON-LD object representation of the image.
|
| |
| object | toJsonObject () |
| | Generate the JSON object representation of the image.
|
| |
|
| static Image null | fromJsonObject ($item) |
| | Generate an Image object from its JSON or JSON-LD representation.
|
| |
Class to represent a content-item image 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 |
( |
|
$url, |
|
|
|
$width = null, |
|
|
|
$height = null |
|
) |
| |
Class constructor.
- Parameters
-
| string | $url | URL of image |
| int | $width | Width of image in pixels (optional) |
| int | $height | Height of image in pixels (optional) |
Reimplemented in ContentItemImage.
◆ fromJsonObject()
| static Image null fromJsonObject |
( |
|
$item | ) |
|
|
static |
Generate an Image object from its JSON or JSON-LD representation.
- Parameters
-
| object | $item | A JSON or JSON-LD object representing a content-item |
- Returns
- Image|null The Image object
◆ toJsonldObject()
| object toJsonldObject |
( |
| ) |
|
Generate the JSON-LD object representation of the image.
- Returns
- object
◆ toJsonObject()
Generate the JSON object representation of the image.
- Returns
- object
The documentation for this class was generated from the following file: