ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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()

◆ 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


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