MediaWiki REL1_30
CaptchaHashStore Class Reference
Inheritance diagram for CaptchaHashStore:
Collaboration diagram for CaptchaHashStore:

Public Member Functions

 clear ( $index)
 Delete a result once the captcha has been used, so it cannot be reused.
 
 clearAll ()
 
 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.
 

Protected Attributes

 $data = []
 

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 122 of file CaptchaStore.php.

Member Function Documentation

◆ clear()

CaptchaHashStore::clear ( $index)

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

Parameters
$index

Reimplemented from CaptchaStore.

Definition at line 136 of file CaptchaStore.php.

◆ clearAll()

CaptchaHashStore::clearAll ( )

Definition at line 144 of file CaptchaStore.php.

◆ cookiesNeeded()

CaptchaHashStore::cookiesNeeded ( )

Whether this type of CaptchaStore needs cookies.

Returns
Bool

Reimplemented from CaptchaStore.

Definition at line 140 of file CaptchaStore.php.

◆ retrieve()

CaptchaHashStore::retrieve ( $index)

Retrieve the answer for a given captcha.

Parameters
$indexString
Returns
String|false

Reimplemented from CaptchaStore.

Definition at line 129 of file CaptchaStore.php.

◆ store()

CaptchaHashStore::store ( $index,
$info )

Store the correct answer for a given captcha.

Parameters
$indexString
$infoString the captcha result

Reimplemented from CaptchaStore.

Definition at line 125 of file CaptchaStore.php.

Member Data Documentation

◆ $data

CaptchaHashStore::$data = []
protected

Definition at line 123 of file CaptchaStore.php.


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