ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Video.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
30class Video extends Resource
31{
32 public function __construct(
33 URI $video_url,
34 string $mime_type,
35 ?int $width = null,
36 ?int $height = null,
37 ) {
39 $video_url,
40 $mime_type,
41 (null !== $width) ? new Text('og:video:width', (string) $width) : new NullTag(),
42 (null !== $height) ? new Text('og:video:height', (string) $height) : new NullTag(),
43 );
44 }
45
46 protected function getPropertyName(): string
47 {
48 return 'og:video';
49 }
50}
__construct(URI $video_url, string $mime_type, ?int $width=null, ?int $height=null,)
Definition: Video.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