ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Survey\InternalDomainService Class Reference

Survey internal domain service. More...

+ Collaboration diagram for ILIAS\Survey\InternalDomainService:

Public Member Functions

 __construct (ModeFactory $mode_factory, InternalRepoService $repo_service, InternalDataService $data_service)
 
 log ()
 
 modeFeatureConfig (int $mode)
 
 participants ()
 
 execution ()
 
 access (int $ref_id, int $user_id)
 
 code (\ilObjSurvey $survey, int $user_id)
 
 evaluation (\ilObjSurvey $survey, int $user_id, int $requested_appr_id=0, string $requested_rater_id="")
 
 edit ()
 
 sequence (int $survey_id, \ilObjSurvey $survey)
 

Protected Attributes

ModeFactory $mode_factory
 
InternalRepoService $repo_service
 
InternalDataService $data_service
 

Detailed Description

Survey internal domain service.

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

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

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Survey\InternalDomainService::__construct ( ModeFactory  $mode_factory,
InternalRepoService  $repo_service,
InternalDataService  $data_service 
)

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

References ILIAS\Survey\InternalDomainService\$data_service, $DIC, ILIAS\Survey\InternalDomainService\$mode_factory, ILIAS\Survey\InternalDomainService\$repo_service, ILIAS\Survey\InternalDomainService\access(), ILIAS\Repository\initDomainServices(), and ILIAS\Repository\lng().

46  {
47  global $DIC;
48 
49  $this->initDomainServices($DIC);
50  $this->repo_tree = $DIC->repositoryTree();
51  $this->access = $DIC->access();
52  $this->lng = $DIC->language();
53 
54  $this->repo_service = $repo_service;
55  $this->data_service = $data_service;
56 
57  $this->mode_factory = $mode_factory;
58  }
initDomainServices(\ILIAS\DI\Container $DIC)
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

Member Function Documentation

◆ access()

ILIAS\Survey\InternalDomainService::access ( int  $ref_id,
int  $user_id 
)

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

Referenced by ILIAS\Survey\Code\CodeManager\__construct(), and ILIAS\Survey\InternalDomainService\__construct().

87  : Access\AccessManager
88  {
89  return new Access\AccessManager(
90  $this,
91  $this->access,
92  $ref_id,
93  $user_id
94  );
95  }
$ref_id
Definition: ltiauth.php:67
+ Here is the caller graph for this function:

◆ code()

ILIAS\Survey\InternalDomainService::code ( \ilObjSurvey  $survey,
int  $user_id 
)

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

References ILIAS\Survey\InternalDomainService\$data_service.

Referenced by ILIAS\Survey\Execution\RunManager\__construct().

97  : CodeManager
98  {
99  return new CodeManager(
100  $this->repo_service->code(),
102  $survey,
103  $this,
104  $user_id
105  );
106  }
+ Here is the caller graph for this function:

◆ edit()

ILIAS\Survey\InternalDomainService::edit ( )

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

124  : EditManager
125  {
126  return new EditManager(
127  $this->repo_service,
128  $this
129  );
130  }

◆ evaluation()

ILIAS\Survey\InternalDomainService::evaluation ( \ilObjSurvey  $survey,
int  $user_id,
int  $requested_appr_id = 0,
string  $requested_rater_id = "" 
)

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

113  : Evaluation\EvaluationManager {
114  return new Evaluation\EvaluationManager(
115  $this,
116  $this->repo_service,
117  $survey,
118  $user_id,
119  $requested_appr_id,
120  $requested_rater_id
121  );
122  }

◆ execution()

ILIAS\Survey\InternalDomainService::execution ( )

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

Referenced by ILIAS\Survey\Participants\StatusManager\__construct().

79  : Execution\DomainService
80  {
81  return new Execution\DomainService(
82  $this->repo_service,
83  $this
84  );
85  }
+ Here is the caller graph for this function:

◆ log()

ILIAS\Survey\InternalDomainService::log ( )

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

References ILIAS\Repository\logger().

Referenced by ILIAS\Survey\Sequence\SequenceManager\__construct().

60  : \ilLogger
61  {
62  return $this->logger()->svy();
63  }
Component logger with individual log levels by component id.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ modeFeatureConfig()

ILIAS\Survey\InternalDomainService::modeFeatureConfig ( int  $mode)

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

Referenced by ILIAS\Survey\Execution\RunManager\__construct().

65  : FeatureConfig
66  {
67  $mode_provider = $this->mode_factory->getModeById($mode);
68  return $mode_provider->getFeatureConfig();
69  }
+ Here is the caller graph for this function:

◆ participants()

ILIAS\Survey\InternalDomainService::participants ( )

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

71  : Participants\DomainService
72  {
73  return new Participants\DomainService(
74  $this,
75  $this->repo_service
76  );
77  }

◆ sequence()

ILIAS\Survey\InternalDomainService::sequence ( int  $survey_id,
\ilObjSurvey  $survey 
)

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

132  : SequenceManager
133  {
134  return new SequenceManager(
135  $this->repo_service,
136  $this,
137  $survey_id,
138  $survey
139  );
140  }

Field Documentation

◆ $data_service

InternalDataService ILIAS\Survey\InternalDomainService::$data_service
protected

◆ $mode_factory

ModeFactory ILIAS\Survey\InternalDomainService::$mode_factory
protected

◆ $repo_service

InternalRepoService ILIAS\Survey\InternalDomainService::$repo_service
protected

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