ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\Survey\Execution\DomainService Class Reference
+ Collaboration diagram for ILIAS\Survey\Execution\DomainService:

Public Member Functions

 __construct (InternalRepoService $repo_service, InternalDomainService $domain_service)
 
 run (\ilObjSurvey $survey, int $user_id, int $appraisee_id=0)
 

Protected Attributes

InternalRepoService $repo_service
 
InternalDomainService $domain_service
 

Static Protected Attributes

static array $managers = []
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ __construct()

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

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

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

39  {
40  $this->domain_service = $domain_service;
41  $this->repo_service = $repo_service;
42  }

Member Function Documentation

◆ run()

ILIAS\Survey\Execution\DomainService::run ( \ilObjSurvey  $survey,
int  $user_id,
int  $appraisee_id = 0 
)

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

References $user_id, ilObject\getId(), ilObjSurvey\getMode(), and ilObjSurvey\MODE_SELF_EVAL.

48  : RunManager {
49  $appraisee_id = ($survey->getMode() === \ilObjSurvey::MODE_SELF_EVAL)
50  ? $user_id
51  : $appraisee_id;
52  if (!isset(self::$managers[RunManager::class][$survey->getId()][$user_id][$appraisee_id])) {
53  self::$managers[RunManager::class][$survey->getId()][$user_id][$appraisee_id] =
54  new RunManager(
55  $this->repo_service,
56  $this->domain_service,
57  $survey,
58  $user_id,
59  $appraisee_id
60  );
61  }
62  return self::$managers[RunManager::class][$survey->getId()][$user_id][$appraisee_id];
63  }
+ Here is the call graph for this function:

Field Documentation

◆ $domain_service

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

◆ $managers

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

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

◆ $repo_service

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

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