You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/generated/master/Piwik/API/Request.md
+26-152
Original file line number
Diff line number
Diff line change
@@ -76,19 +76,8 @@ forwarded to request array before it is returned.
76
76
#### Signature
77
77
78
78
- It accepts the following parameter(s):
79
-
80
-
<ul>
81
-
<li>
82
-
<divmarkdown="1"class="parameter">
83
-
`$request` (`string`|`array`) —
84
-
85
-
<divmarkdown="1"class="param-desc"> The base request string or array, eg, `'module=UserSettings&action=getWidescreen'`.</div>
86
-
87
-
<divstyle="clear:both;"/>
88
-
89
-
</div>
90
-
</li>
91
-
</ul>
79
+
-`$request` (`string`|`array`) —
80
+
The base request string or array, eg, `'module=UserSettings&action=getWidescreen'`.
92
81
- It returns a `array` value.
93
82
94
83
<aname="__construct"id="__construct"></a>
@@ -100,19 +89,8 @@ Constructor.
100
89
#### Signature
101
90
102
91
- It accepts the following parameter(s):
103
-
104
-
<ul>
105
-
<li>
106
-
<divmarkdown="1"class="parameter">
107
-
`$request` (`string`|`array`) —
108
-
109
-
<divmarkdown="1"class="param-desc"> Query string that defines the API call (must at least contain a **method** parameter), eg, `'method=UserSettings.getWideScreen&idSite=1&date=yesterday&period=week&format=xml'` If a request is not provided, then we use the values in the `$_GET` and `$_POST` superglobals.</div>
110
-
111
-
<divstyle="clear:both;"/>
112
-
113
-
</div>
114
-
</li>
115
-
</ul>
92
+
-`$request` (`string`|`array`) —
93
+
Query string that defines the API call (must at least contain a **method** parameter), eg, `'method=UserSettings.getWideScreen&idSite=1&date=yesterday&period=week&format=xml'` If a request is not provided, then we use the values in the `$_GET` and `$_POST` superglobals.
-`PluginDeactivatedException`— if the module plugin is not activated.
152
121
-[`Exception`](http://php.net/class.Exception)— if the requested API method cannot be called, if required parameters for the API method are missing or if the API method throws an exception and the **format** query parameter is **original**.
@@ -160,31 +129,11 @@ Returns the name of a plugin's API class by plugin name.
160
129
#### Signature
161
130
162
131
- It accepts the following parameter(s):
132
+
-`$plugin` (`string`) —
133
+
The plugin name, eg, `'Referrers'`.
163
134
164
-
<ul>
165
-
<li>
166
-
<divmarkdown="1"class="parameter">
167
-
`$plugin` (`string`) —
168
-
169
-
<divmarkdown="1"class="param-desc"> The plugin name, eg, `'Referrers'`.</div>
170
-
171
-
<divstyle="clear:both;"/>
172
-
173
-
</div>
174
-
</li>
175
-
</ul>
176
-
177
-
<ul>
178
-
<li>
179
-
<div markdown="1" class="parameter">
180
-
_Returns:_ (`string`) —
181
-
<div markdown="1" class="param-desc">The fully qualified API class name, eg, `'\Piwik\Plugins\Referrers\API'`.</div>
182
-
183
-
<div style="clear:both;"/>
184
-
185
-
</div>
186
-
</li>
187
-
</ul>
135
+
-*Returns:*`string`—
136
+
The fully qualified API class name, eg, `'\Piwik\Plugins\Referrers\API'`.
188
137
189
138
<aname="processrequest"id="processrequest"></a>
190
139
<aname="processRequest"id="processRequest"></a>
@@ -195,41 +144,13 @@ Helper method that processes an API request in one line using the variables in `
195
144
#### Signature
196
145
197
146
- It accepts the following parameter(s):
147
+
-`$method` (`string`) —
148
+
The API method to call, ie, `'Actions.getPageTitles'`.
149
+
-`$paramOverride` (`array`) —
150
+
The parameter name-value pairs to use instead of what's in `$_GET` & `$_POST`.
198
151
199
-
<ul>
200
-
<li>
201
-
<divmarkdown="1"class="parameter">
202
-
`$method` (`string`) —
203
-
204
-
<divmarkdown="1"class="param-desc"> The API method to call, ie, `'Actions.getPageTitles'`.</div>
205
-
206
-
<divstyle="clear:both;"/>
207
-
208
-
</div>
209
-
</li>
210
-
<li>
211
-
<divmarkdown="1"class="parameter">
212
-
`$paramOverride` (`array`) —
213
-
214
-
<divmarkdown="1"class="param-desc"> The parameter name-value pairs to use instead of what's in `$_GET` & `$_POST`.</div>
215
-
216
-
<divstyle="clear:both;"/>
217
-
218
-
</div>
219
-
</li>
220
-
</ul>
221
-
222
-
<ul>
223
-
<li>
224
-
<div markdown="1" class="parameter">
225
-
_Returns:_ (`mixed`) —
226
-
<div markdown="1" class="param-desc">The result of the API request. See [process()](/api-reference/Piwik/API/Request#process).</div>
227
-
228
-
<div style="clear:both;"/>
229
-
230
-
</div>
231
-
</li>
232
-
</ul>
152
+
-*Returns:*`mixed`—
153
+
The result of the API request. See [process()](/api-reference/Piwik/API/Request#process).
0 commit comments