MediaWiki REL1_40
|
Handles the page protection UI and backend. More...
Public Member Functions | |
__construct (Article $article) | |
execute () | |
Main entry point for action=protect and action=unprotect. | |
Protected Attributes | |
bool | $disabled |
array | $disabledAttrib |
array | $mApplicableTypes = [] |
Types (i.e. | |
Article | $mArticle |
bool | $mCascade = false |
True if the restrictions are cascading, from request or existing protection. | |
array | $mExistingExpiry = [] |
Map of action to the expiry time of the existing protection. | |
array | $mExpiry = [] |
Map of action to "other" expiry time. | |
array | $mExpirySelection = [] |
Map of action to value selected in expiry drop-down list. | |
PermissionStatus | $mPermStatus |
Permissions errors for the protect action. | |
string | $mReason = '' |
The custom/additional protection reason. | |
string | $mReasonSelection = '' |
The reason selected from the list, blank for other/additional. | |
array | $mRestrictions = [] |
A map of action to restriction level, from request or default. | |
Title | $mTitle |
Handles the page protection UI and backend.
Definition at line 54 of file ProtectionForm.php.
MediaWiki\Page\ProtectionForm::__construct | ( | Article | $article | ) |
Definition at line 129 of file ProtectionForm.php.
References Article\getContext(), MediaWiki\MediaWikiServices\getInstance(), and Article\getTitle().
MediaWiki\Page\ProtectionForm::execute | ( | ) |
Main entry point for action=protect and action=unprotect.
Definition at line 257 of file ProtectionForm.php.
|
protected |
Definition at line 92 of file ProtectionForm.php.
|
protected |
Definition at line 95 of file ProtectionForm.php.
|
protected |
Types (i.e.
actions) for which levels can be selected
Definition at line 80 of file ProtectionForm.php.
|
protected |
Definition at line 86 of file ProtectionForm.php.
|
protected |
True if the restrictions are cascading, from request or existing protection.
Definition at line 65 of file ProtectionForm.php.
|
protected |
Map of action to the expiry time of the existing protection.
Definition at line 83 of file ProtectionForm.php.
|
protected |
Map of action to "other" expiry time.
Used in preference to mExpirySelection.
Definition at line 68 of file ProtectionForm.php.
|
protected |
Map of action to value selected in expiry drop-down list.
Will be set to 'othertime' whenever mExpiry is set.
Definition at line 74 of file ProtectionForm.php.
|
protected |
Permissions errors for the protect action.
Definition at line 77 of file ProtectionForm.php.
|
protected |
The custom/additional protection reason.
Definition at line 59 of file ProtectionForm.php.
|
protected |
The reason selected from the list, blank for other/additional.
Definition at line 62 of file ProtectionForm.php.
|
protected |
A map of action to restriction level, from request or default.
Definition at line 56 of file ProtectionForm.php.
|
protected |
Definition at line 89 of file ProtectionForm.php.