ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Like\InternalService Class Reference
+ Collaboration diagram for ILIAS\Like\InternalService:

Public Member Functions

 __construct (Container $DIC)
 
 data ()
 
 repo ()
 
 domain ()
 
 gui ()
 

Protected Attributes

Container $DIC
 

Static Protected Attributes

static array $instance = []
 

Detailed Description

Definition at line 25 of file class.InternalService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Like\InternalService::__construct ( Container  $DIC)

Definition at line 30 of file class.InternalService.php.

References ILIAS\Like\InternalService\$DIC.

31  {
32  $this->DIC = $DIC;
33  }

Member Function Documentation

◆ data()

ILIAS\Like\InternalService::data ( )

Definition at line 35 of file class.InternalService.php.

Referenced by ILIAS\Like\InternalService\domain(), ILIAS\Like\InternalService\gui(), and ILIAS\Like\InternalService\repo().

35  : InternalDataService
36  {
37  return self::$instance["data"] ??= new InternalDataService();
38  }
+ Here is the caller graph for this function:

◆ domain()

ILIAS\Like\InternalService::domain ( )

Definition at line 48 of file class.InternalService.php.

References ILIAS\Like\InternalService\data(), and ILIAS\Like\InternalService\repo().

Referenced by ILIAS\Like\InternalService\gui().

48  : InternalDomainService
49  {
50  return self::$instance["domain"] ??= new InternalDomainService(
51  $this->DIC,
52  $this->repo(),
53  $this->data()
54  );
55  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gui()

ILIAS\Like\InternalService::gui ( )

Definition at line 57 of file class.InternalService.php.

References ILIAS\Like\InternalService\data(), and ILIAS\Like\InternalService\domain().

57  : InternalGUIService
58  {
59  return self::$instance["gui"] ??= new InternalGUIService(
60  $this->DIC,
61  $this->data(),
62  $this->domain()
63  );
64  }
+ Here is the call graph for this function:

◆ repo()

ILIAS\Like\InternalService::repo ( )

Definition at line 40 of file class.InternalService.php.

References ILIAS\Like\InternalService\data().

Referenced by ILIAS\Like\InternalService\domain().

40  : InternalRepoService
41  {
42  return self::$instance["repo"] ??= new InternalRepoService(
43  $this->data(),
44  $this->DIC->database()
45  );
46  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $DIC

Container ILIAS\Like\InternalService::$DIC
protected

Definition at line 27 of file class.InternalService.php.

Referenced by ILIAS\Like\InternalService\__construct().

◆ $instance

array ILIAS\Like\InternalService::$instance = []
staticprotected

Definition at line 28 of file class.InternalService.php.


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