MediaWiki  1.33.0
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)
 @inheritDoc More...
 
 getBlockId ()
 @inheritDoc More...
 
 getHash ()
 @inheritDoc More...
 
 getValue ()
 @inheritDoc More...
 
 setBlockId ( $blockId)
 @inheritDoc More...
 
 toRow ()
 @inheritDoc More...
 
- 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 ()
 @inheritDoc More...
 
static getTypeId ()
 @inheritDoc More...
 
static newFromRow (\stdClass $row)
 @inheritDoc 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 54 of file AbstractRestriction.php.

References MediaWiki\Block\Restriction\AbstractRestriction\$blockId, MediaWiki\Block\Restriction\AbstractRestriction\$value, and value.

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

@inheritDoc

Implements MediaWiki\Block\Restriction\Restriction.

Reimplemented in MediaWiki\Block\Restriction\PageRestriction.

Definition at line 99 of file AbstractRestriction.php.

◆ setBlockId()

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

◆ toRow()

Member Data Documentation

◆ $blockId

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

◆ $value

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

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