ILIAS  release_7 Revision v7.30-3-g800a261c036
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

 $object_id
 

Detailed Description

Definition at line 12 of file ObjectId.php.

Constructor & Destructor Documentation

◆ __construct()

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

ReferenceId constructor.

Parameters
int$object_id

Definition at line 26 of file ObjectId.php.

References ILIAS\Data\ObjectId\$object_id.

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

Member Function Documentation

◆ toInt()

ILIAS\Data\ObjectId::toInt ( )
Returns
int

Definition at line 35 of file ObjectId.php.

References ILIAS\Data\ObjectId\$object_id.

35  : int
36  {
37  return (int) $this->object_id;
38  }

◆ toReferenceIds()

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

Definition at line 44 of file ObjectId.php.

References ilObject2\_getAllReferences().

44  : array
45  {
46  $ref_ids = [];
47  foreach (ilObject2::_getAllReferences($this->object_id) as $reference) {
48  $ref_ids[] = new ReferenceId((int) $reference);
49  }
50 
51  return $ref_ids;
52  }
static _getAllReferences($a_id)
+ Here is the call graph for this function:

Field Documentation

◆ $object_id

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: