MediaWiki  1.30.0
CaptchaSessionStore Class Reference
Inheritance diagram for CaptchaSessionStore:
Collaboration diagram for CaptchaSessionStore:

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...
 

Protected Member Functions

 __construct ()
 Protected constructor: no creating instances except through the factory method above. More...
 

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 ()
 

Detailed Description

Definition at line 70 of file CaptchaStore.php.

Constructor & Destructor Documentation

◆ __construct()

CaptchaSessionStore::__construct ( )
protected

Protected constructor: no creating instances except through the factory method above.

Reimplemented from CaptchaStore.

Definition at line 71 of file CaptchaStore.php.

Member Function Documentation

◆ clear()

CaptchaSessionStore::clear (   $index)

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

Parameters
$index

Reimplemented from CaptchaStore.

Definition at line 84 of file CaptchaStore.php.

◆ cookiesNeeded()

CaptchaSessionStore::cookiesNeeded ( )

Whether this type of CaptchaStore needs cookies.

Returns
Bool

Reimplemented from CaptchaStore.

Definition at line 88 of file CaptchaStore.php.

◆ retrieve()

CaptchaSessionStore::retrieve (   $index)

Retrieve the answer for a given captcha.

Parameters
$indexString
Returns
String|false

Reimplemented from CaptchaStore.

Definition at line 80 of file CaptchaStore.php.

◆ store()

CaptchaSessionStore::store (   $index,
  $info 
)

Store the correct answer for a given captcha.

Parameters
$indexString
$infoString the captcha result

Reimplemented from CaptchaStore.

Definition at line 76 of file CaptchaStore.php.


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