ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\MetaData\Elements\RessourceID\RessourceID Class Reference
+ Inheritance diagram for ILIAS\MetaData\Elements\RessourceID\RessourceID:
+ Collaboration diagram for ILIAS\MetaData\Elements\RessourceID\RessourceID:

Public Member Functions

 __construct (int $obj_id, int $sub_id, string $type)
 
 type ()
 (Sub-)Type of the object (e.g st,pg,crs ...) NOTE: In the metadata tables, this corresponds to the field obj_type. More...
 
 objID ()
 Object ID (NOT ref_id!) of the parent repository object (e.g for page objects the obj_id of the content object; for media objects this is set to 0, because their object id are not assigned to ref ids) NOTE: In the metadata tables, this corresponds to the field rbac_id. More...
 
 subID ()
 ID of the object carrying the metadata, which might be a subobject of an enclosing repository object (e.g for structure objects the obj_id of the structure object). More...
 

Protected Attributes

int $obj_id
 
int $sub_id
 
string $type
 

Detailed Description

Definition at line 23 of file RessourceID.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\MetaData\Elements\RessourceID\RessourceID::__construct ( int  $obj_id,
int  $sub_id,
string  $type 
)

Definition at line 29 of file RessourceID.php.

References ILIAS\MetaData\Elements\RessourceID\RessourceID\$obj_id, ILIAS\MetaData\Elements\RessourceID\RessourceID\$sub_id, ILIAS\MetaData\Elements\RessourceID\RessourceID\$type, and ILIAS\MetaData\Elements\RessourceID\RessourceID\type().

33  {
34  $this->obj_id = $obj_id;
35  $this->sub_id = $sub_id;
36  $this->type = $type;
37  }
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
+ Here is the call graph for this function:

Member Function Documentation

◆ objID()

ILIAS\MetaData\Elements\RessourceID\RessourceID::objID ( )

Object ID (NOT ref_id!) of the parent repository object (e.g for page objects the obj_id of the content object; for media objects this is set to 0, because their object id are not assigned to ref ids) NOTE: In the metadata tables, this corresponds to the field rbac_id.

Implements ILIAS\MetaData\Elements\RessourceID\RessourceIDInterface.

Definition at line 44 of file RessourceID.php.

References ILIAS\MetaData\Elements\RessourceID\RessourceID\$obj_id.

44  : int
45  {
46  return $this->obj_id;
47  }

◆ subID()

ILIAS\MetaData\Elements\RessourceID\RessourceID::subID ( )

ID of the object carrying the metadata, which might be a subobject of an enclosing repository object (e.g for structure objects the obj_id of the structure object).

Might be the same as the objID. NOTE: In the metadata tables, this corresponds to the field obj_id.

Implements ILIAS\MetaData\Elements\RessourceID\RessourceIDInterface.

Definition at line 49 of file RessourceID.php.

References ILIAS\MetaData\Elements\RessourceID\RessourceID\$sub_id.

49  : int
50  {
51  return $this->sub_id;
52  }

◆ type()

ILIAS\MetaData\Elements\RessourceID\RessourceID::type ( )

(Sub-)Type of the object (e.g st,pg,crs ...) NOTE: In the metadata tables, this corresponds to the field obj_type.

Implements ILIAS\MetaData\Elements\RessourceID\RessourceIDInterface.

Definition at line 39 of file RessourceID.php.

References ILIAS\MetaData\Elements\RessourceID\RessourceID\$type.

Referenced by ILIAS\MetaData\Elements\RessourceID\RessourceID\__construct().

39  : string
40  {
41  return $this->type;
42  }
+ Here is the caller graph for this function:

Field Documentation

◆ $obj_id

int ILIAS\MetaData\Elements\RessourceID\RessourceID::$obj_id
protected

◆ $sub_id

int ILIAS\MetaData\Elements\RessourceID\RessourceID::$sub_id
protected

◆ $type

string ILIAS\MetaData\Elements\RessourceID\RessourceID::$type
protected

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