mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-15 03:35:15 +00:00
8a3c51b1db
Makes MediaWiki.Files.OneClassPerFile.MultipleFound pass Change-Id: I88b5112d84d8983e67be1bca9f4039486bcefc6f
29 lines
479 B
PHP
29 lines
479 B
PHP
<?php
|
|
|
|
class CaptchaHashStore extends CaptchaStore {
|
|
protected $data = [];
|
|
|
|
public function store( $index, $info ) {
|
|
$this->data[$index] = $info;
|
|
}
|
|
|
|
public function retrieve( $index ) {
|
|
if ( array_key_exists( $index, $this->data ) ) {
|
|
return $this->data[$index];
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public function clear( $index ) {
|
|
unset( $this->data[$index] );
|
|
}
|
|
|
|
public function cookiesNeeded() {
|
|
return false;
|
|
}
|
|
|
|
public function clearAll() {
|
|
$this->data = [];
|
|
}
|
|
}
|