ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Data\ReferenceId Class Reference
+ Collaboration diagram for ILIAS\Data\ReferenceId:

Public Member Functions

 __construct (int $ref_id)
 
 toInt ()
 
 toObjectId ()
 

Private Attributes

int $ref_id
 

Detailed Description

Definition at line 16 of file ReferenceId.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Data\ReferenceId::__construct ( int  $ref_id)

Definition at line 20 of file ReferenceId.php.

References ILIAS\Data\ReferenceId\$ref_id.

21  {
22  $this->ref_id = $ref_id;
23  }

Member Function Documentation

◆ toInt()

ILIAS\Data\ReferenceId::toInt ( )

Definition at line 25 of file ReferenceId.php.

References ILIAS\Data\ReferenceId\$ref_id.

25  : int
26  {
27  return $this->ref_id;
28  }

◆ toObjectId()

ILIAS\Data\ReferenceId::toObjectId ( )

Definition at line 30 of file ReferenceId.php.

References ilObject\_lookupObjectId().

30  : ObjectId
31  {
32  return new ObjectId(ilObject2::_lookupObjectId($this->ref_id));
33  }
static _lookupObjectId(int $ref_id)
+ Here is the call graph for this function:

Field Documentation

◆ $ref_id

int ILIAS\Data\ReferenceId::$ref_id
private

The documentation for this class was generated from the following file: