ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ObjectManager.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 {
25  protected int $obj_id;
26  protected int $ref_id;
27 
28  public function __construct(
29  int $ref_id
30  ) {
31  $this->ref_id = $ref_id;
32  $this->obj_id = \ilObject::_lookupObjectId($ref_id);
33  }
34 
35  public function getId(): int
36  {
37  return $this->obj_id;
38  }
39 
40  public function getRefId(): int
41  {
42  return $this->ref_id;
43  }
44 
45 }
static _lookupObjectId(int $ref_id)