ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Resource.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24use ILIAS\Data\Meta\Html\Tag as HTMLTag;
26
30abstract class Resource extends TagCollection
31{
32 public function __construct(
33 URI $resource_url,
34 string $mime_type,
35 HTMLTag ...$additional_tags,
36 ) {
38 new Link($this->getPropertyName(), $resource_url),
39 new Text("{$this->getPropertyName()}:type", $mime_type),
40 ...$additional_tags
41 );
42 }
43
44 abstract protected function getPropertyName(): string;
45}
__construct(URI $resource_url, string $mime_type, HTMLTag ... $additional_tags,)
Definition: Resource.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