ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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)
 
 modeProvider (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)
 
 metadata ()
 

Protected Attributes

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

Detailed Description

Definition at line 32 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 41 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().

45  {
46  global $DIC;
47 
48  $this->initDomainServices($DIC);
49  $this->access = $DIC->access();
50 
51  $this->repo_service = $repo_service;
52  $this->data_service = $data_service;
53 
54  $this->mode_factory = $mode_factory;
55  }
initDomainServices(\ILIAS\DI\Container $DIC)
global $DIC
Definition: shib_login.php:25
+ 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 89 of file class.InternalDomainService.php.

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

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

◆ code()

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

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

References ILIAS\Survey\InternalDomainService\$data_service, and $user_id.

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

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

◆ edit()

ILIAS\Survey\InternalDomainService::edit ( )

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

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

◆ evaluation()

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

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

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

◆ execution()

ILIAS\Survey\InternalDomainService::execution ( )

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

Referenced by ILIAS\Survey\Participants\StatusManager\__construct(), and ILIAS\Survey\Execution\LaunchGUI\__construct().

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

◆ log()

ILIAS\Survey\InternalDomainService::log ( )

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

References ILIAS\Repository\logger().

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

57  : \ilLogger
58  {
59  return $this->logger()->svy();
60  }
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:

◆ metadata()

ILIAS\Survey\InternalDomainService::metadata ( )

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

References ILIAS\Repository\learningObjectMetadata().

144  : MetadataManager
145  {
146  return new MetadataManager($this->learningObjectMetadata());
147  }
+ Here is the call graph for this function:

◆ modeFeatureConfig()

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

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

Referenced by ILIAS\Survey\Execution\RunManager\__construct(), and ILIAS\Survey\Execution\LaunchGUI\__construct().

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

◆ modeProvider()

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

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

68  : ModeProvider
69  {
70  return $this->mode_factory->getModeById($mode);
71  }

◆ participants()

ILIAS\Survey\InternalDomainService::participants ( )

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

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

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

◆ sequence()

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

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

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

Field Documentation

◆ $access

ilAccessHandler ILIAS\Survey\InternalDomainService::$access
protected

Definition at line 36 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: