ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.DomainService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
31{
35
39 protected static array $managers = [];
40
41 public function __construct(
44 ) {
45 $this->domain_service = $domain_service;
46 $this->repo_service = $repo_service;
47 $this->invitations_manager = new InvitationsManager(
48 $this->repo_service
49 );
50 }
51
53 {
54 return $this->invitations_manager;
55 }
56
57 public function status(\ilObjSurvey $survey, int $user_id): StatusManager
58 {
59 if (!isset(self::$managers[StatusManager::class][$survey->getId()][$user_id])) {
60 self::$managers[StatusManager::class][$survey->getId()][$user_id] =
61 new StatusManager(
62 $this->domain_service,
63 $this->repo_service,
64 $survey,
66 );
67 }
68 return self::$managers[StatusManager::class][$survey->getId()][$user_id];
69 }
70}
status(\ilObjSurvey $survey, int $user_id)
__construct(InternalDomainService $domain_service, InternalRepoService $repo_service)