Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5971805
ApiFancyCaptchaReload.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
901 B
Referenced Files
None
Subscribers
None
ApiFancyCaptchaReload.php
View Options
<?php
namespace
MediaWiki\Extension\ConfirmEdit\FancyCaptcha
;
use
MediaWiki\Api\ApiBase
;
/**
* Api module to reload FancyCaptcha
*
* @ingroup API
* @ingroup Extensions
*/
class
ApiFancyCaptchaReload
extends
ApiBase
{
public
function
execute
()
{
# Get a new FancyCaptcha form data
$captcha
=
new
FancyCaptcha
();
$info
=
$captcha
->
getCaptcha
();
$captchaIndex
=
$captcha
->
storeCaptcha
(
$info
);
$result
=
$this
->
getResult
();
$result
->
addValue
(
null
,
$this
->
getModuleName
(),
[
'index'
=>
$captchaIndex
]
);
return
true
;
}
/** @inheritDoc */
public
function
isInternal
()
{
return
true
;
}
/** @inheritDoc */
public
function
getAllowedParams
()
{
return
[];
}
/**
* @see ApiBase::getExamplesMessages()
* @return array
*/
protected
function
getExamplesMessages
()
{
return
[
'action=fancycaptchareload'
=>
'apihelp-fancycaptchareload-example-1'
,
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 15:25 (2 h, 9 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
00/df/5c3a96b35388364964c15b4a2058
Default Alt Text
ApiFancyCaptchaReload.php (901 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment