@@ -168,6 +168,9 @@ discard block |
||
168 | 168 | curl_setopt( $this->curl_instance, CURLOPT_COOKIEFILE, $cookie_file ); |
169 | 169 | } |
170 | 170 | |
171 | + /** |
|
172 | + * @param string $user_agent |
|
173 | + */ |
|
171 | 174 | public function setUserAgent($user_agent = null) |
172 | 175 | { |
173 | 176 | $this->user_agent = $user_agent; |
@@ -178,7 +181,7 @@ discard block |
||
178 | 181 | } |
179 | 182 | |
180 | 183 | /** |
181 | - * @return string|bool Data. False on failure. |
|
184 | + * @return string Data. False on failure. |
|
182 | 185 | * @throws CURLError |
183 | 186 | */ |
184 | 187 | private function doCurlExecWithRetrys() { |
@@ -218,7 +221,7 @@ discard block |
||
218 | 221 | * @param array $headers Array of headers to pass to curl |
219 | 222 | * @param bool $verifyssl override for the global verifyssl value |
220 | 223 | * |
221 | - * @return bool|string Result |
|
224 | + * @return string Result |
|
222 | 225 | */ |
223 | 226 | public function get( $url, $data = null, $headers = array(), $verifyssl = null ) { |
224 | 227 | global $argv, $displayGetOutData; |
@@ -272,7 +275,7 @@ discard block |
||
272 | 275 | * |
273 | 276 | * @param string $url URL to send |
274 | 277 | * @param array $data Array of data to pass. |
275 | - * @param array $headers Array of headers to pass to curl |
|
278 | + * @param string $headers Array of headers to pass to curl |
|
276 | 279 | * |
277 | 280 | * @param bool|null $verifyssl override for global verifyssl value |
278 | 281 | * |
@@ -655,6 +655,10 @@ discard block |
||
655 | 655 | $this->nobotsTaskname = $taskname; |
656 | 656 | } |
657 | 657 | |
658 | + /** |
|
659 | + * @param string $method |
|
660 | + * @param boolean|string $url |
|
661 | + */ |
|
658 | 662 | private function generateSignature( $method, $url, $params = array() ) { |
659 | 663 | $parts = parse_url( $url ); |
660 | 664 | |
@@ -1359,7 +1363,7 @@ discard block |
||
1359 | 1363 | * Returns a list of recent changes |
1360 | 1364 | * |
1361 | 1365 | * @access public |
1362 | - * @param integer|array|string $namespace Namespace(s) to check |
|
1366 | + * @param integer $namespace Namespace(s) to check |
|
1363 | 1367 | * @param string $pgTag Only list recent changes bearing this tag. |
1364 | 1368 | * @param int $start Only list changes after this timestamp. |
1365 | 1369 | * @param int $end Only list changes before this timestamp. |
@@ -1946,7 +1950,7 @@ discard block |
||
1946 | 1950 | * Returns meta information about the wiki itself |
1947 | 1951 | * |
1948 | 1952 | * @access public |
1949 | - * @param array $prop Information to retrieve. Default: array( 'general', 'namespaces', 'namespacealiases', 'specialpagealiases', 'magicwords', 'interwikimap', 'dbrepllag', 'statistics', 'usergroups', 'extensions', 'fileextensions', 'rightsinfo', 'languages' ) |
|
1953 | + * @param string[] $prop Information to retrieve. Default: array( 'general', 'namespaces', 'namespacealiases', 'specialpagealiases', 'magicwords', 'interwikimap', 'dbrepllag', 'statistics', 'usergroups', 'extensions', 'fileextensions', 'rightsinfo', 'languages' ) |
|
1950 | 1954 | * @param bool $iwfilter When used with prop 'interwikimap', returns only local or only nonlocal entries of the interwiki map. True = local, false = nonlocal. Default null |
1951 | 1955 | * @return array |
1952 | 1956 | */ |
@@ -2437,7 +2441,7 @@ discard block |
||
2437 | 2441 | * |
2438 | 2442 | * @access public |
2439 | 2443 | * @param mixed $title Title of the page (default: null) |
2440 | - * @param mixed $pageid ID of the page (default: null) |
|
2444 | + * @param integer|null $pageid ID of the page (default: null) |
|
2441 | 2445 | * @param bool $followRedir Should it follow a redirect when retrieving the page (default: true) |
2442 | 2446 | * @param bool $normalize Should the class automatically normalize the title (default: true) |
2443 | 2447 | * @param string $timestamp Timestamp of a reference point in the program. Used to detect edit conflicts. |
@@ -2468,7 +2472,6 @@ discard block |
||
2468 | 2472 | * @access public |
2469 | 2473 | * @param string $filename Filename |
2470 | 2474 | * @param int $pageid Page ID of image |
2471 | - * @param array $prop Informatation to set. Default array( 'timestamp', 'user', 'comment', 'url', 'size', 'dimensions', 'sha1', 'mime', 'metadata', 'archivename', 'bitdepth' ) |
|
2472 | 2475 | * @return Image |
2473 | 2476 | * @package initFunctions |
2474 | 2477 | */ |
@@ -2627,7 +2630,7 @@ discard block |
||
2627 | 2630 | * |
2628 | 2631 | * @param string $action Name of action. |
2629 | 2632 | * @param null|string $title Name of page to check for nobots |
2630 | - * @param null $pageidp |
|
2633 | + * @param integer $pageidp |
|
2631 | 2634 | * @throws AssertFailure |
2632 | 2635 | * @throws EditError |
2633 | 2636 | * @throws LoggedOut |