Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2754021
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
Fri, Jul 3, 22:02 (4 h, 42 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d5/52/85efb740869da2f65923fd141552
Default Alt Text
AbuseFilterViewImport.php (699 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment