MediaWiki  master
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)
 
 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)
 
 getBlockId ()
 
 getHash ()
 
 getValue ()
 
 setBlockId ( $blockId)
 
 toRow ()
 

Static Public Member Functions

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

Public Attributes

const TYPE = 'page'
 
const TYPE_ID = 1
 
- 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...
 

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

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

Implements MediaWiki\Block\Restriction\Restriction.

Definition at line 89 of file PageRestriction.php.

References Title\newFromRow().

◆ 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: