Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2753892
EditBoxField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
667 B
Referenced Files
None
Subscribers
None
EditBoxField.php
View Options
<?php
namespace
MediaWiki\Extension\AbuseFilter\EditBox
;
use
MediaWiki\HTMLForm\HTMLFormField
;
/**
* This class is used to easily wrap a filter editor box inside an HTMLForm. For now it's just a transparent
* wrapper around the given HTML string. In the future, some of the actual logic might be moved here.
* @unstable
*/
class
EditBoxField
extends
HTMLFormField
{
/** @var string */
private
$html
;
/**
* @param array $params
*/
public
function
__construct
(
array
$params
)
{
parent
::
__construct
(
$params
);
$this
->
html
=
$params
[
'html'
];
}
/**
* @inheritDoc
*/
public
function
getInputHTML
(
$value
):
string
{
return
$this
->
html
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jul 3, 21:51 (14 h, 22 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
09/46/40ea506b7e8768d72af1ebf29c3c
Default Alt Text
EditBoxField.php (667 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment