ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\AdvancedMetaData\Services\Services Class Reference
+ Inheritance diagram for ILIAS\AdvancedMetaData\Services\Services:
+ Collaboration diagram for ILIAS\AdvancedMetaData\Services\Services:

Public Member Functions

 __construct ()
 
 forObject (string $type, int $ref_id, string $sub_type='', int $sub_id=0)
 
 forSubObjects (string $type, int $ref_id, string ... $sub_types)
 
 getSubObjectID (int $obj_id, int $sub_id, string $sub_type)
 
 forObject (string $type, int $ref_id, string $sub_type='', int $sub_id=0)
 
 forSubObjects (string $type, int $ref_id, string ... $sub_types)
 
 getSubObjectID (int $obj_id, int $sub_id, string $sub_type)
 

Protected Attributes

Container $dic
 

Detailed Description

Definition at line 29 of file Services.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\AdvancedMetaData\Services\Services::__construct ( )

Definition at line 33 of file Services.php.

34 {
35 global $DIC;
36
37 $this->dic = $DIC;
38 }
global $DIC
Definition: shib_login.php:26

References $DIC.

Member Function Documentation

◆ forObject()

ILIAS\AdvancedMetaData\Services\Services::forObject ( string  $type,
int  $ref_id,
string  $sub_type = '',
int  $sub_id = 0 
)

Implements ILIAS\AdvancedMetaData\Services\ServicesInterface.

Definition at line 40 of file Services.php.

45 : ObjectModesInterface {
46 return new ObjectModes(
47 $this->dic,
48 $type,
49 $ref_id,
50 $sub_type,
51 $sub_id
52 );
53 }
$ref_id
Definition: ltiauth.php:66

◆ forSubObjects()

ILIAS\AdvancedMetaData\Services\Services::forSubObjects ( string  $type,
int  $ref_id,
string ...  $sub_types 
)

Implements ILIAS\AdvancedMetaData\Services\ServicesInterface.

Definition at line 55 of file Services.php.

59 : SubObjectModesInterface {
60 return new SubObjectModes(
61 $this->dic,
62 $type,
63 $ref_id,
64 ...$sub_types
65 );
66 }

◆ getSubObjectID()

ILIAS\AdvancedMetaData\Services\Services::getSubObjectID ( int  $obj_id,
int  $sub_id,
string  $sub_type 
)

Implements ILIAS\AdvancedMetaData\Services\ServicesInterface.

Definition at line 68 of file Services.php.

72 : SubObjectIDInterface {
73 return new SubObjectID($obj_id, $sub_id, $sub_type);
74 }

Field Documentation

◆ $dic

Container ILIAS\AdvancedMetaData\Services\Services::$dic
protected

Definition at line 31 of file Services.php.


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