ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
Video.php
Go to the documentation of this file.
1 <?php
2 
18 declare(strict_types=1);
19 
21 
24 use ILIAS\Data\URI;
25 
29 class Video extends Resource
30 {
31  public function __construct(
32  URI $video_url,
33  string $mime_type,
34  ?int $width = null,
35  ?int $height = null,
36  ) {
38  $video_url,
39  $mime_type,
40  (null !== $width) ? new Text('og:video:width', (string) $width) : new NullTag(),
41  (null !== $height) ? new Text('og:video:height', (string) $height) : new NullTag(),
42  );
43  }
44 
45  protected function getPropertyName(): string
46  {
47  return 'og:video';
48  }
49 }
__construct(VocabulariesInterface $vocabularies)
The scope of this class is split ilias-conform URI&#39;s into components.
Definition: URI.php:18
__construct(URI $video_url, string $mime_type, ?int $width=null, ?int $height=null,)
Definition: Video.php:31