MediaWiki
master
Restriction.php
Go to the documentation of this file.
1
<?php
9
namespace
MediaWiki\Block\Restriction
;
10
11
use
MediaWiki\Title\Title
;
12
13
interface
Restriction
{
14
21
public
function
getBlockId
();
22
30
public
function
setBlockId
( $blockId );
31
38
public
function
getValue
();
39
46
public
static
function
getType
();
47
54
public
static
function
getTypeId
();
55
63
public
static
function
newFromRow
( \stdClass $row );
64
71
public
function
toRow
();
72
80
public
function
matches
(
Title
$title );
81
89
public
function
equals
(
Restriction
$other );
90
97
public
function
getHash
();
98
99
}
MediaWiki\Title\Title
Represents a title within MediaWiki.
Definition
Title.php:69
MediaWiki\Block\Restriction\Restriction
Definition
Restriction.php:13
MediaWiki\Block\Restriction\Restriction\setBlockId
setBlockId( $blockId)
Set the ID of the block.
MediaWiki\Block\Restriction\Restriction\getValue
getValue()
Get the value of the restriction.
MediaWiki\Block\Restriction\Restriction\getType
static getType()
Get the type of restriction.
MediaWiki\Block\Restriction\Restriction\getHash
getHash()
Create a unique hash of the block restriction based on the type and value.
MediaWiki\Block\Restriction\Restriction\toRow
toRow()
Convert a restriction object into a row array for insertion.
MediaWiki\Block\Restriction\Restriction\equals
equals(Restriction $other)
Determine if a restriction equals another restriction.
MediaWiki\Block\Restriction\Restriction\matches
matches(Title $title)
Determine if a restriction matches a given title.
MediaWiki\Block\Restriction\Restriction\newFromRow
static newFromRow(\stdClass $row)
Create a new Restriction from a database row.
MediaWiki\Block\Restriction\Restriction\getBlockId
getBlockId()
Get the ID of the block.
MediaWiki\Block\Restriction\Restriction\getTypeId
static getTypeId()
Get the ID of the type of restriction.
MediaWiki\Block\Restriction
Definition
AbstractRestriction.php:9
includes
Block
Restriction
Restriction.php
Generated on Sat Apr 11 2026 11:24:08 for MediaWiki by
1.10.0