ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Image.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
30class Image extends Resource
31{
32 public function __construct(
33 URI $image_url,
34 string $mime_type,
35 ?string $aria_label = null,
36 ?int $width = null,
37 ?int $height = null,
38 ) {
40 $image_url,
41 $mime_type,
42 (null !== $aria_label) ? new Text('og:image:alt', $aria_label) : new NullTag(),
43 (null !== $width) ? new Text('og:image:width', (string) $width) : new NullTag(),
44 (null !== $height) ? new Text('og:image:height', (string) $height) : new NullTag(),
45 );
46 }
47
48 protected function getPropertyName(): string
49 {
50 return 'og:image';
51 }
52}
__construct(URI $image_url, string $mime_type, ?string $aria_label=null, ?int $width=null, ?int $height=null,)
Definition: Image.php:32
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc