ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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 ()
 
 getPhraseId ()
 
 getPhraseIds ()
 
 getPhraseTitle ()
 
 getAnswers ()
 
 getColumns ()
 
 getRows ()
 
 getNeutralScale ()
 
 getNeutral ()
 
 getColumnNeutralScale ()
 
 getNewLinkType ()
 
 getNewForSurvey ()
 
 getNewType ()
 
 getLinkSourceId ()
 
 getLinkItemId ($type)
 
 getReturn ()
 
 getFiles ()
 
 getMaterialIndexes ()
 
 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 27 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 33 of file class.EditingGUIRequest.php.

References ILIAS\Repository\$passed_post_data, ILIAS\Repository\$passed_query_params, and ILIAS\Repository\initRequest().

38  {
39  $this->initRequest(
40  $http,
41  $refinery,
44  );
45  }
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.
$http
Definition: raiseError.php:7
Refinery Factory $refinery
+ Here is the call graph for this function:

Member Function Documentation

◆ getAnswers()

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

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

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

105  : array
106  {
107  $ans = $this->arrayArray("answers");
109  }
static stripSlashesRecursive($a_data, bool $a_strip_html=true, string $a_allow="")
+ Here is the call graph for this function:

◆ getBaseClass()

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

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

References ILIAS\Repository\str().

77  : string
78  {
79  return $this->str("baseClass");
80  }
+ Here is the call graph for this function:

◆ getColumnNeutralScale()

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

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

References ILIAS\Repository\str().

134  : string
135  {
136  return $this->str("columns_neutral_scale");
137  }
+ Here is the call graph for this function:

◆ getColumns()

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

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

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

111  : array
112  {
113  $ans = $this->arrayArray("columns");
115  }
static stripSlashesRecursive($a_data, bool $a_strip_html=true, string $a_allow="")
+ Here is the call graph for this function:

◆ getFiles()

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

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

References ILIAS\Repository\strArray().

170  : array
171  {
172  return $this->strArray("file");
173  }
+ Here is the call graph for this function:

◆ getLinkItemId()

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

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

References $type, and ILIAS\Repository\int().

159  : int
160  {
161  return $this->int($type);
162  }
$type
+ Here is the call graph for this function:

◆ getLinkSourceId()

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

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

References ILIAS\Repository\int().

154  : int
155  {
156  return $this->int("source_id");
157  }
+ Here is the call graph for this function:

◆ getMaterialIndexes()

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

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

References ILIAS\Repository\intArray().

175  : array
176  {
177  return $this->intArray("idx");
178  }
+ Here is the call graph for this function:

◆ getNeutral()

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

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

References ILIAS\Repository\strArray().

128  : string
129  {
130  $ans = $this->strArray("answers");
131  return $ans["neutral"];
132  }
+ Here is the call graph for this function:

◆ getNeutralScale()

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

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

References ILIAS\Repository\str().

123  : string
124  {
125  return $this->str("answers_neutral_scale");
126  }
+ Here is the call graph for this function:

◆ getNewForSurvey()

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

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

References ILIAS\Repository\int().

144  : int
145  {
146  return $this->int("new_for_survey");
147  }
+ Here is the call graph for this function:

◆ getNewLinkType()

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

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

References ILIAS\Repository\str().

139  : string
140  {
141  return $this->str("internalLinkType");
142  }
+ Here is the call graph for this function:

◆ getNewType()

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

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

References ILIAS\Repository\str().

149  : string
150  {
151  return $this->str("new_type");
152  }
+ Here is the call graph for this function:

◆ getObligatory()

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

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

References ILIAS\Repository\intArray().

205  : array
206  {
207  return $this->intArray("obligatory");
208  }
+ Here is the call graph for this function:

◆ getPercentBipAdj1()

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

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

References ILIAS\Repository\int().

190  : int
191  {
192  return $this->int("percent_bipolar_adjective1");
193  }
+ Here is the call graph for this function:

◆ getPercentBipAdj2()

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

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

References ILIAS\Repository\int().

195  : int
196  {
197  return $this->int("percent_bipolar_adjective2");
198  }
+ Here is the call graph for this function:

◆ getPercentColumns()

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

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

References ILIAS\Repository\int().

185  : int
186  {
187  return $this->int("percent_columns");
188  }
+ Here is the call graph for this function:

◆ getPercentNeutral()

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

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

References ILIAS\Repository\int().

200  : int
201  {
202  return $this->int("percent_neutral");
203  }
+ Here is the call graph for this function:

◆ getPercentRow()

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

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

References ILIAS\Repository\int().

180  : int
181  {
182  return $this->int("percent_row");
183  }
+ Here is the call graph for this function:

◆ getPhraseId()

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

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

References ILIAS\Repository\int().

89  : int
90  {
91  return $this->int("p_id");
92  }
+ Here is the call graph for this function:

◆ getPhraseIds()

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

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

References ILIAS\Repository\intArray().

94  : array
95  {
96  return $this->intArray("phrase");
97  }
+ Here is the call graph for this function:

◆ getPhraseTitle()

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

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

References ILIAS\Repository\str().

99  : string
100  {
101  return $this->str("phrase_title");
102  }
+ Here is the call graph for this function:

◆ getPreview()

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

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

References ILIAS\Repository\int().

67  : int
68  {
69  return $this->int("preview");
70  }
+ Here is the call graph for this function:

◆ getQuestionId()

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

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

References ILIAS\Repository\int().

52  : int
53  {
54  return $this->int("q_id");
55  }
+ Here is the call graph for this function:

◆ getQuestionIds()

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

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

References ILIAS\Repository\intArray().

58  : array
59  {
60  $ids = $this->intArray("q_id");
61  if (count($ids) === 0) {
62  $ids = $this->intArray("qid"); // this one is used in SurveyQuestionGUI
63  }
64  return $ids;
65  }
+ Here is the call graph for this function:

◆ getRefId()

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

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

References ILIAS\Repository\int().

47  : int
48  {
49  return $this->int("ref_id");
50  }
+ Here is the call graph for this function:

◆ getReturn()

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

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

References ILIAS\Repository\int().

164  : bool
165  {
166  return (bool) $this->int("rtrn");
167  }
+ Here is the call graph for this function:

◆ getRows()

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

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

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

117  : array
118  {
119  $ans = $this->arrayArray("rows");
121  }
static stripSlashesRecursive($a_data, bool $a_strip_html=true, string $a_allow="")
+ Here is the call graph for this function:

◆ getSelectedQuestionTypes()

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

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

References ILIAS\Repository\str().

72  : string
73  {
74  return $this->str("sel_question_types");
75  }
+ Here is the call graph for this function:

◆ getSort()

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

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

References ILIAS\Repository\strArray().

83  : array
84  {
85  return $this->strArray("sort");
86  }
+ Here is the call graph for this function:

Field Documentation

◆ $params

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

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


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