MediaWiki REL1_34
|
Public Member Functions | |
setCookieEmulated ( $urlEncode, $name, $value, $options=[]) | |
Temporary emulation for setcookie() with a SameSite option. | |
setCookieInternal ( $urlEncode, $name, $value, $options=[]) | |
Static Public Member Functions | |
static | setcookie ( $name, $value, $options=[]) |
Temporary emulation for setcookie() with a SameSite option. | |
static | setrawcookie ( $name, $value, $options=[]) |
Temporary emulation for setrawcookie() with a SameSite option. | |
Protected Member Functions | |
error ( $message) | |
header ( $header) | |
headers_sent () | |
time () | |
Definition at line 9 of file SetCookieCompat.php.
|
protected |
Definition at line 225 of file SetCookieCompat.php.
Referenced by Wikimedia\Http\SetCookieCompat\setCookieEmulated().
|
protected |
Definition at line 233 of file SetCookieCompat.php.
References $header, and Wikimedia\Http\SetCookieCompat\header().
Referenced by Wikimedia\Http\SetCookieCompat\header(), and Wikimedia\Http\SetCookieCompat\setCookieEmulated().
|
protected |
Definition at line 229 of file SetCookieCompat.php.
References Wikimedia\Http\SetCookieCompat\headers_sent().
Referenced by Wikimedia\Http\SetCookieCompat\headers_sent(), and Wikimedia\Http\SetCookieCompat\setCookieEmulated().
|
static |
Temporary emulation for setcookie() with a SameSite option.
Once MediaWiki requires PHP 7.3, this can be replaced with a setcookie() call in the caller.
string | $name | The full cookie name |
string | $value | The cookie value |
array | $options | The options as passed to setcookie() in PHP 7.3+ |
Definition at line 21 of file SetCookieCompat.php.
Referenced by Wikimedia\Http\SetCookieCompat\setCookieInternal().
Wikimedia\Http\SetCookieCompat::setCookieEmulated | ( | $urlEncode, | |
$name, | |||
$value, | |||
$options = [] |
|||
) |
Temporary emulation for setcookie() with a SameSite option.
Once MediaWiki requires PHP 7.3, this can be replaced with a setcookie() call in the caller.
Definition at line 101 of file SetCookieCompat.php.
References $path, Wikimedia\Http\SetCookieCompat\error(), Wikimedia\Http\SetCookieCompat\header(), Wikimedia\Http\SetCookieCompat\headers_sent(), and Wikimedia\Http\SetCookieCompat\time().
Referenced by Wikimedia\Http\SetCookieCompat\setCookieInternal().
Wikimedia\Http\SetCookieCompat::setCookieInternal | ( | $urlEncode, | |
$name, | |||
$value, | |||
$options = [] |
|||
) |
Definition at line 48 of file SetCookieCompat.php.
References Wikimedia\Http\SetCookieCompat\setcookie(), Wikimedia\Http\SetCookieCompat\setCookieEmulated(), and Wikimedia\Http\SetCookieCompat\setrawcookie().
|
static |
Temporary emulation for setrawcookie() with a SameSite option.
Once MediaWiki requires PHP 7.3, this can be replaced with a setrawcookie() call in the caller.
string | $name | The full cookie name |
string | $value | The cookie value |
array | $options | The options as passed to setrawcookie() in PHP 7.3+ |
Definition at line 36 of file SetCookieCompat.php.
Referenced by Wikimedia\Http\SetCookieCompat\setCookieInternal().
|
protected |
Definition at line 221 of file SetCookieCompat.php.
References Wikimedia\Http\SetCookieCompat\time().
Referenced by Wikimedia\Http\SetCookieCompat\setCookieEmulated(), and Wikimedia\Http\SetCookieCompat\time().