ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ILIAS\Survey\InternalDomainService Class Reference
+ 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

ilAccessHandler $access
 
ModeFactory $mode_factory
 
InternalRepoService $repo_service
 
InternalDataService $data_service
 

Detailed Description

Definition at line 30 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 39 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(), and ILIAS\Repository\initDomainServices().

43  {
44  global $DIC;
45 
46  $this->initDomainServices($DIC);
47  $this->access = $DIC->access();
48 
49  $this->repo_service = $repo_service;
50  $this->data_service = $data_service;
51 
52  $this->mode_factory = $mode_factory;
53  }
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 82 of file class.InternalDomainService.php.

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

82  : Access\AccessManager
83  {
84  return new Access\AccessManager(
85  $this,
86  $this->access,
87  $ref_id,
88  $user_id
89  );
90  }
$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 92 of file class.InternalDomainService.php.

References ILIAS\Survey\InternalDomainService\$data_service.

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

92  : CodeManager
93  {
94  return new CodeManager(
95  $this->repo_service->code(),
97  $survey,
98  $this,
99  $user_id
100  );
101  }
+ Here is the caller graph for this function:

◆ edit()

ILIAS\Survey\InternalDomainService::edit ( )

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

119  : EditManager
120  {
121  return new EditManager(
122  $this->repo_service,
123  $this
124  );
125  }

◆ evaluation()

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

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

108  : Evaluation\EvaluationManager {
109  return new Evaluation\EvaluationManager(
110  $this,
111  $this->repo_service,
112  $survey,
113  $user_id,
114  $requested_appr_id,
115  $requested_rater_id
116  );
117  }

◆ execution()

ILIAS\Survey\InternalDomainService::execution ( )

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

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

74  : Execution\DomainService
75  {
76  return new Execution\DomainService(
77  $this->repo_service,
78  $this
79  );
80  }
+ Here is the caller graph for this function:

◆ log()

ILIAS\Survey\InternalDomainService::log ( )

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

References ILIAS\Repository\logger().

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

55  : \ilLogger
56  {
57  return $this->logger()->svy();
58  }
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 60 of file class.InternalDomainService.php.

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

60  : FeatureConfig
61  {
62  $mode_provider = $this->mode_factory->getModeById($mode);
63  return $mode_provider->getFeatureConfig();
64  }
+ Here is the caller graph for this function:

◆ participants()

ILIAS\Survey\InternalDomainService::participants ( )

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

66  : Participants\DomainService
67  {
68  return new Participants\DomainService(
69  $this,
70  $this->repo_service
71  );
72  }

◆ sequence()

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

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

127  : SequenceManager
128  {
129  return new SequenceManager(
130  $this->repo_service,
131  $this,
132  $survey_id,
133  $survey
134  );
135  }

Field Documentation

◆ $access

ilAccessHandler ILIAS\Survey\InternalDomainService::$access
protected

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

◆ $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: