ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest Class Reference
+ Collaboration diagram for ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest:

Public Member Functions

 __construct (\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)
 
 getRefId ()
 
 getQuestionId ()
 
 getQuestionIds ()
 
 getPreview ()
 
 getSelectedQuestionTypes ()
 
 getBaseClass ()
 
 getSort ()
 
 getAnswers ()
 
 getColumns ()
 
 getRows ()
 
 getNeutralScale ()
 
 getNeutral ()
 
 getColumnNeutralScale ()
 
 getNewLinkType ()
 
 getNewForSurvey ()
 
 getNewType ()
 
 getLinkSourceId ()
 
 getLinkItemId ($type)
 
 getReturn ()
 
 getFiles ()
 
 getPercentRow ()
 
 getPercentColumns ()
 
 getPercentBipAdj1 ()
 
 getPercentBipAdj2 ()
 
 getPercentNeutral ()
 
 getObligatory ()
 

Protected Attributes

array $params
 

Detailed Description

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

Definition at line 29 of file class.EditingGUIRequest.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::__construct ( \ILIAS\HTTP\Services  $http,
\ILIAS\Refinery\Factory  $refinery,
?array  $passed_query_params = null,
?array  $passed_post_data = null 
)

Definition at line 35 of file class.EditingGUIRequest.php.

40 {
41 $this->initRequest(
42 $http,
44 $passed_query_params,
45 $passed_post_data
46 );
47 }
initRequest(HTTP\Services $http, Refinery\Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)
Query params and post data parameters are used for testing.

References ILIAS\UI\examples\Layout\Page\Mail\$refinery, and ILIAS\Repository\initRequest().

+ Here is the call graph for this function:

Member Function Documentation

◆ getAnswers()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getAnswers ( )

Definition at line 90 of file class.EditingGUIRequest.php.

90 : array
91 {
92 $ans = $this->arrayArray("answers");
94 }
static stripSlashesRecursive($a_data, bool $a_strip_html=true, string $a_allow="")

References ILIAS\Repository\arrayArray(), and ilArrayUtil\stripSlashesRecursive().

+ Here is the call graph for this function:

◆ getBaseClass()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getBaseClass ( )

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

79 : string
80 {
81 return $this->str("baseClass");
82 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getColumnNeutralScale()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getColumnNeutralScale ( )

Definition at line 119 of file class.EditingGUIRequest.php.

119 : string
120 {
121 return $this->str("columns_neutral_scale");
122 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getColumns()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getColumns ( )

Definition at line 96 of file class.EditingGUIRequest.php.

96 : array
97 {
98 $ans = $this->arrayArray("columns");
100 }

References ILIAS\Repository\arrayArray(), and ilArrayUtil\stripSlashesRecursive().

+ Here is the call graph for this function:

◆ getFiles()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getFiles ( )
Returns
string[]

Definition at line 155 of file class.EditingGUIRequest.php.

155 : array
156 {
157 return $this->strArray("file");
158 }

References ILIAS\Repository\strArray().

+ Here is the call graph for this function:

◆ getLinkItemId()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getLinkItemId (   $type)

Definition at line 144 of file class.EditingGUIRequest.php.

144 : int
145 {
146 return $this->int($type);
147 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getLinkSourceId()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getLinkSourceId ( )

Definition at line 139 of file class.EditingGUIRequest.php.

139 : int
140 {
141 return $this->int("source_id");
142 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getNeutral()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getNeutral ( )

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

113 : string
114 {
115 $ans = $this->strArray("answers");
116 return $ans["neutral"];
117 }

References ILIAS\Repository\strArray().

+ Here is the call graph for this function:

◆ getNeutralScale()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getNeutralScale ( )

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

108 : string
109 {
110 return $this->str("answers_neutral_scale");
111 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getNewForSurvey()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getNewForSurvey ( )

Definition at line 129 of file class.EditingGUIRequest.php.

129 : int
130 {
131 return $this->int("new_for_survey");
132 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getNewLinkType()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getNewLinkType ( )

Definition at line 124 of file class.EditingGUIRequest.php.

124 : string
125 {
126 return $this->str("internalLinkType");
127 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getNewType()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getNewType ( )

Definition at line 134 of file class.EditingGUIRequest.php.

134 : string
135 {
136 return $this->str("new_type");
137 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getObligatory()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getObligatory ( )

Definition at line 185 of file class.EditingGUIRequest.php.

185 : array
186 {
187 return $this->intArray("obligatory");
188 }

References ILIAS\Repository\intArray().

+ Here is the call graph for this function:

◆ getPercentBipAdj1()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getPercentBipAdj1 ( )

Definition at line 170 of file class.EditingGUIRequest.php.

170 : int
171 {
172 return $this->int("percent_bipolar_adjective1");
173 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getPercentBipAdj2()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getPercentBipAdj2 ( )

Definition at line 175 of file class.EditingGUIRequest.php.

175 : int
176 {
177 return $this->int("percent_bipolar_adjective2");
178 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getPercentColumns()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getPercentColumns ( )

Definition at line 165 of file class.EditingGUIRequest.php.

165 : int
166 {
167 return $this->int("percent_columns");
168 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getPercentNeutral()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getPercentNeutral ( )

Definition at line 180 of file class.EditingGUIRequest.php.

180 : int
181 {
182 return $this->int("percent_neutral");
183 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getPercentRow()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getPercentRow ( )

Definition at line 160 of file class.EditingGUIRequest.php.

160 : int
161 {
162 return $this->int("percent_row");
163 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getPreview()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getPreview ( )

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

69 : int
70 {
71 return $this->int("preview");
72 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getQuestionId()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getQuestionId ( )

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

54 : int
55 {
56 return $this->int("q_id");
57 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getQuestionIds()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getQuestionIds ( )
Returns
int[]

Definition at line 60 of file class.EditingGUIRequest.php.

60 : array
61 {
62 $ids = $this->intArray("q_id");
63 if (count($ids) === 0) {
64 $ids = $this->intArray("qid"); // this one is used in SurveyQuestionGUI
65 }
66 return $ids;
67 }

References ILIAS\Repository\intArray().

+ Here is the call graph for this function:

◆ getRefId()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getRefId ( )

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

49 : int
50 {
51 return $this->int("ref_id");
52 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getReturn()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getReturn ( )

Definition at line 149 of file class.EditingGUIRequest.php.

149 : bool
150 {
151 return (bool) $this->int("rtrn");
152 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getRows()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getRows ( )

Definition at line 102 of file class.EditingGUIRequest.php.

102 : array
103 {
104 $ans = $this->arrayArray("rows");
106 }

References ILIAS\Repository\arrayArray(), and ilArrayUtil\stripSlashesRecursive().

+ Here is the call graph for this function:

◆ getSelectedQuestionTypes()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getSelectedQuestionTypes ( )

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

74 : string
75 {
76 return $this->str("sel_question_types");
77 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getSort()

ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::getSort ( )
Returns
string[]

Definition at line 85 of file class.EditingGUIRequest.php.

85 : array
86 {
87 return $this->strArray("sort");
88 }

References ILIAS\Repository\strArray().

+ Here is the call graph for this function:

Field Documentation

◆ $params

array ILIAS\SurveyQuestionPool\Editing\EditingGUIRequest::$params
protected

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


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