Handbuch:Action.php
MediaWiki-Datei: Action.php | |
---|---|
Speicherort: | includes/actions/ |
Quellcode: | master • 1.43.0 • 1.42.5 • 1.39.11 |
Klassen: | 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
Dieser Abschnitt ist derzeit ein Entwurf. Das Material ist jetzt möglicherweise noch nicht vollständig. Informationen sind derzeit ausgelassen und bestimmte Teile des Inhaltes sind vorbehaltlich radikale und schnelle Änderungen. Mehr Informationen die sich auf dies beziehen sind möglicherweise auf der Diskussionsseite verfügbar. |