ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ 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\ObjectId
Definition:
ObjectId.php:33
ILIAS\Data\ReferenceId
Definition:
ReferenceId.php:33
ILIAS\Data\ReferenceId\toInt
toInt()
Definition:
ReferenceId.php:41
ILIAS\Data\ReferenceId\__construct
__construct(int $ref_id)
Definition:
ReferenceId.php:36
ILIAS\Data\ReferenceId\toObjectId
toObjectId()
Definition:
ReferenceId.php:46
ILIAS\Data\ReferenceId\$ref_id
int $ref_id
Definition:
ReferenceId.php:34
ilObject2
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilObject2.php:24
ilObject\_lookupObjectId
static _lookupObjectId(int $ref_id)
Definition:
class.ilObject.php:1133
ILIAS\Data
Definition:
Alphanumeric.php:24
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
components
ILIAS
Data
src
ReferenceId.php
Generated on Sat Oct 18 2025 23:02:54 for ILIAS by
1.9.4 (using
Doxyfile
)