ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Video.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 use ILIAS\Data\URI;
26 
30 class 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 }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(URI $video_url, string $mime_type, ?int $width=null, ?int $height=null,)
Definition: Video.php:32
__construct(Container $dic, ilPlugin $plugin)