ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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)
 
 metadata ()
 

Protected Attributes

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

Detailed Description

Definition at line 31 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 40 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().

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

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

83  : Access\AccessManager
84  {
85  return new Access\AccessManager(
86  $this,
87  $this->access,
88  $ref_id,
89  $user_id
90  );
91  }
$ref_id
Definition: ltiauth.php:65
+ Here is the caller graph for this function:

◆ code()

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

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

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

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

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

◆ edit()

ILIAS\Survey\InternalDomainService::edit ( )

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

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

◆ evaluation()

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

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

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

◆ execution()

ILIAS\Survey\InternalDomainService::execution ( )

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

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

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

◆ log()

ILIAS\Survey\InternalDomainService::log ( )

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

References ILIAS\Repository\logger().

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

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

References ILIAS\Repository\learningObjectMetadata().

138  : MetadataManager
139  {
140  return new MetadataManager($this->learningObjectMetadata());
141  }
+ Here is the call graph for this function:

◆ modeFeatureConfig()

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

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

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

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

◆ participants()

ILIAS\Survey\InternalDomainService::participants ( )

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

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

67  : Participants\DomainService
68  {
69  return new Participants\DomainService(
70  $this,
71  $this->repo_service
72  );
73  }
+ Here is the caller graph for this function:

◆ sequence()

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

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

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

Field Documentation

◆ $access

ilAccessHandler ILIAS\Survey\InternalDomainService::$access
protected

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