Manual:Action.php
Appearance
MediaWiki file: Action.php | |
---|---|
Location: | includes/actions/ |
Source code: | master • 1.42.4 • 1.41.5 • 1.39.11 |
Classes: | Action |
Abstract base class for actions to be performed on pages (edit, delete, rollback, etc.). It is distinct from special pages in that an action must apply to exactly one page. To add an action to an extension, create a subclass of Action, and add the key to $wgActions.
Actions generally fall into two groups:
- a group represented by the FormAction class, intended for showing a form and acting on the input (protect, delete, move, etc.),
- a group represented by the FormlessAction class, intended for actions that do not require a form (watch, rollback, patrol, etc.).
Methods
[edit]This section is currently a draft. Material may not yet be complete, information may presently be omitted, and certain parts of the content may be subject to radical, rapid alteration. More information pertaining to this may be available on the talk page. |