ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ObjectManager.php
Go to the documentation of this file.
1<?php
2
19declare(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)