ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Survey\Participants\DomainService Class Reference

Participants domain service. More...

+ Collaboration diagram for ILIAS\Survey\Participants\DomainService:

Public Member Functions

 __construct (InternalDomainService $domain_service, InternalRepoService $repo_service)
 
 invitations ()
 
 status (\ilObjSurvey $survey, int $user_id)
 

Protected Attributes

InternalRepoService $repo_service
 
InternalDomainService $domain_service
 
InvitationsManager $invitations_manager
 

Static Protected Attributes

static array $managers = []
 

Detailed Description

Participants domain service.

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

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

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Survey\Participants\DomainService::__construct ( InternalDomainService  $domain_service,
InternalRepoService  $repo_service 
)

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

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 }

References ILIAS\Survey\Execution\DomainService\$domain_service, and ILIAS\Survey\Execution\DomainService\$repo_service.

Member Function Documentation

◆ invitations()

ILIAS\Survey\Participants\DomainService::invitations ( )

Definition at line 52 of file class.DomainService.php.

52 : InvitationsManager
53 {
54 return $this->invitations_manager;
55 }

◆ status()

ILIAS\Survey\Participants\DomainService::status ( \ilObjSurvey  $survey,
int  $user_id 
)

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

57 : 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 }

References $user_id, and ilObject\getId().

+ Here is the call graph for this function:

Field Documentation

◆ $domain_service

InternalDomainService ILIAS\Survey\Participants\DomainService::$domain_service
protected

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

◆ $invitations_manager

InvitationsManager ILIAS\Survey\Participants\DomainService::$invitations_manager
protected

Definition at line 34 of file class.DomainService.php.

◆ $managers

array ILIAS\Survey\Participants\DomainService::$managers = []
staticprotected

Definition at line 39 of file class.DomainService.php.

◆ $repo_service

InternalRepoService ILIAS\Survey\Participants\DomainService::$repo_service
protected

Definition at line 32 of file class.DomainService.php.


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