Podręcznik:Action.php
Appearance
Outdated translations are marked like this.
Plik MediaWiki: Action.php | |
---|---|
Lokalizacja: | includes/actions/ |
Kod źródłowy: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Klasy: | Action |
Akcje to rzeczy, które można robić ze stronami (edycja, usuwanie, przywracanie itp.) 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
@todo