MediaWiki 1.42.1
MediaWiki\Page\ProtectionForm Class Reference

Handles the page protection UI and backend. More...

Collaboration diagram for MediaWiki\Page\ProtectionForm:

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
 

Detailed Description

Handles the page protection UI and backend.

Definition at line 54 of file ProtectionForm.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Page\ProtectionForm::__construct ( Article $article)

Member Function Documentation

◆ execute()

MediaWiki\Page\ProtectionForm::execute ( )

Main entry point for action=protect and action=unprotect.

Definition at line 257 of file ProtectionForm.php.

Member Data Documentation

◆ $disabled

bool MediaWiki\Page\ProtectionForm::$disabled
protected

Definition at line 92 of file ProtectionForm.php.

◆ $disabledAttrib

array MediaWiki\Page\ProtectionForm::$disabledAttrib
protected

Definition at line 95 of file ProtectionForm.php.

◆ $mApplicableTypes

array MediaWiki\Page\ProtectionForm::$mApplicableTypes = []
protected

Types (i.e.

actions) for which levels can be selected

Definition at line 80 of file ProtectionForm.php.

◆ $mArticle

Article MediaWiki\Page\ProtectionForm::$mArticle
protected

Definition at line 86 of file ProtectionForm.php.

◆ $mCascade

bool MediaWiki\Page\ProtectionForm::$mCascade = false
protected

True if the restrictions are cascading, from request or existing protection.

Definition at line 65 of file ProtectionForm.php.

◆ $mExistingExpiry

array MediaWiki\Page\ProtectionForm::$mExistingExpiry = []
protected

Map of action to the expiry time of the existing protection.

Definition at line 83 of file ProtectionForm.php.

◆ $mExpiry

array MediaWiki\Page\ProtectionForm::$mExpiry = []
protected

Map of action to "other" expiry time.

Used in preference to mExpirySelection.

Definition at line 68 of file ProtectionForm.php.

◆ $mExpirySelection

array MediaWiki\Page\ProtectionForm::$mExpirySelection = []
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.

◆ $mPermStatus

PermissionStatus MediaWiki\Page\ProtectionForm::$mPermStatus
protected

Permissions errors for the protect action.

Definition at line 77 of file ProtectionForm.php.

◆ $mReason

string MediaWiki\Page\ProtectionForm::$mReason = ''
protected

The custom/additional protection reason.

Definition at line 59 of file ProtectionForm.php.

◆ $mReasonSelection

string MediaWiki\Page\ProtectionForm::$mReasonSelection = ''
protected

The reason selected from the list, blank for other/additional.

Definition at line 62 of file ProtectionForm.php.

◆ $mRestrictions

array MediaWiki\Page\ProtectionForm::$mRestrictions = []
protected

A map of action to restriction level, from request or default.

Definition at line 56 of file ProtectionForm.php.

◆ $mTitle

Title MediaWiki\Page\ProtectionForm::$mTitle
protected

Definition at line 89 of file ProtectionForm.php.


The documentation for this class was generated from the following file: