ILIAS  release_7 Revision v7.30-3-g800a261c036
ILIAS\Data\ReferenceId Class Reference
+ Collaboration diagram for ILIAS\Data\ReferenceId:

Public Member Functions

 __construct (int $ref_id)
 ReferenceId constructor. More...
 
 toInt ()
 Get the password-string. More...
 
 toObjectId ()
 

Private Attributes

 $ref_id
 

Detailed Description

Definition at line 12 of file ReferenceId.php.

Constructor & Destructor Documentation

◆ __construct()

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

ReferenceId constructor.

Parameters
int$ref_id

Definition at line 26 of file ReferenceId.php.

27 {
28 $this->ref_id = $ref_id;
29 }

References ILIAS\Data\ReferenceId\$ref_id.

Member Function Documentation

◆ toInt()

ILIAS\Data\ReferenceId::toInt ( )

Get the password-string.

Returns
string

Definition at line 37 of file ReferenceId.php.

37 : int
38 {
39 return (int) $this->ref_id;
40 }

References ILIAS\Data\ReferenceId\$ref_id.

◆ toObjectId()

ILIAS\Data\ReferenceId::toObjectId ( )
Returns
ObjectId

Definition at line 46 of file ReferenceId.php.

46 : ObjectId
47 {
48 return new ObjectId((int) ilObject2::_lookupObjectId($this->ref_id));
49 }
static _lookupObjectId($a_ref_id)
lookup object id

References ilObject2\_lookupObjectId().

+ Here is the call graph for this function:

Field Documentation

◆ $ref_id

ILIAS\Data\ReferenceId::$ref_id
private

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