MediaWiki
REL1_21
|
An action which just does something, without showing a form first. More...
Public Member Functions | |
execute (array $data=null, $captureErrors=true) | |
Execute the action silently, not giving any output. | |
onSubmit ($data) | |
onSuccess () | |
onView () | |
Show something on GET request. | |
show () | |
The main action entry point. | |
Protected Member Functions | |
getFormFields () | |
We don't want an HTMLForm. |
An action which just does something, without showing a form first.
Definition at line 501 of file Action.php.
FormlessAction::execute | ( | array $ | data = null , |
$ | captureErrors = true |
||
) |
Execute the action silently, not giving any output.
Since these actions don't have forms, they probably won't have any data, but some (eg rollback) may do
array | $data | values that would normally be in the GET request |
bool | $captureErrors | whether to catch exceptions and just return false |
ErrorPageError|Exception |
Definition at line 550 of file Action.php.
FormlessAction::getFormFields | ( | ) | [protected] |
FormlessAction::onSubmit | ( | $ | data | ) |
Definition at line 529 of file Action.php.
FormlessAction::onView | ( | ) | [abstract] |
Show something on GET request.
Reimplemented in HistoryAction, InfoAction, RawAction, RevisiondeleteAction, CreditsAction, EditAction, MarkpatrolledAction, DeleteAction, ProtectAction, RenderAction, ViewAction, and RollbackAction.
The main action entry point.
Do all output for display and send it to the context output. Do not use globals $wgOut, $wgRequest, etc, in implementations; use $this->getOutput(), etc.
ErrorPageError |
Reimplemented from Action.
Reimplemented in SubmitAction, UnprotectAction, RevisiondeleteAction, EditAction, DeleteAction, ProtectAction, RenderAction, and ViewAction.
Definition at line 533 of file Action.php.