ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\Cache\Services\Services Class Reference
+ Inheritance diagram for ILIAS\Cache\Services\Services:
+ Collaboration diagram for ILIAS\Cache\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)
 

Protected Attributes

Container $dic
 

Detailed Description

Definition at line 29 of file Services.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Cache\Services\Services::__construct ( )

Definition at line 33 of file Services.php.

References $DIC.

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

Member Function Documentation

◆ forObject()

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

Implements ILIAS\Cache\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:65

◆ forSubObjects()

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

Implements ILIAS\Cache\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  }
$ref_id
Definition: ltiauth.php:65

◆ getSubObjectID()

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

Implements ILIAS\Cache\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\Cache\Services\Services::$dic
protected

Definition at line 31 of file Services.php.


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