mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
21 lines
393 B
PHP
21 lines
393 B
PHP
|
<?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 );
|
||
|
}
|
||
|
}
|