MediaWiki REL1_31
CaptchaCacheStore Class Reference
Inheritance diagram for CaptchaCacheStore:
Collaboration diagram for CaptchaCacheStore:

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.
 

Additional Inherited Members

- Static Public Member Functions inherited from CaptchaStore
static get ()
 Get somewhere to store captcha data that will persist between requests.
 
static unsetInstanceForTests ()
 
- Protected Member Functions inherited from CaptchaStore
 __construct ()
 Protected constructor: no creating instances except through the factory method above.
 

Detailed Description

Definition at line 3 of file CaptchaCacheStore.php.

Member Function Documentation

◆ clear()

CaptchaCacheStore::clear ( $index)

Delete a result once the captcha has been used, so it cannot be reused.

Parameters
string$index

Reimplemented from CaptchaStore.

Definition at line 23 of file CaptchaCacheStore.php.

References wfMemcKey().

◆ cookiesNeeded()

CaptchaCacheStore::cookiesNeeded ( )

Whether this type of CaptchaStore needs cookies.

Returns
bool

Reimplemented from CaptchaStore.

Definition at line 27 of file CaptchaCacheStore.php.

◆ retrieve()

CaptchaCacheStore::retrieve ( $index)

Retrieve the answer for a given captcha.

Parameters
string$index
Returns
string|false

Reimplemented from CaptchaStore.

Definition at line 14 of file CaptchaCacheStore.php.

References wfMemcKey().

◆ store()

CaptchaCacheStore::store ( $index,
$info )

Store the correct answer for a given captcha.

Parameters
string$index
string$infothe captcha result

Reimplemented from CaptchaStore.

Definition at line 4 of file CaptchaCacheStore.php.

References wfMemcKey().


The documentation for this class was generated from the following file: