ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
Resource.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Data\Meta\Html\OpenGraph
;
22
23
use
ILIAS\Data\Meta\Html\TagCollection
;
24
use
ILIAS\Data\Meta\Html\Tag
as
HTMLTag
;
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
) {
37
parent::__construct
(
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
}
ILIAS\Data\Meta\Html\OpenGraph\Resource\__construct
__construct(URI $resource_url, string $mime_type, HTMLTag ... $additional_tags,)
Definition:
Resource.php:32
ILIAS\Data\Meta\Html\OpenGraph\Resource\getPropertyName
getPropertyName()
TagCollection
ILIAS\Data\Meta\Html\OpenGraph\Resource
Definition:
Resource.php:30
ILIAS\Data\Meta\Html\OpenGraph
Definition:
Audio.php:21
Standard
ILIAS\Data\Meta\Html\OpenGraph\TagCollection
Definition:
TagCollection.php:28
Tag
ILIAS\Data\Meta\Html\OpenGraph\Text
Definition:
Text.php:26
ILIAS\Data\URI
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
components
ILIAS
Data
src
Meta
Html
OpenGraph
Resource.php
Generated on Sun Aug 31 2025 23:02:45 for ILIAS by
1.8.13 (using
Doxyfile
)