MediaWiki
REL1_32
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
Definition
CaptchaHashStore.php:3
CaptchaHashStore\cookiesNeeded
cookiesNeeded()
Whether this type of CaptchaStore needs cookies.
Definition
CaptchaHashStore.php:21
CaptchaHashStore\retrieve
retrieve( $index)
Retrieve the answer for a given captcha.
Definition
CaptchaHashStore.php:10
CaptchaHashStore\$data
$data
Definition
CaptchaHashStore.php:4
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
CaptchaHashStore\clearAll
clearAll()
Definition
CaptchaHashStore.php:25
CaptchaStore
Definition
CaptchaStore.php:3
extensions
ConfirmEdit
includes
store
CaptchaHashStore.php
Generated on Mon Nov 25 2024 15:56:34 for MediaWiki by
1.10.0