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

Public Member Functions

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

Static Public Member Functions

static getType ()
 
static getTypeId ()
 
static newFromRow (\stdClass $row)
 

Public Attributes

const TYPE = ''
 String constant identifying the type of restriction. More...
 
const TYPE_ID = 0
 Numeric type identifier. More...
 

Protected Attributes

int $blockId
 
int $value
 

Detailed Description

Definition at line 25 of file AbstractRestriction.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Block\Restriction\AbstractRestriction::__construct (   $blockId,
  $value 
)

Create Restriction.

Since
1.33
Parameters
int$blockId
int$value

Definition at line 56 of file AbstractRestriction.php.

Member Function Documentation

◆ equals()

MediaWiki\Block\Restriction\AbstractRestriction::equals ( Restriction  $other)

◆ getBlockId()

MediaWiki\Block\Restriction\AbstractRestriction::getBlockId ( )

◆ getHash()

◆ getType()

static MediaWiki\Block\Restriction\AbstractRestriction::getType ( )
static

◆ getTypeId()

static MediaWiki\Block\Restriction\AbstractRestriction::getTypeId ( )
static

◆ getValue()

◆ newFromRow()

static MediaWiki\Block\Restriction\AbstractRestriction::newFromRow ( \stdClass  $row)
static

Implements MediaWiki\Block\Restriction\Restriction.

Definition at line 101 of file AbstractRestriction.php.

◆ setBlockId()

MediaWiki\Block\Restriction\AbstractRestriction::setBlockId (   $blockId)

Implements MediaWiki\Block\Restriction\Restriction.

Definition at line 85 of file AbstractRestriction.php.

◆ toRow()

Member Data Documentation

◆ $blockId

int MediaWiki\Block\Restriction\AbstractRestriction::$blockId
protected

◆ $value

int MediaWiki\Block\Restriction\AbstractRestriction::$value
protected

◆ TYPE

const MediaWiki\Block\Restriction\AbstractRestriction::TYPE = ''

String constant identifying the type of restriction.

Expected to be overriden in subclasses with a non-empty string value.

Definition at line 31 of file AbstractRestriction.php.

◆ TYPE_ID

const MediaWiki\Block\Restriction\AbstractRestriction::TYPE_ID = 0

Numeric type identifier.

Expected to be overriden in subclasses with a non-zero integer number. Must not exceed 127 to fit into a TINYINT database field.

Definition at line 37 of file AbstractRestriction.php.


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