Page MenuHomeWickedGov Phorge

FilterUtils.php
No OneTemporary

Size
643 B
Referenced Files
None
Subscribers
None

FilterUtils.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 );
}
/**
* 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

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)

Event Timeline