ILIAS  release_8 Revision v8.24
class.DomainService.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
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,
65 $user_id
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...