MediaWiki master
Restriction.php
Go to the documentation of this file.
1<?php
10
12
13interface 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}
Represents a title within MediaWiki.
Definition Title.php:69
setBlockId( $blockId)
Set the ID of the block.
getValue()
Get the value of the restriction.
static getType()
Get the type of restriction.
getHash()
Create a unique hash of the block restriction based on the type and value.
toRow()
Convert a restriction object into a row array for insertion.
equals(Restriction $other)
Determine if a restriction equals another restriction.
matches(Title $title)
Determine if a restriction matches a given title.
static newFromRow(\stdClass $row)
Create a new Restriction from a database row.
getBlockId()
Get the ID of the block.
static getTypeId()
Get the ID of the type of restriction.