ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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...
 
 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 
)

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.

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

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

◆ 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.

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

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

◆ 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.

39 : string
40 {
41 return $this->type;
42 }

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

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

+ 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: