Class to represent a content-item image object. More...
Public Member Functions | |
| __construct ($id, $height=null, $width=null) | |
| Class constructor. | |
Public Member Functions inherited from Image | |
| __construct ($url, $width=null, $height=null) | |
| Class constructor. | |
| toJsonldObject () | |
| Generate the JSON-LD object representation of the image. | |
| toJsonObject () | |
| Generate the JSON object representation of the image. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Image | |
| static | fromJsonObject ($item) |
| Generate an Image object from its JSON or JSON-LD representation. | |
Class to represent a content-item image object.
Definition at line 17 of file ContentItemImage.php.
| __construct | ( | $id, | |
$height = null, |
|||
$width = null |
|||
| ) |
Class constructor.
| string | $id | URL of image |
| int | $height | Height of image in pixels (optional) |
| int | $width | Width of image in pixels (optional) |
Reimplemented from Image.
Definition at line 27 of file ContentItemImage.php.
References Util\logDebug().