MediaWiki
1.32.5
|
Public Member Functions | |
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... | |
Static Public Member Functions | |
static | get () |
Get somewhere to store captcha data that will persist between requests. More... | |
static | unsetInstanceForTests () |
Protected Member Functions | |
__construct () | |
Protected constructor: no creating instances except through the factory method above. More... | |
Static Private Attributes | |
static CaptchaStore | $instance |
The singleton instance. More... | |
Definition at line 3 of file CaptchaStore.php.
|
protected |
Protected constructor: no creating instances except through the factory method above.
Reimplemented in CaptchaSessionStore.
Definition at line 64 of file CaptchaStore.php.
|
abstract |
Delete a result once the captcha has been used, so it cannot be reused.
string | $index |
Reimplemented in CaptchaCacheStore, CaptchaSessionStore, and CaptchaHashStore.
|
abstract |
Whether this type of CaptchaStore needs cookies.
Reimplemented in CaptchaCacheStore, CaptchaSessionStore, and CaptchaHashStore.
|
staticfinal |
Get somewhere to store captcha data that will persist between requests.
Exception |
Definition at line 42 of file CaptchaStore.php.
References $instance.
Referenced by SimpleCaptcha\clearCaptcha(), SimpleCaptcha\retrieveCaptcha(), CaptchaAuthenticationRequestTest\setUp(), CaptchaPreAuthenticationProviderTest\setUp(), QuestyCaptcha\showHelp(), SimpleCaptcha\showHelp(), SimpleCaptcha\storeCaptcha(), CaptchaPreAuthenticationProviderTest\testPingLimiter(), CaptchaPreAuthenticationProviderTest\testTestForAccountCreation(), and CaptchaPreAuthenticationProviderTest\testTestForAuthentication().
|
abstract |
Retrieve the answer for a given captcha.
string | $index |
Reimplemented in CaptchaSessionStore, CaptchaCacheStore, and CaptchaHashStore.
|
abstract |
Store the correct answer for a given captcha.
string | $index | |
string | $info | the captcha result |
Reimplemented in CaptchaSessionStore, CaptchaHashStore, and CaptchaCacheStore.
|
staticfinal |
Definition at line 54 of file CaptchaStore.php.
Referenced by CaptchaAuthenticationRequestTest\setUp(), and CaptchaPreAuthenticationProviderTest\setUp().
|
staticprivate |