ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
ReferenceId.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
ReferenceId
33
{
34
private
int
$ref_id
;
35
36
public
function
__construct
(
int
$ref_id)
37
{
38
$this->ref_id =
$ref_id
;
39
}
40
41
public
function
toInt
():
int
42
{
43
return
$this->ref_id
;
44
}
45
46
public
function
toObjectId
():
ObjectId
47
{
48
return
new
ObjectId
(
ilObject2::_lookupObjectId
($this->ref_id));
49
}
50
}
ILIAS\Data\ReferenceId
Definition:
ReferenceId.php:32
ILIAS\Data\ReferenceId\toInt
toInt()
Definition:
ReferenceId.php:41
ILIAS\Data\ReferenceId\$ref_id
int $ref_id
Definition:
ReferenceId.php:34
ILIAS\Data\ReferenceId\toObjectId
toObjectId()
Definition:
ReferenceId.php:46
ilObject\_lookupObjectId
static _lookupObjectId(int $ref_id)
Definition:
class.ilObject.php:1124
ILIAS\Data\ObjectId
Definition:
ObjectId.php:32
ilObject2
ILIAS\Data\ReferenceId\__construct
__construct(int $ref_id)
Definition:
ReferenceId.php:36
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\Data
Definition:
Alphanumeric.php:24
components
ILIAS
Data
src
ReferenceId.php
Generated on Sun Aug 31 2025 23:02:45 for ILIAS by
1.8.13 (using
Doxyfile
)