MediaWiki REL1_33
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.
 
 matches (\Title $title)
 @inheritDoc
 
 setTitle (\Title $title)
 Set the title.
 
- Public Member Functions inherited from MediaWiki\Block\Restriction\AbstractRestriction
 __construct ( $blockId, $value)
 Create Restriction.
 
 equals (Restriction $other)
 @inheritDoc
 
 getBlockId ()
 @inheritDoc
 
 getHash ()
 @inheritDoc
 
 getValue ()
 @inheritDoc
 
 setBlockId ( $blockId)
 @inheritDoc
 
 toRow ()
 @inheritDoc
 

Static Public Member Functions

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

Public Attributes

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

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.

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

@inheritDoc

Reimplemented from MediaWiki\Block\Restriction\AbstractRestriction.

Definition at line 89 of file PageRestriction.php.

References and().

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

Member Data Documentation

◆ $title

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

◆ TYPE

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

@inheritDoc

Definition at line 30 of file PageRestriction.php.

◆ TYPE_ID

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

@inheritDoc

Definition at line 35 of file PageRestriction.php.


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