ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Awareness\InternalDomainService Class Reference
+ Collaboration diagram for ILIAS\Awareness\InternalDomainService:

Public Member Functions

 __construct (Container $DIC, InternalRepoService $repo_service, InternalDataService $data_service)
 
 widget (int $user_id, int $ref_id=0)
 
 admin (int $ref_id)
 
 awarenessSettings ()
 
 userProvider ()
 
 userCollector (int $user_id, int $ref_id=0)
 

Protected Attributes

Container $dic
 
InternalRepoService $repo_service
 
InternalDataService $data_service
 
ilUserActionProviderFactory $user_action_provider_factory
 
ilUserActionAdmin $user_action_admin
 

Static Protected Attributes

static array $managers = array()
 
static array $collectors = array()
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 29 of file class.InternalDomainService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Awareness\InternalDomainService::__construct ( Container  $DIC,
InternalRepoService  $repo_service,
InternalDataService  $data_service 
)

Definition at line 45 of file class.InternalDomainService.php.

49 {
50 $this->repo_service = $repo_service;
51 $this->data_service = $data_service;
52 $this->initDomainServices($DIC);
53 $this->dic = $DIC;
54
55 $this->user_action_provider_factory = new \ilUserActionProviderFactory();
56 $this->user_action_admin = new \ilUserActionAdmin($DIC['ilDB']);
57 }
initDomainServices(\ILIAS\DI\Container $DIC)
global $DIC
Definition: shib_login.php:26

References ILIAS\Awareness\InternalDomainService\$data_service, $DIC, ILIAS\Awareness\InternalDomainService\$repo_service, and ILIAS\Repository\initDomainServices().

+ Here is the call graph for this function:

Member Function Documentation

◆ admin()

ILIAS\Awareness\InternalDomainService::admin ( int  $ref_id)

Definition at line 86 of file class.InternalDomainService.php.

86 : AdminManager
87 {
88 return new AdminManager(
89 $ref_id,
90 $this->data_service,
91 $this
92 );
93 }
$ref_id
Definition: ltiauth.php:66

References $ref_id.

Referenced by ILIAS\Awareness\User\Collector\__construct().

+ Here is the caller graph for this function:

◆ awarenessSettings()

ILIAS\Awareness\InternalDomainService::awarenessSettings ( )

Definition at line 95 of file class.InternalDomainService.php.

96 {
97 return new \ilSetting("awrn");
98 }
ILIAS Setting Class.

Referenced by ILIAS\Awareness\WidgetManager\__construct(), and ILIAS\Awareness\AdminManager\__construct().

+ Here is the caller graph for this function:

◆ userCollector()

ILIAS\Awareness\InternalDomainService::userCollector ( int  $user_id,
int  $ref_id = 0 
)

Definition at line 105 of file class.InternalDomainService.php.

105 : User\Collector
106 {
107 if (!isset(self::$collectors[$user_id])) {
108 self::$collectors[$user_id] = new User\Collector(
109 $user_id,
110 $ref_id,
111 $this->data_service,
112 $this->repo_service,
113 $this
114 );
115 }
116 return self::$collectors[$user_id];
117 }

References $ref_id, and $user_id.

Referenced by ILIAS\Awareness\WidgetManager\__construct().

+ Here is the caller graph for this function:

◆ userProvider()

ILIAS\Awareness\InternalDomainService::userProvider ( )

Definition at line 100 of file class.InternalDomainService.php.

100 : User\ProviderFactory
101 {
102 return new User\ProviderFactory($this->dic);
103 }

Referenced by ILIAS\Awareness\User\Collector\__construct().

+ Here is the caller graph for this function:

◆ widget()

ILIAS\Awareness\InternalDomainService::widget ( int  $user_id,
int  $ref_id = 0 
)

Definition at line 70 of file class.InternalDomainService.php.

70 : WidgetManager
71 {
72 if (!isset(self::$managers[$user_id])) {
73 self::$managers[$user_id] = new WidgetManager(
75 $ref_id,
76 $this->data_service,
77 $this->repo_service,
78 $this,
79 $this->user_action_provider_factory,
80 $this->user_action_admin
81 );
82 }
83 return self::$managers[$user_id];
84 }

References $ref_id, and $user_id.

Field Documentation

◆ $collectors

array ILIAS\Awareness\InternalDomainService::$collectors = array()
staticprotected

Definition at line 43 of file class.InternalDomainService.php.

◆ $data_service

InternalDataService ILIAS\Awareness\InternalDomainService::$data_service
protected

◆ $dic

Container ILIAS\Awareness\InternalDomainService::$dic
protected

Definition at line 33 of file class.InternalDomainService.php.

◆ $managers

array ILIAS\Awareness\InternalDomainService::$managers = array()
staticprotected

Definition at line 41 of file class.InternalDomainService.php.

◆ $repo_service

InternalRepoService ILIAS\Awareness\InternalDomainService::$repo_service
protected

◆ $user_action_admin

ilUserActionAdmin ILIAS\Awareness\InternalDomainService::$user_action_admin
protected

Definition at line 38 of file class.InternalDomainService.php.

◆ $user_action_provider_factory

ilUserActionProviderFactory ILIAS\Awareness\InternalDomainService::$user_action_provider_factory
protected

Definition at line 37 of file class.InternalDomainService.php.


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