ILIAS  trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Resource.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 abstract 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
__construct(Container $dic, ilPlugin $plugin)