MediaWiki REL1_35
|
System blocks are temporary blocks that are created on enforcement (e.g. More...
Public Member Functions | |
__construct (array $options=[]) | |
Create a new block with specified parameters on a user, IP or IP range. | |
appliesToPasswordReset () | |
Check if the block prevents a user from resetting their password.
| |
getBy () | |
Get the user id of the blocking sysop.
| |
getByName () | |
Get the username of the blocking sysop.
| |
getIdentifier () | |
Get the information that identifies this block, such that a user could look up everything that can be found about this block.May be an ID, array of IDs, type, etc.
| |
getSystemBlockType () | |
Get the system block type, if any. | |
Public Member Functions inherited from MediaWiki\Block\AbstractBlock | |
appliesToNamespace ( $ns) | |
Checks if a block applies to a particular namespace. | |
appliesToPage ( $pageId) | |
Checks if a block applies to a particular page. | |
appliesToRight ( $right) | |
Determine whether the block prevents a given right. | |
appliesToTitle (Title $title) | |
Checks if a block applies to a particular title. | |
appliesToUsertalk (Title $usertalk=null) | |
Determine whether the block allows the user to edit their own user talk page. | |
getBlocker () | |
Get the user who implemented this block. | |
getBlockErrorParams (IContextSource $context) | |
Get block information used in different block error messages. | |
getExpiry () | |
Get the block expiry time. | |
getHideName () | |
Get whether the block hides the target's username. | |
getId () | |
Get the block ID. | |
getPermissionsError (IContextSource $context) | |
Get the key and parameters for the corresponding error message. | |
getReason () | |
Get the reason given for creating the block, as a string. | |
getReasonComment () | |
Get the reason for creating the block. | |
getTarget () | |
Get the target for this particular block. | |
getTargetAndType () | |
Get the target and target type for this particular block. | |
getTimestamp () | |
Get the timestamp indicating when the block was created. | |
getType () | |
Get the type of target for this particular block. | |
isCreateAccountBlocked ( $x=null) | |
Get or set the flag indicating whether this block blocks the target from creating an account. | |
isEmailBlocked ( $x=null) | |
Get or set the flag indicating whether this block blocks the target from sending emails. | |
isSitewide ( $x=null) | |
Indicates that the block is a sitewide block. | |
isUsertalkEditAllowed ( $x=null) | |
Get or set the flag indicating whether this block blocks the target from editing their own user talk page. | |
prevents ( $action, $x=null) | |
Get/set whether the block prevents a given action. | |
setBlocker ( $user) | |
Set the user who implemented (or will implement) this block. | |
setExpiry ( $expiry) | |
Set the block expiry time. | |
setHideName ( $hideName) | |
Set whether ths block hides the target's username. | |
setReason ( $reason) | |
Set the reason for creating the block. | |
setTarget ( $target) | |
Set the target for this block, and update $this->type accordingly. | |
setTimestamp ( $timestamp) | |
Set the timestamp indicating when the block was created. | |
shouldTrackWithCookie ( $isAnon) | |
Check if the block should be tracked with a cookie. | |
Private Attributes | |
string null | $systemBlockType |
Additional Inherited Members | |
Static Public Member Functions inherited from MediaWiki\Block\AbstractBlock | |
static | parseTarget ( $target) |
From an existing block, get the target and the type of target. | |
Public Attributes inherited from MediaWiki\Block\AbstractBlock | |
string | $mExpiry = '' |
bool | $mHideName = false |
string | $mTimestamp |
const | TYPE_AUTO = 4 |
const | TYPE_ID = 5 |
const | TYPE_IP = 2 |
const | TYPE_RANGE = 3 |
const | TYPE_USER = 1 |
Protected Attributes inherited from MediaWiki\Block\AbstractBlock | |
bool | $allowUsertalk = false |
bool | $blockCreateAccount = false |
bool | $isSitewide = true |
bool | $mBlockEmail = false |
$mReason | |
CommentStoreComment | $reason |
User string null | $target |
int null | $type |
AbstractBlock::TYPE_ constant. | |
System blocks are temporary blocks that are created on enforcement (e.g.
from IP blacklists) and are not saved to the database. The target of a system block is an IP address. System blocks do not give rise to autoblocks and are not tracked with cookies.
Definition at line 33 of file SystemBlock.php.
MediaWiki\Block\SystemBlock::__construct | ( | array | $options = [] | ) |
Create a new block with specified parameters on a user, IP or IP range.
array | $options | Parameters of the block, with options supported by AbstractBlock::__construct , and also:
|
Reimplemented from MediaWiki\Block\AbstractBlock.
Definition at line 46 of file SystemBlock.php.
MediaWiki\Block\SystemBlock::appliesToPasswordReset | ( | ) |
Check if the block prevents a user from resetting their password.
Reimplemented from MediaWiki\Block\AbstractBlock.
Definition at line 82 of file SystemBlock.php.
References MediaWiki\Block\SystemBlock\getSystemBlockType(), and MediaWiki\Block\AbstractBlock\isCreateAccountBlocked().
MediaWiki\Block\SystemBlock::getBy | ( | ) |
Get the user id of the blocking sysop.
Reimplemented from MediaWiki\Block\AbstractBlock.
Definition at line 100 of file SystemBlock.php.
MediaWiki\Block\SystemBlock::getByName | ( | ) |
Get the username of the blocking sysop.
Reimplemented from MediaWiki\Block\AbstractBlock.
Definition at line 107 of file SystemBlock.php.
MediaWiki\Block\SystemBlock::getIdentifier | ( | ) |
Get the information that identifies this block, such that a user could look up everything that can be found about this block.May be an ID, array of IDs, type, etc.
Reimplemented from MediaWiki\Block\AbstractBlock.
Definition at line 75 of file SystemBlock.php.
References MediaWiki\Block\SystemBlock\getSystemBlockType().
MediaWiki\Block\SystemBlock::getSystemBlockType | ( | ) |
Get the system block type, if any.
A SystemBlock can have the following types:
Definition at line 68 of file SystemBlock.php.
References MediaWiki\Block\SystemBlock\$systemBlockType.
Referenced by MediaWiki\Block\SystemBlock\appliesToPasswordReset(), and MediaWiki\Block\SystemBlock\getIdentifier().
|
private |
Definition at line 35 of file SystemBlock.php.
Referenced by MediaWiki\Block\SystemBlock\getSystemBlockType().