ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
ObjectId.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Data
;
22
23
use
ilObject2
;
24
32
class
ObjectId
33
{
34
private
int
$object_id
;
35
39
public
function
__construct
(
int
$object_id)
40
{
41
$this->object_id =
$object_id
;
42
}
43
44
public
function
toInt
():
int
45
{
46
return
$this->object_id
;
47
}
48
52
public
function
toReferenceIds
(): array
53
{
54
$ref_ids = [];
55
foreach
(
ilObject2::_getAllReferences
($this->object_id) as $reference) {
56
$ref_ids[] =
new
ReferenceId
((
int
) $reference);
57
}
58
59
return
$ref_ids;
60
}
61
}
ILIAS\Data\ReferenceId
Definition:
ReferenceId.php:32
ILIAS\Data\ObjectId\__construct
__construct(int $object_id)
ReferenceId constructor.
Definition:
ObjectId.php:39
ilObject\_getAllReferences
static _getAllReferences(int $id)
get all reference ids for object ID
Definition:
class.ilObject.php:817
ILIAS\Data\ObjectId\toReferenceIds
toReferenceIds()
Definition:
ObjectId.php:52
ILIAS\Data\ObjectId\$object_id
int $object_id
Definition:
ObjectId.php:34
ILIAS\Data\ObjectId
Definition:
ObjectId.php:32
ilObject2
ILIAS\Data\ObjectId\toInt
toInt()
Definition:
ObjectId.php:44
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\Data
Definition:
Alphanumeric.php:24
components
ILIAS
Data
src
ObjectId.php
Generated on Sun Aug 31 2025 23:02:45 for ILIAS by
1.8.13 (using
Doxyfile
)