@@ -335,8 +335,8 @@ |
||
| 335 | 335 | /** |
| 336 | 336 | * Extracts the response body and headers from a full curl response |
| 337 | 337 | * |
| 338 | - * @param curl_handle $ch The curl handle for the request |
|
| 339 | - * @param string $rawResponse The raw response text |
|
| 338 | + * @param resource $ch The curl handle for the request |
|
| 339 | + * @param string $rawHeaders |
|
| 340 | 340 | * |
| 341 | 341 | * @return RestfulService_Response The response object |
| 342 | 342 | */ |
@@ -144,13 +144,13 @@ |
||
| 144 | 144 | * @see http://uk3.php.net/manual/en/function.setcookie.php |
| 145 | 145 | * |
| 146 | 146 | * @param string $name The name of the cookie |
| 147 | - * @param string|array|false $value The value for the cookie to hold |
|
| 147 | + * @param false|string $value The value for the cookie to hold |
|
| 148 | 148 | * @param int $expiry The number of days until expiry |
| 149 | 149 | * @param string $path The path to save the cookie on (falls back to site base) |
| 150 | 150 | * @param string $domain The domain to make the cookie available on |
| 151 | 151 | * @param boolean $secure Can the cookie only be sent over SSL? |
| 152 | 152 | * @param boolean $httpOnly Prevent the cookie being accessible by JS |
| 153 | - * @return boolean If the cookie was set or not; doesn't mean it's accepted by the browser |
|
| 153 | + * @return boolean|null If the cookie was set or not; doesn't mean it's accepted by the browser |
|
| 154 | 154 | */ |
| 155 | 155 | protected function outputCookie( |
| 156 | 156 | $name, $value, $expiry = 90, $path = null, $domain = null, $secure = false, $httpOnly = true |
@@ -265,7 +265,6 @@ discard block |
||
| 265 | 265 | * |
| 266 | 266 | * @deprecated 4.0 Use the "Session.timeout_ips" config setting instead |
| 267 | 267 | * |
| 268 | - * @param array $session_ips Array of IPv4 rules. |
|
| 269 | 268 | */ |
| 270 | 269 | public static function set_timeout_ips($ips) { |
| 271 | 270 | Deprecation::notice('4.0', 'Use the "Session.timeout_ips" config setting instead'); |
@@ -462,6 +461,9 @@ discard block |
||
| 462 | 461 | $diffVar[sizeof($var)-1] = $val; |
| 463 | 462 | } |
| 464 | 463 | |
| 464 | + /** |
|
| 465 | + * @param string $name |
|
| 466 | + */ |
|
| 465 | 467 | public function inst_get($name) { |
| 466 | 468 | // Quicker execution path for "."-free names |
| 467 | 469 | if(strpos($name,'.') === false) { |