Class to represent a content-item image object. More...
Public Member Functions | |
| __construct (string $url, ?int $width=null, ?int $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 Public Member Functions | |
| static Image null | fromJsonObject (object|string $item) | 
| Generate an Image object from its JSON or JSON-LD representation.   | |
Class to represent a content-item image object.
| ceLTIc\LTI\Content\Image::__construct | ( | string | $url, | 
| ?int | $width = null, | ||
| ?int | $height = null ) | 
Class constructor.
| string | $url | URL of image | 
| int | null | $width | Width of image in pixels (optional) | 
| int | null | $height | Height of image in pixels (optional) | 
      
  | 
  static | 
Generate an Image object from its JSON or JSON-LD representation.
| object | string | $item | A JSON or JSON-LD object representing an image or an image URL | 
Referenced by ceLTIc\LTI\Content\Item\fromJsonObject(), and toJsonldObject().
| object ceLTIc\LTI\Content\Image::toJsonldObject | ( | ) | 
Generate the JSON-LD object representation of the image.
References ceLTIc\LTI\Util\checkInteger(), ceLTIc\LTI\Util\checkUrl(), and fromJsonObject().
| object ceLTIc\LTI\Content\Image::toJsonObject | ( | ) | 
Generate the JSON object representation of the image.
References ceLTIc\LTI\Util\$strictMode.