Public Member Functions | |
| header ($string, $replace=true) | |
| Output a HTTP header, wrapper for PHP's header(). | |
| setcookie ($name, $value, $expire=0) | |
| Set the browser cookie. | |
Definition at line 7 of file WebResponse.php.
| WebResponse::header | ( | $ | string, | |
| $ | replace = true | |||
| ) |
Output a HTTP header, wrapper for PHP's header().
| $string | String: header to output | |
| $replace | Bool: replace current similar header |
Definition at line 15 of file WebResponse.php.
| WebResponse::setcookie | ( | $ | name, | |
| $ | value, | |||
| $ | expire = 0 | |||
| ) |
Set the browser cookie.
| $name | String: name of cookie | |
| $value | String: value to give cookie | |
| $expire | Int: number of seconds til cookie expires |
Definition at line 24 of file WebResponse.php.
References $name, $wgCookieDomain, $wgCookieExpiration, $wgCookieHttpOnly, $wgCookiePath, $wgCookiePrefix, $wgCookieSecure, wfDebugLog(), and wfHttpOnlySafe().
1.5.9