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

Public Member Functions

 __construct (int $object_id)
 ReferenceId constructor. More...
 
 toInt ()
 
 toReferenceIds ()
 

Private Attributes

int $object_id
 

Detailed Description

Definition at line 16 of file ObjectId.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Data\ObjectId::__construct ( int  $object_id)

ReferenceId constructor.

Definition at line 23 of file ObjectId.php.

References ILIAS\Data\ObjectId\$object_id.

24  {
25  $this->object_id = $object_id;
26  }

Member Function Documentation

◆ toInt()

ILIAS\Data\ObjectId::toInt ( )

Definition at line 28 of file ObjectId.php.

References ILIAS\Data\ObjectId\$object_id.

28  : int
29  {
30  return $this->object_id;
31  }

◆ toReferenceIds()

ILIAS\Data\ObjectId::toReferenceIds ( )
Returns
ReferenceId[]

Definition at line 36 of file ObjectId.php.

References ilObject\_getAllReferences().

36  : array
37  {
38  $ref_ids = [];
39  foreach (ilObject2::_getAllReferences($this->object_id) as $reference) {
40  $ref_ids[] = new ReferenceId((int) $reference);
41  }
42 
43  return $ref_ids;
44  }
static _getAllReferences(int $id)
get all reference ids for object ID
+ Here is the call graph for this function:

Field Documentation

◆ $object_id

int ILIAS\Data\ObjectId::$object_id
private

Definition at line 18 of file ObjectId.php.

Referenced by ILIAS\Data\ObjectId\__construct(), and ILIAS\Data\ObjectId\toInt().


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