ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
Data.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\AdvancedMetaData\Services\SubObjectModes\DataTable
;
22
23
use
ILIAS\AdvancedMetaData\Services\SubObjectIDInterface
;
24
25
class
Data
implements
DataInterface
26
{
27
protected
array
$data
= [];
28
29
public
function
__construct
(array $data)
30
{
31
$this->data =
$data
;
32
}
33
34
public
function
dataForSubObject
(
SubObjectIDInterface
$sub_object_id): array
35
{
36
return
$this->data[$sub_object_id->
subtype
()][$sub_object_id->
objID
()][$sub_object_id->
subID
()] ?? [];
37
}
38
}
Data
ILIAS\Cache\Services::SubObjectModes::DataTable\DataInterface
Definition:
DataInterface.php:25
ILIAS\Cache\Services::SubObjectModes::DataTable\Data\__construct
__construct(array $data)
Definition:
Data.php:29
ILIAS\Cache\Services\SubObjectIDInterface\objID
objID()
ILIAS\Cache\Services\SubObjectIDInterface\subID
subID()
ILIAS\AdvancedMetaData\Services\SubObjectModes\DataTable
Definition:
Data.php:21
ILIAS\Cache\Services::SubObjectModes::DataTable\Data\dataForSubObject
dataForSubObject(SubObjectIDInterface $sub_object_id)
Definition:
Data.php:34
ILIAS\Cache\Services\SubObjectIDInterface
Definition:
SubObjectIDInterface.php:23
ILIAS\Cache\Services\SubObjectIDInterface\subtype
subtype()
SubObjectIDInterface
ILIAS\Cache\Services::SubObjectModes::DataTable\Data\$data
array $data
Definition:
Data.php:27
components
ILIAS
AdvancedMetaData
classes
Services
SubObjectModes
DataTable
Data.php
Generated on Mon Sep 1 2025 23:02:13 for ILIAS by
1.8.13 (using
Doxyfile
)