|
MediaWiki master
|
Namespaces | |
| namespace | Constraint |
Classes | |
| class | EditPage |
| The HTML user interface for page editing. More... | |
| interface | IEditObject |
| Serves as a common repository of constants for EditPage edit status results. More... | |
| class | IntroMessageBuilder |
| Provides the intro messages (edit notices and others) to be displayed before an edit form. More... | |
| class | IntroMessageList |
| Encapsulates a list of edit form intro messages (as HTML) with their identifiers. More... | |
| class | NotDirectlyEditableException |
| class | PageEditingHelper |
| Provides helper methods used by EditPage and a future editing backend (T157658). More... | |
| class | PreloadedContentBuilder |
| Provides the initial content of the edit box displayed in an edit form when creating a new page or a new section. More... | |
| class | SpamChecker |
| Service to check if text (either content or a summary) qualifies as spam. More... | |
| class | TemplatesOnThisPageFormatter |
| Handles formatting for the "templates used on this page" lists. More... | |
| class | TextboxBuilder |
| Helps EditPage build textboxes. More... | |
| class | TextConflictHelper |
| Helper for displaying edit conflicts in text content models to users. More... | |
Functions | |
| destroyStashedData () | |
| doReauthRedirect (PermissionStatus $status, array $queryParams, ?string $subaction=null) | |
| Redirect to the reauth flow on Special:UserLogin. | |
| enableReauthPopup (string $jsPopupModule, ?string $operation, bool $currentlyRequired=true) | |
| getContext () | |
| getReauthLockButtonAttribs () | |
| Return [ 'icon' => 'lock' ] to merge into a hand-built OOUI ButtonInputWidget's attribs. | |
| getReauthLockOOUIIcon () | |
| Return a standalone OOUI lock IconWidget (not attached to a button). | |
| getTitle () | |
| handleRetrievedData (array $data) | |
| Apply retrieved stashed user data to a page form. | |
| retrieveStashedData () | |
| setStashKey (string $keyValue) | |
| stashDataOnPost () | |
Variables | |
| trait | DataStashTrait |
| Securely stash user-posted data in the session, modeled on AuthManagerSpecialPage::handleReauthBeforeExecute(). | |
|
protected |
Definition at line 99 of file DataStashTrait.php.
Referenced by MediaWiki\EditPage\EditPage\edit().
|
protected |
Redirect to the reauth flow on Special:UserLogin.
Pass an optional $subaction so the reauth banner can pick an action-specific message (userlogin-reauth-banner-<operation>-<subaction>).
Definition at line 158 of file DataStashTrait.php.
Referenced by MediaWiki\EditPage\EditPage\edit().
|
protected |
Definition at line 108 of file DataStashTrait.php.
Referenced by MediaWiki\EditPage\EditPage\edit().
|
abstractprotected |
|
protected |
Return [ 'icon' => 'lock' ] to merge into a hand-built OOUI ButtonInputWidget's attribs.
Loads the icons-moderation styles module. Guard the call with your own reauth-required state.
For an HTMLForm submit button, see HTMLForm::setSubmitLockIcon(). For a standalone icon not on a button, see getReauthLockOOUIIcon().
Definition at line 134 of file DataStashTrait.php.
|
protected |
Return a standalone OOUI lock IconWidget (not attached to a button).
Loads the icons-moderation styles module. Guard the call with your own reauth-required state.
To attach a lock icon to a button instead, see getReauthLockButtonAttribs() (hand-built OOUI button) or HTMLForm::setSubmitLockIcon() (HTMLForm submit).
Definition at line 149 of file DataStashTrait.php.
|
abstractprotected |
Referenced by MediaWiki\EditPage\EditPage\edit(), MediaWiki\EditPage\EditPage\getContentObject(), MediaWiki\EditPage\EditPage\getPreviewText(), MediaWiki\EditPage\EditPage\getTemplates(), MediaWiki\EditPage\EditPage\showDiff(), MediaWiki\EditPage\EditPage\showEditForm(), and MediaWiki\EditPage\EditPage\toEditContent().
|
protected |
Apply retrieved stashed user data to a page form.
Called from retrieveStashedData() once the stashed data has been retrieved. The default is a no-op; the exhibiting class overrides it to act on the data, typically by setting form state such as $this->textbox1.
| array<string,mixed> | $data Retrieved stashed POST data (field => value) |
Definition at line 52 of file DataStashTrait.php.
|
protected |
Definition at line 76 of file DataStashTrait.php.
Referenced by MediaWiki\EditPage\EditPage\edit().
|
protected |
Definition at line 33 of file DataStashTrait.php.
Referenced by MediaWiki\EditPage\EditPage\edit().
|
protected |
Definition at line 55 of file DataStashTrait.php.
References $request.
Referenced by MediaWiki\EditPage\EditPage\edit().
| trait MediaWiki::EditPage\DataStashTrait |
Securely stash user-posted data in the session, modeled on AuthManagerSpecialPage::handleReauthBeforeExecute().
Definition at line 18 of file DataStashTrait.php.