ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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)
 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.

References ILIAS\Data\ReferenceId\$ref_id.

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

Member Function Documentation

◆ toInt()

ILIAS\Data\ReferenceId::toInt ( )

Get the password-string.

Returns
string

Definition at line 37 of file ReferenceId.php.

References ILIAS\Data\ReferenceId\$ref_id.

Referenced by ILIAS\GlobalScreen\ScreenContext\BasicScreenContext\hasReferenceId().

37  : int
38  {
39  return (int) $this->ref_id;
40  }
+ Here is the caller graph for this function:

◆ toObjectId()

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

Definition at line 46 of file ReferenceId.php.

References ilObject2\_lookupObjectId().

46  : ObjectId
47  {
48  return new ObjectId((int) ilObject2::_lookupObjectId($this->ref_id));
49  }
static _lookupObjectId($a_ref_id)
+ 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: