MediaWiki master
MediaWiki\Block\AutoblockExemptionList Class Reference

Provides access to the wiki's autoblock exemption list. More...

Public Member Functions

 __construct (ServiceOptions $options, LoggerInterface $logger, ITextFormatter $textFormatter)
 
 isExempt ( $ip)
 Checks whether a given IP is on the autoblock exemption list.
 

Public Attributes

const CONSTRUCTOR_OPTIONS
 

Detailed Description

Provides access to the wiki's autoblock exemption list.

Since
1.42

Definition at line 17 of file AutoblockExemptionList.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Block\AutoblockExemptionList::__construct ( ServiceOptions $options,
LoggerInterface $logger,
ITextFormatter $textFormatter )

Member Function Documentation

◆ isExempt()

MediaWiki\Block\AutoblockExemptionList::isExempt ( $ip)

Checks whether a given IP is on the autoblock exemption list.

Parameters
string$ipThe IP to check
Returns
bool

Definition at line 71 of file AutoblockExemptionList.php.

Member Data Documentation

◆ CONSTRUCTOR_OPTIONS

const MediaWiki\Block\AutoblockExemptionList::CONSTRUCTOR_OPTIONS
Initial value:
= [
]
const AutoblockExemptions
Name constant for the AutoblockExemptions setting, for use with Config::get()
Access: internal

Definition at line 19 of file AutoblockExemptionList.php.


The documentation for this class was generated from the following file: