ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
ObjectId.php
Go to the documentation of this file.
1
<?php
namespace
ILIAS\Data
;
2
3
use
ilObject2
;
4
12
class
ObjectId
13
{
14
18
private
$object_id
;
19
20
26
public
function
__construct
(
int
$object_id
)
27
{
28
$this->object_id =
$object_id
;
29
}
30
31
35
public
function
toInt
() : int
36
{
37
return
(
int
)
$this->object_id
;
38
}
39
40
44
public
function
toReferenceIds
() : array
45
{
46
$ref_ids = [];
47
foreach
(
ilObject2::_getAllReferences
($this->object_id) as $reference) {
48
$ref_ids[] =
new
ReferenceId
((
int
) $reference);
49
}
50
51
return
$ref_ids;
52
}
53
}
ILIAS\Data\ReferenceId
Definition:
ReferenceId.php:12
ILIAS\Data\ObjectId\__construct
__construct(int $object_id)
ReferenceId constructor.
Definition:
ObjectId.php:26
ilObject2\_getAllReferences
static _getAllReferences($a_id)
Definition:
class.ilObject2.php:243
ILIAS\Data\ObjectId\toReferenceIds
toReferenceIds()
Definition:
ObjectId.php:44
ILIAS\Data\ObjectId\$object_id
$object_id
Definition:
ObjectId.php:18
ILIAS\Data\ObjectId
Definition:
ObjectId.php:12
ilObject2
ILIAS\Data\ObjectId\toInt
toInt()
Definition:
ObjectId.php:35
ILIAS\Data
Definition:
Alphanumeric.php:10
src
Data
ObjectId.php
Generated on Tue Sep 2 2025 20:01:28 for ILIAS by
1.8.13 (using
Doxyfile
)