ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
RessourceID.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 $sub_id;
27 protected string $type;
28
29 public function __construct(
30 int $obj_id,
31 int $sub_id,
32 string $type
33 ) {
34 $this->obj_id = $obj_id;
35 $this->sub_id = $sub_id;
36 $this->type = $type;
37 }
38
39 public function type(): string
40 {
41 return $this->type;
42 }
43
44 public function objID(): int
45 {
46 return $this->obj_id;
47 }
48
49 public function subID(): int
50 {
51 return $this->sub_id;
52 }
53}
objID()
Object ID (NOT ref_id!) of the parent repository object (e.g for page objects the obj_id of the conte...
Definition: RessourceID.php:44
subID()
ID of the object carrying the metadata, which might be a subobject of an enclosing repository object ...
Definition: RessourceID.php:49
__construct(int $obj_id, int $sub_id, string $type)
Definition: RessourceID.php:29
type()
(Sub-)Type of the object (e.g st,pg,crs ...) NOTE: In the metadata tables, this corresponds to the fi...
Definition: RessourceID.php:39