ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
ObjectId.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\Data
;
6
7
use
ilObject2
;
8
16
class
ObjectId
17
{
18
private
int
$object_id
;
19
23
public
function
__construct
(
int
$object_id)
24
{
25
$this->object_id =
$object_id
;
26
}
27
28
public
function
toInt
():
int
29
{
30
return
$this->object_id
;
31
}
32
36
public
function
toReferenceIds
(): array
37
{
38
$ref_ids = [];
39
foreach
(
ilObject2::_getAllReferences
($this->object_id) as $reference) {
40
$ref_ids[] =
new
ReferenceId
((
int
) $reference);
41
}
42
43
return
$ref_ids;
44
}
45
}
ILIAS\Data\ReferenceId
Definition:
ReferenceId.php:16
ILIAS\Data\ObjectId\__construct
__construct(int $object_id)
ReferenceId constructor.
Definition:
ObjectId.php:23
ilObject\_getAllReferences
static _getAllReferences(int $id)
get all reference ids for object ID
Definition:
class.ilObject.php:816
ILIAS\Data\ObjectId\toReferenceIds
toReferenceIds()
Definition:
ObjectId.php:36
ILIAS\Data\ObjectId\$object_id
int $object_id
Definition:
ObjectId.php:18
ILIAS\Data\ObjectId
Definition:
ObjectId.php:16
ilObject2
ILIAS\Data\ObjectId\toInt
toInt()
Definition:
ObjectId.php:28
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\Data
Definition:
Alphanumeric.php:11
src
Data
ObjectId.php
Generated on Sun Apr 6 2025 22:02:57 for ILIAS by
1.8.13 (using
Doxyfile
)