ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
ObjectModes.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\AdvancedMetaData\Services\ObjectModes
;
22
23
use
ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\CustomInterface
;
24
use
ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom
;
25
use
ILIAS\DI\Container
;
26
27
class
ObjectModes
implements
ObjectModesInterface
28
{
29
protected
Container
$dic
;
30
31
protected
string
$type
;
32
protected
int
$ref_id
;
33
protected
string
$sub_type
;
34
protected
int
$sub_id
;
35
36
public
function
__construct
(
37
Container
$dic,
38
string
$type,
39
int
$ref_id,
40
string
$sub_type =
''
,
41
int
$sub_id = 0
42
) {
43
$this->dic =
$dic
;
44
$this->type =
$type
;
45
$this->ref_id =
$ref_id
;
46
$this->sub_type =
$sub_type
;
47
$this->sub_id =
$sub_id
;
48
}
49
50
public
function
custom
(): CustomInterface
51
{
52
return
new
Custom
(
53
$this->dic->user(),
54
$this->type
,
55
$this->ref_id
,
56
$this->sub_type
,
57
$this->sub_id
58
);
59
}
60
}
ILIAS\Cache\Services::ObjectModes\ObjectModes
Definition:
ObjectModes.php:27
ILIAS\Cache\Services::ObjectModes\ObjectModes\custom
custom()
Definition:
ObjectModes.php:50
ILIAS\AdvancedMetaData\Services\ObjectModes
CustomInterface
ILIAS\Cache\Services::ObjectModes\ObjectModes\$type
string $type
Definition:
ObjectModes.php:31
ILIAS\Cache\Container\Container
Definition:
Container.php:28
ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom
Container
ILIAS\Cache\Services::ObjectModes\ObjectModes\$sub_id
int $sub_id
Definition:
ObjectModes.php:34
ILIAS\Cache\Services::ObjectModes\ObjectModes\$sub_type
string $sub_type
Definition:
ObjectModes.php:33
ILIAS\Cache\Services::ObjectModes\ObjectModes\$ref_id
int $ref_id
Definition:
ObjectModes.php:32
Transformation
ILIAS\Cache\Services::ObjectModes\ObjectModesInterface
Definition:
ObjectModesInterface.php:25
ILIAS\Cache\Services::ObjectModes\ObjectModes\__construct
__construct(Container $dic, string $type, int $ref_id, string $sub_type='', int $sub_id=0)
Definition:
ObjectModes.php:36
ILIAS\Cache\Services::ObjectModes\ObjectModes\$dic
Container $dic
Definition:
ObjectModes.php:29
components
ILIAS
AdvancedMetaData
classes
Services
ObjectModes
ObjectModes.php
Generated on Sun Aug 31 2025 23:02:05 for ILIAS by
1.8.13 (using
Doxyfile
)