MediaWiki REL1_39
|
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 37 of file ProtectionForm.php.
ProtectionForm::__construct | ( | Article | $article | ) |
Definition at line 112 of file ProtectionForm.php.
References Article\getContext(), and Article\getTitle().
ProtectionForm::execute | ( | ) |
Main entry point for action=protect and action=unprotect.
Definition at line 240 of file ProtectionForm.php.
|
protected |
Definition at line 75 of file ProtectionForm.php.
|
protected |
Definition at line 78 of file ProtectionForm.php.
|
protected |
Types (i.e.
actions) for which levels can be selected
Definition at line 63 of file ProtectionForm.php.
|
protected |
Definition at line 69 of file ProtectionForm.php.
|
protected |
True if the restrictions are cascading, from request or existing protection.
Definition at line 48 of file ProtectionForm.php.
|
protected |
Map of action to the expiry time of the existing protection.
Definition at line 66 of file ProtectionForm.php.
|
protected |
Map of action to "other" expiry time.
Used in preference to mExpirySelection.
Definition at line 51 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 57 of file ProtectionForm.php.
|
protected |
Permissions errors for the protect action.
Definition at line 60 of file ProtectionForm.php.
|
protected |
The custom/additional protection reason.
Definition at line 42 of file ProtectionForm.php.
|
protected |
The reason selected from the list, blank for other/additional.
Definition at line 45 of file ProtectionForm.php.
|
protected |
A map of action to restriction level, from request or default.
Definition at line 39 of file ProtectionForm.php.
|
protected |
Definition at line 72 of file ProtectionForm.php.