|
MediaWiki master
|
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 41 of file ProtectionForm.php.
| MediaWiki\Page\ProtectionForm::__construct | ( | Article | $article | ) |
Definition at line 87 of file ProtectionForm.php.
References MediaWiki\Page\Article\getContext(), MediaWiki\MediaWikiServices\getInstance(), and MediaWiki\Page\Article\getTitle().
| MediaWiki\Page\ProtectionForm::execute | ( | ) |
Main entry point for action=protect and action=unprotect.
Definition at line 207 of file ProtectionForm.php.
|
protected |
Definition at line 74 of file ProtectionForm.php.
|
protected |
Definition at line 75 of file ProtectionForm.php.
|
protected |
Types (i.e.
actions) for which levels can be selected
Definition at line 67 of file ProtectionForm.php.
|
protected |
Definition at line 72 of file ProtectionForm.php.
|
protected |
True if the restrictions are cascading, from request or existing protection.
Definition at line 52 of file ProtectionForm.php.
|
protected |
Map of action to the expiry time of the existing protection.
Definition at line 70 of file ProtectionForm.php.
|
protected |
Map of action to "other" expiry time.
Used in preference to mExpirySelection.
Definition at line 55 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 61 of file ProtectionForm.php.
|
protected |
Permissions errors for the protect action.
Definition at line 64 of file ProtectionForm.php.
|
protected |
The custom/additional protection reason.
Definition at line 46 of file ProtectionForm.php.
|
protected |
The reason selected from the list, blank for other/additional.
Definition at line 49 of file ProtectionForm.php.
|
protected |
A map of action to restriction level, from request or default.
Definition at line 43 of file ProtectionForm.php.
|
protected |
Definition at line 73 of file ProtectionForm.php.