ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
Resource.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 abstract class Resource extends TagCollection
30 {
31  public function __construct(
32  URI $resource_url,
33  string $mime_type,
34  HTMLTag ...$additional_tags,
35  ) {
37  new Link($this->getPropertyName(), $resource_url),
38  new Text("{$this->getPropertyName()}:type", $mime_type),
39  ...$additional_tags
40  );
41  }
42 
43  abstract protected function getPropertyName(): string;
44 }
__construct(URI $resource_url, string $mime_type, HTMLTag ... $additional_tags,)
Definition: Resource.php:31
__construct(VocabulariesInterface $vocabularies)
The scope of this class is split ilias-conform URI&#39;s into components.
Definition: URI.php:18