Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1427497
AbuseFilterViewImport.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
699 B
Referenced Files
None
Subscribers
None
AbuseFilterViewImport.php
View Options
<?php
namespace
MediaWiki\Extension\AbuseFilter\View
;
use
MediaWiki\HTMLForm\HTMLForm
;
class
AbuseFilterViewImport
extends
AbuseFilterView
{
/**
* Shows the page
*/
public
function
show
()
{
$out
=
$this
->
getOutput
();
if
(
!
$this
->
afPermManager
->
canEdit
(
$this
->
getAuthority
()
)
)
{
$out
->
addWikiMsg
(
'abusefilter-edit-notallowed'
);
return
;
}
$out
->
addWikiMsg
(
'abusefilter-import-intro'
);
$formDescriptor
=
[
'ImportText'
=>
[
'type'
=>
'textarea'
,
'required'
=>
true
]
];
HTMLForm
::
factory
(
'ooui'
,
$formDescriptor
,
$this
->
getContext
()
)
->
setTitle
(
$this
->
getTitle
(
'new'
)
)
->
setSubmitTextMsg
(
'abusefilter-import-submit'
)
->
show
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 14:41 (1 d, 5 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
63/df/206219f0afb506289246b692dd33
Default Alt Text
AbuseFilterViewImport.php (699 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment