MediaWiki  master
MediaWiki\Block\Restriction\NamespaceRestriction Class Reference
Inheritance diagram for MediaWiki\Block\Restriction\NamespaceRestriction:
Collaboration diagram for MediaWiki\Block\Restriction\NamespaceRestriction:

Public Member Functions

 matches (\Title $title)
 
- Public Member Functions inherited from MediaWiki\Block\Restriction\AbstractRestriction
 __construct ( $blockId, $value)
 Create Restriction. More...
 
 equals (Restriction $other)
 
 getBlockId ()
 
 getHash ()
 
 getValue ()
 
 setBlockId ( $blockId)
 
 toRow ()
 

Public Attributes

const TYPE = 'ns'
 
const TYPE_ID = 2
 
- Public Attributes inherited from MediaWiki\Block\Restriction\AbstractRestriction
const TYPE = ''
 String constant identifying the type of restriction. More...
 
const TYPE_ID = 0
 Numeric type identifier. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from MediaWiki\Block\Restriction\AbstractRestriction
static getType ()
 
static getTypeId ()
 
static newFromRow (\stdClass $row)
 
- Protected Attributes inherited from MediaWiki\Block\Restriction\AbstractRestriction
int $blockId
 
int $value
 

Detailed Description

Definition at line 25 of file NamespaceRestriction.php.

Member Function Documentation

◆ matches()

MediaWiki\Block\Restriction\NamespaceRestriction::matches ( \Title  $title)

Member Data Documentation

◆ TYPE

const MediaWiki\Block\Restriction\NamespaceRestriction::TYPE = 'ns'

◆ TYPE_ID

const MediaWiki\Block\Restriction\NamespaceRestriction::TYPE_ID = 2

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