MediaWiki
1.34.0
|
Public Member Functions | |
__construct () | |
Protected constructor: no creating instances except through the factory method above. More... | |
clear ( $index) | |
Delete a result once the captcha has been used, so it cannot be reused. More... | |
cookiesNeeded () | |
Whether this type of CaptchaStore needs cookies. More... | |
retrieve ( $index) | |
Retrieve the answer for a given captcha. More... | |
store ( $index, $info) | |
Store the correct answer for a given captcha. More... | |
Private Attributes | |
BagOStuff | $cache |
Additional Inherited Members | |
Static Public Member Functions inherited from CaptchaStore | |
static | get () |
Get somewhere to store captcha data that will persist between requests. More... | |
static | unsetInstanceForTests () |
Definition at line 5 of file CaptchaCacheStore.php.
CaptchaCacheStore::__construct | ( | ) |
Protected constructor: no creating instances except through the factory method above.
Reimplemented from CaptchaStore.
Definition at line 9 of file CaptchaCacheStore.php.
CaptchaCacheStore::clear | ( | $index | ) |
Delete a result once the captcha has been used, so it cannot be reused.
string | $index |
Reimplemented from CaptchaStore.
Definition at line 36 of file CaptchaCacheStore.php.
References $cache, BagOStuff\delete(), and BagOStuff\makeKey().
CaptchaCacheStore::cookiesNeeded | ( | ) |
Whether this type of CaptchaStore needs cookies.
Reimplemented from CaptchaStore.
Definition at line 41 of file CaptchaCacheStore.php.
CaptchaCacheStore::retrieve | ( | $index | ) |
Retrieve the answer for a given captcha.
string | $index |
Reimplemented from CaptchaStore.
Definition at line 26 of file CaptchaCacheStore.php.
References $cache, BagOStuff\get(), and BagOStuff\makeKey().
CaptchaCacheStore::store | ( | $index, | |
$info | |||
) |
Store the correct answer for a given captcha.
string | $index | |
array | $info | the captcha result |
Reimplemented from CaptchaStore.
Definition at line 15 of file CaptchaCacheStore.php.
References $cache, BagOStuff\makeKey(), and BagOStuff\set().
|
private |
Definition at line 7 of file CaptchaCacheStore.php.
Referenced by clear(), retrieve(), and store().