19 declare(strict_types=1);
37 protected \ILIAS\Survey\Access\AccessManager
$access;
51 $this->feature_config = $this->domain_service->modeFeatureConfig($survey->
getMode());
54 $this->run_manager = $domain_service->
execution()->run($survey, $user_id);
67 if ($access->canRead() &&
68 $feature_config->usesAppraisees() &&
69 $survey->get360SelfAppraisee() &&
70 !$survey->isAppraisee($user_id) &&
86 if ($feature_config->usesAppraisees()) {
90 if ($this->run_manager->hasStarted() && $this->run_manager->hasFinished()) {
123 $this->survey->hasMailConfirmation()) {
134 if ($this->
access->canStartSurvey()) {
138 !$this->survey->isAccessibleWithoutCode()) {
149 $anon_session = $this->repo_service->execution()->runSession();
150 if ($feature_config->usesAppraisees() &&
151 $anon_session->issetCode($survey->getId())) {
152 if (!$anon_session->isExternalRaterValidated($survey->getRefId())) {
153 $code = $anon_session->getCode($survey->getId());
154 $code_manager = $this->domain_service->code($survey, 0);
155 $feature_config = $this->domain_service->modeFeatureConfig($survey->getMode());
156 $access_manager = $this->domain_service->access($survey->getRefId(), 0);
158 if ($code_manager->exists($code)) {
159 $anonymous_id = $survey->getAnonymousIdByCode($code);
161 if (count($survey->getAppraiseesToRate(
null, $anonymous_id))) {
162 $anon_session->setExternalRaterValidation($survey->getRefId(),
true);
167 $anon_session->setExternalRaterValidation($survey->getRefId(),
false);
179 if ($feature_config->usesAppraisees() &&
180 $survey->isAppraisee($this->user_id)) {
mustEnterCode(string $code="")
Check if user must enter code to start (and currently is able to start)
ILIAS Survey Execution RunManager $run_manager
Participant status manager.
canMailUserResults()
Can the current user see the own results.
ILIAS Survey Mode FeatureConfig $feature_config
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
cantStartAgain()
This will return true, if a survey without appraisees is finished Note: Code will be gathered from se...
Survey internal data service.
InternalDomainService $domain_service
canAddItselfAsAppraisee()
Checks if a user can add himself as an appraisee.
InternalRepoService $repo_service
__construct(InternalDomainService $domain_service, InternalRepoService $repo_service, \ilObjSurvey $survey, int $user_id)
ILIAS Survey Access AccessManager $access