ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
trait.ModeProviderBase.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Survey\Mode;
22
24
29{
30 protected ?int $id = null;
34
35 public function getId(): int
36 {
37 return $this->id;
38 }
39
41 {
43 }
44
45 public function getUIModifier(): UIModifier
46 {
47 $mod = $this->ui_modifier;
48 $mod->setInternalService($this->service);
49 return $mod;
50 }
51
53 {
54 $this->service = $service;
55 }
56
57 public function getTitle(): string
58 {
59 $lng = $this->service->domain()->lng();
60 switch ($this->getId()) {
61 case 1:
62 return $lng->txt("survey_360_mode");
63 case 2:
64 return $lng->txt("svy_self_ev_mode");
65 case 3:
66 return $lng->txt("svy_ind_feedb_mode");
67 default:
68 return $lng->txt("default");
69 }
70 }
71}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
setInternalService(InternalService $internal_service)
setInternalService(InternalService $service)
global $lng
Definition: privfeed.php:31