MediaWiki
master
Restriction.php
Go to the documentation of this file.
1
<?php
23
namespace
MediaWiki\Block\Restriction
;
24
25
use
MediaWiki\Title\Title
;
26
27
interface
Restriction
{
28
35
public
function
getBlockId
();
36
44
public
function
setBlockId
( $blockId );
45
52
public
function
getValue
();
53
60
public
static
function
getType
();
61
68
public
static
function
getTypeId
();
69
77
public
static
function
newFromRow
( \stdClass $row );
78
85
public
function
toRow
();
86
94
public
function
matches
(
Title
$title );
95
103
public
function
equals
(
Restriction
$other );
104
111
public
function
getHash
();
112
113
}
MediaWiki\Title\Title
Represents a title within MediaWiki.
Definition
Title.php:78
MediaWiki\Block\Restriction\Restriction
Definition
Restriction.php:27
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:23
includes
block
Restriction
Restriction.php
Generated on Thu Oct 10 2024 19:23:24 for MediaWiki by
1.10.0