ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
ReferenceId.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
ReferenceId
17
{
18
private
int
$ref_id
;
19
20
public
function
__construct
(
int
$ref_id)
21
{
22
$this->ref_id =
$ref_id
;
23
}
24
25
public
function
toInt
():
int
26
{
27
return
$this->ref_id
;
28
}
29
30
public
function
toObjectId
():
ObjectId
31
{
32
return
new
ObjectId
(
ilObject2::_lookupObjectId
($this->ref_id));
33
}
34
}
ILIAS\Data\ReferenceId
Definition:
ReferenceId.php:16
ILIAS\Data\ReferenceId\toInt
toInt()
Definition:
ReferenceId.php:25
ILIAS\Data\ReferenceId\$ref_id
int $ref_id
Definition:
ReferenceId.php:18
ILIAS\Data\ReferenceId\toObjectId
toObjectId()
Definition:
ReferenceId.php:30
ilObject\_lookupObjectId
static _lookupObjectId(int $ref_id)
Definition:
class.ilObject.php:1123
ILIAS\Data\ObjectId
Definition:
ObjectId.php:16
ilObject2
ILIAS\Data\ReferenceId\__construct
__construct(int $ref_id)
Definition:
ReferenceId.php:20
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\Data
Definition:
Alphanumeric.php:11
src
Data
ReferenceId.php
Generated on Wed Sep 3 2025 22:02:53 for ILIAS by
1.8.13 (using
Doxyfile
)