MediaWiki  1.33.0
MediaWiki\Block\Restriction\PageRestriction Class Reference
Inheritance diagram for MediaWiki\Block\Restriction\PageRestriction:
Collaboration diagram for MediaWiki\Block\Restriction\PageRestriction:

Public Member Functions

 getTitle ()
 Get Title. More...
 
 matches (\Title $title)
 @inheritDoc More...
 
 setTitle (\Title $title)
 Set the title. More...
 
- Public Member Functions inherited from MediaWiki\Block\Restriction\AbstractRestriction
 __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...
 

Static Public Member Functions

static newFromRow (\stdClass $row)
 @inheritDoc More...
 
- Static Public Member Functions inherited from MediaWiki\Block\Restriction\AbstractRestriction
static getType ()
 @inheritDoc More...
 
static getTypeId ()
 @inheritDoc More...
 

Public Attributes

const TYPE = 'page'
 @inheritDoc More...
 
const TYPE_ID = 1
 @inheritDoc More...
 

Protected Attributes

Title bool $title
 
- Protected Attributes inherited from MediaWiki\Block\Restriction\AbstractRestriction
int $blockId
 
int $value
 

Detailed Description

Definition at line 25 of file PageRestriction.php.

Member Function Documentation

◆ getTitle()

MediaWiki\Block\Restriction\PageRestriction::getTitle ( )

Get Title.

Since
1.33
Returns
\Title|null

Definition at line 72 of file PageRestriction.php.

References Title\newFromID(), title, and value.

Referenced by MediaWiki\Block\Restriction\PageRestriction\matches().

◆ matches()

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

◆ newFromRow()

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

◆ setTitle()

MediaWiki\Block\Restriction\PageRestriction::setTitle ( \Title  $title)

Set the title.

Since
1.33
Parameters
\\Title$title
Returns
self

Definition at line 60 of file PageRestriction.php.

References MediaWiki\Block\Restriction\PageRestriction\$title, and title.

Referenced by SpecialBlock\processForm().

Member Data Documentation

◆ $title

Title bool MediaWiki\Block\Restriction\PageRestriction::$title
protected

◆ TYPE

const MediaWiki\Block\Restriction\PageRestriction::TYPE = 'page'

◆ TYPE_ID

const MediaWiki\Block\Restriction\PageRestriction::TYPE_ID = 1

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