MediaWiki REL1_33
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.
 
 equals (Restriction $other)
 @inheritDoc
 
 getBlockId ()
 @inheritDoc
 
 getHash ()
 @inheritDoc
 
 getValue ()
 @inheritDoc
 
 setBlockId ( $blockId)
 @inheritDoc
 
 toRow ()
 @inheritDoc
 
- Public Member Functions inherited from MediaWiki\Block\Restriction\Restriction
 matches (\Title $title)
 Determine if a restriction matches a given title.
 

Static Public Member Functions

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

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 and().

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: