ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.EditManager.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Survey\Editing;
22
25
32{
35
36 public function __construct(
37 InternalRepoService $repo_service,
39 ) {
40 $this->repo = $repo_service->edit();
41 $this->domain_service = $domain_service;
42 }
43
44 public function setConstraintStructure(?array $structure): void
45 {
46 $this->repo->setConstraintStructure($structure);
47 }
48
49 public function getConstraintStructure(): ?array
50 {
51 return $this->repo->getConstraintStructure();
52 }
53
54 public function clearConstraintStructure(): void
55 {
56 $this->repo->clearConstraintStructure();
57 }
58
59 public function setConstraintElements(?array $elements): void
60 {
61 $this->repo->setConstraintElements($elements);
62 }
63
64 public function getConstraintElements(): ?array
65 {
66 return $this->repo->getConstraintElements();
67 }
68
69 public function clearConstraintElements(): void
70 {
71 $this->repo->clearConstraintElements();
72 }
73
74 public function setMoveSurveyQuestions(int $survey_id, array $question_ids): void
75 {
76 $this->repo->setMoveSurveyQuestions($survey_id, $question_ids);
77 }
78
79 public function clearMoveSurveyQuestions(): void
80 {
81 $this->repo->clearMoveSurveyQuestions();
82 }
83
84 public function getMoveSurveyQuestions(): array
85 {
86 return $this->repo->getMoveSurveyQuestions();
87 }
88
89 public function getMoveSurveyId(): int
90 {
91 return $this->repo->getMoveSurveyId();
92 }
93
94 public function setQuestionClipboard(
95 int $ref_id,
96 int $page,
97 string $mode,
98 array $question_ids
99 ): void {
100 $this->repo->setQuestionClipboard($ref_id, $page, $mode, $question_ids);
101 }
102
103 public function clearQuestionClipboard(int $ref_id): void
104 {
105 $this->repo->clearQuestionClipboard($ref_id);
106 }
107
109 {
110 return $this->repo->getQuestionClipboardSourcePage($ref_id);
111 }
112
113 public function getQuestionClipboardMode(int $ref_id): string
114 {
115 return $this->repo->getQuestionClipboardMode($ref_id);
116 }
117
118 public function getQuestionClipboardQuestions(int $ref_id): array
119 {
120 return $this->repo->getQuestionClipboardQuestions($ref_id);
121 }
122
123 public function isQuestionClipboardEmpty(int $ref_id): bool
124 {
125 return $this->repo->isQuestionClipboardEmpty($ref_id);
126 }
127
128 // 1: no pool; 2: new pool, 3: existing pool
129 // @todo: avoid session use or introduce constants
130 public function setPoolChoice(int $id): void
131 {
132 $this->repo->setPoolChoice($id);
133 }
134
135 public function getPoolChoice(): int
136 {
137 return $this->repo->getPoolChoice();
138 }
139
140 public function setExternalText(string $text): void
141 {
142 $this->repo->setExternalText($text);
143 }
144
145 public function getExternalText(): string
146 {
147 return $this->repo->getExternalText();
148 }
149}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
$structure
TOTAL STRUCTURE.
InternalDomainService $domain_service
setConstraintStructure(?array $structure)
setMoveSurveyQuestions(int $survey_id, array $question_ids)
__construct(InternalRepoService $repo_service, InternalDomainService $domain_service)
setQuestionClipboard(int $ref_id, int $page, string $mode, array $question_ids)
Stores access codes of anonymous session.
$ref_id
Definition: ltiauth.php:66
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...