Page MenuHomeWickedGov Phorge

CaptchaHashStore.php
No OneTemporary

Size
626 B
Referenced Files
None
Subscribers
None

CaptchaHashStore.php

<?php
namespace MediaWiki\Extension\ConfirmEdit\Store;
class CaptchaHashStore extends CaptchaStore {
/** @var array */
protected $data = [];
/**
* @inheritDoc
*/
public function store( $index, $info ) {
$this->data[$index] = $info;
}
/**
* @inheritDoc
*/
public function retrieve( $index ) {
if ( array_key_exists( $index, $this->data ) ) {
return $this->data[$index];
}
return false;
}
/**
* @inheritDoc
*/
public function clear( $index ) {
unset( $this->data[$index] );
}
public function cookiesNeeded() {
return false;
}
public function clearAll() {
$this->data = [];
}
}

File Metadata

Mime Type
text/x-php
Expires
Aug 16 2026, 13:54 (11 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
69/f7/59dc5cd23b2f4b4532ce76fe6495
Default Alt Text
CaptchaHashStore.php (626 B)

Event Timeline