ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Survey\Editing\EditManager Class Reference

Editing manager. More...

+ Collaboration diagram for ILIAS\Survey\Editing\EditManager:

Public Member Functions

 __construct (InternalRepoService $repo_service, InternalDomainService $domain_service)
 
 setConstraintStructure (?array $structure)
 
 getConstraintStructure ()
 
 clearConstraintStructure ()
 
 setConstraintElements (?array $elements)
 
 getConstraintElements ()
 
 clearConstraintElements ()
 
 setMoveSurveyQuestions (int $survey_id, array $question_ids)
 
 clearMoveSurveyQuestions ()
 
 getMoveSurveyQuestions ()
 
 getMoveSurveyId ()
 
 setQuestionClipboard (int $ref_id, int $page, string $mode, array $question_ids)
 
 clearQuestionClipboard (int $ref_id)
 
 getQuestionClipboardSourcePage (int $ref_id)
 
 getQuestionClipboardMode (int $ref_id)
 
 getQuestionClipboardQuestions (int $ref_id)
 
 isQuestionClipboardEmpty (int $ref_id)
 
 setPoolChoice (int $id)
 
 getPoolChoice ()
 
 setExternalText (string $text)
 
 getExternalText ()
 

Protected Attributes

InternalDomainService $domain_service
 

Private Attributes

EditSessionRepo $repo
 

Detailed Description

Editing manager.

Provides common editing feature, like wrapping the edit session repository.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 31 of file class.EditManager.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Survey\Editing\EditManager::__construct ( InternalRepoService  $repo_service,
InternalDomainService  $domain_service 
)

Definition at line 36 of file class.EditManager.php.

39 {
40 $this->repo = $repo_service->edit();
41 $this->domain_service = $domain_service;
42 }
InternalDomainService $domain_service

References ILIAS\Survey\Editing\EditManager\$domain_service, and ILIAS\Survey\InternalRepoService\edit().

+ Here is the call graph for this function:

Member Function Documentation

◆ clearConstraintElements()

ILIAS\Survey\Editing\EditManager::clearConstraintElements ( )

Definition at line 69 of file class.EditManager.php.

69 : void
70 {
71 $this->repo->clearConstraintElements();
72 }

◆ clearConstraintStructure()

ILIAS\Survey\Editing\EditManager::clearConstraintStructure ( )

Definition at line 54 of file class.EditManager.php.

54 : void
55 {
56 $this->repo->clearConstraintStructure();
57 }

◆ clearMoveSurveyQuestions()

ILIAS\Survey\Editing\EditManager::clearMoveSurveyQuestions ( )

Definition at line 79 of file class.EditManager.php.

79 : void
80 {
81 $this->repo->clearMoveSurveyQuestions();
82 }

◆ clearQuestionClipboard()

ILIAS\Survey\Editing\EditManager::clearQuestionClipboard ( int  $ref_id)

Definition at line 103 of file class.EditManager.php.

103 : void
104 {
105 $this->repo->clearQuestionClipboard($ref_id);
106 }
$ref_id
Definition: ltiauth.php:66

References $ref_id.

◆ getConstraintElements()

ILIAS\Survey\Editing\EditManager::getConstraintElements ( )

Definition at line 64 of file class.EditManager.php.

64 : ?array
65 {
66 return $this->repo->getConstraintElements();
67 }

◆ getConstraintStructure()

ILIAS\Survey\Editing\EditManager::getConstraintStructure ( )

Definition at line 49 of file class.EditManager.php.

49 : ?array
50 {
51 return $this->repo->getConstraintStructure();
52 }

◆ getExternalText()

ILIAS\Survey\Editing\EditManager::getExternalText ( )

Definition at line 145 of file class.EditManager.php.

145 : string
146 {
147 return $this->repo->getExternalText();
148 }

◆ getMoveSurveyId()

ILIAS\Survey\Editing\EditManager::getMoveSurveyId ( )

Definition at line 89 of file class.EditManager.php.

89 : int
90 {
91 return $this->repo->getMoveSurveyId();
92 }

