Merge "Block: Expose list of block types as constant"
This commit is contained in:
commit
8b1d70f771
1 changed files with 11 additions and 0 deletions
|
|
@ -47,6 +47,17 @@ interface Block extends WikiAwareEntity {
|
||||||
public const TYPE_AUTO = 4;
|
public const TYPE_AUTO = 4;
|
||||||
public const TYPE_ID = 5;
|
public const TYPE_ID = 5;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Map block types to strings, to allow convenient logging.
|
||||||
|
*/
|
||||||
|
public const BLOCK_TYPES = [
|
||||||
|
self::TYPE_USER => 'user',
|
||||||
|
self::TYPE_IP => 'ip',
|
||||||
|
self::TYPE_RANGE => 'range',
|
||||||
|
self::TYPE_AUTO => 'autoblock',
|
||||||
|
self::TYPE_ID => 'id',
|
||||||
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the block ID
|
* Get the block ID
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue