MediaWiki
1.34.0
CaptchaHashStore.php
Go to the documentation of this file.
1
<?php
2
3
class
CaptchaHashStore
extends
CaptchaStore
{
4
protected
$data
= [];
5
6
public
function
store
( $index, $info ) {
7
$this->data[$index] = $info;
8
}
9
10
public
function
retrieve
( $index ) {
11
if
( array_key_exists( $index, $this->data ) ) {
12
return
$this->data[$index];
13
}
14
return
false
;
15
}
16
17
public
function
clear
( $index ) {
18
unset( $this->data[$index] );
19
}
20
21
public
function
cookiesNeeded
() {
22
return
false
;
23
}
24
25
public
function
clearAll
() {
26
$this->data = [];
27
}
28
}
CaptchaHashStore\$data
$data
Definition:
CaptchaHashStore.php:4
CaptchaHashStore\retrieve
retrieve( $index)
Retrieve the answer for a given captcha.
Definition:
CaptchaHashStore.php:10
CaptchaHashStore\cookiesNeeded
cookiesNeeded()
Whether this type of CaptchaStore needs cookies.
Definition:
CaptchaHashStore.php:21
CaptchaStore
Definition:
CaptchaStore.php:3
CaptchaHashStore
Definition:
CaptchaHashStore.php:3
CaptchaHashStore\clearAll
clearAll()
Definition:
CaptchaHashStore.php:25
CaptchaHashStore\clear
clear( $index)
Delete a result once the captcha has been used, so it cannot be reused.
Definition:
CaptchaHashStore.php:17
CaptchaHashStore\store
store( $index, $info)
Store the correct answer for a given captcha.
Definition:
CaptchaHashStore.php:6
extensions
ConfirmEdit
includes
store
CaptchaHashStore.php
Generated on Thu Dec 19 2019 14:53:52 for MediaWiki by
1.8.16