手册:Action.php
Outdated translations are marked like this.
MediaWiki文件: Action.php | |
---|---|
位置: | includes/actions/ |
源代码: | master • 1.42.1 • 1.41.2 • 1.39.8 |
类: | Action |
操作是可以对页面执行的操作(编辑、删除、回滚等) 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