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