◆ getMoveSurveyQuestions()

ILIAS\Survey\Editing\EditManager::getMoveSurveyQuestions ( )

Definition at line 84 of file class.EditManager.php.

84 : array
85 {
86 return $this->repo->getMoveSurveyQuestions();
87 }

◆ getPoolChoice()

ILIAS\Survey\Editing\EditManager::getPoolChoice ( )

Definition at line 135 of file class.EditManager.php.

135 : int
136 {
137 return $this->repo->getPoolChoice();
138 }

◆ getQuestionClipboardMode()

ILIAS\Survey\Editing\EditManager::getQuestionClipboardMode ( int  $ref_id)

Definition at line 113 of file class.EditManager.php.

113 : string
114 {
115 return $this->repo->getQuestionClipboardMode($ref_id);
116 }

References $ref_id.

◆ getQuestionClipboardQuestions()

ILIAS\Survey\Editing\EditManager::getQuestionClipboardQuestions ( int  $ref_id)

Definition at line 118 of file class.EditManager.php.

118 : array
119 {
120 return $this->repo->getQuestionClipboardQuestions($ref_id);
121 }

References $ref_id.

◆ getQuestionClipboardSourcePage()

ILIAS\Survey\Editing\EditManager::getQuestionClipboardSourcePage ( int  $ref_id)

Definition at line 108 of file class.EditManager.php.

108 : ?int
109 {
110 return $this->repo->getQuestionClipboardSourcePage($ref_id);
111 }

References $ref_id.

◆ isQuestionClipboardEmpty()

ILIAS\Survey\Editing\EditManager::isQuestionClipboardEmpty ( int  $ref_id)

Definition at line 123 of file class.EditManager.php.

123 : bool
124 {
125 return $this->repo->isQuestionClipboardEmpty($ref_id);
126 }

References $ref_id.

◆ setConstraintElements()

ILIAS\Survey\Editing\EditManager::setConstraintElements ( ?array  $elements)

Definition at line 59 of file class.EditManager.php.

59 : void
60 {
61 $this->repo->setConstraintElements($elements);
62 }

◆ setConstraintStructure()

ILIAS\Survey\Editing\EditManager::setConstraintStructure ( ?array  $structure)

Definition at line 44 of file class.EditManager.php.

44 : void
45 {
46 $this->repo->setConstraintStructure($structure);
47 }
$structure
TOTAL STRUCTURE.

References $structure.

◆ setExternalText()

ILIAS\Survey\Editing\EditManager::setExternalText ( string  $text)

Definition at line 140 of file class.EditManager.php.

140 : void
141 {
142 $this->repo->setExternalText($text);
143 }

◆ setMoveSurveyQuestions()

ILIAS\Survey\Editing\EditManager::setMoveSurveyQuestions ( int  $survey_id,
array  $question_ids 
)

Definition at line 74 of file class.EditManager.php.

74 : void
75 {
76 $this->repo->setMoveSurveyQuestions($survey_id, $question_ids);
77 }

◆ setPoolChoice()

ILIAS\Survey\Editing\EditManager::setPoolChoice ( int  $id)

Definition at line 130 of file class.EditManager.php.

130 : void
131 {
132 $this->repo->setPoolChoice($id);
133 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References $id.

◆ setQuestionClipboard()

ILIAS\Survey\Editing\EditManager::setQuestionClipboard ( int  $ref_id,
int  $page,
string  $mode,
array  $question_ids 
)

Definition at line 94 of file class.EditManager.php.

99 : void {
100 $this->repo->setQuestionClipboard($ref_id, $page, $mode, $question_ids);
101 }

Field Documentation

◆ $domain_service

InternalDomainService ILIAS\Survey\Editing\EditManager::$domain_service
protected

Definition at line 34 of file class.EditManager.php.

Referenced by ILIAS\Survey\Editing\EditManager\__construct().

◆ $repo

EditSessionRepo ILIAS\Survey\Editing\EditManager::$repo
private

Definition at line 33 of file class.EditManager.php.


The documentation for this class was generated from the following file: