Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7413513
FilterUtils.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
643 B
Referenced Files
None
Subscribers
None
FilterUtils.php
View Options
<?php
namespace
MediaWiki\Extension\AbuseFilter
;
use
MediaWiki\Extension\AbuseFilter\Filter\Flags
;
/**
* @internal
*/
class
FilterUtils
{
/**
* Given a bitmask of privacy levels, return if the hidden flag is set
*
* @param int $privacyLevel
* @return bool
*/
public
static
function
isHidden
(
int
$privacyLevel
)
{
return
(
bool
)(
Flags
::
FILTER_HIDDEN
&
$privacyLevel
);
}
/**
* Given a bitmask, return if the protected flag is set
*
* @param int $privacyLevel
* @return bool
*/
public
static
function
isProtected
(
int
$privacyLevel
)
{
return
(
bool
)(
Flags
::
FILTER_USES_PROTECTED_VARS
&
$privacyLevel
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 01:05 (1 d, 18 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8c/5d/2acb517094c0ea7951573985ddff
Default Alt Text
FilterUtils.php (643 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment