MediaWiki  REL1_24
FormlessAction Class Reference

An action which just does something, without showing a form first. More...

Inheritance diagram for FormlessAction:
Collaboration diagram for FormlessAction:

List of all members.

Public Member Functions

 onView ()
 Show something on GET request.
 show ()
 The main action entry point.

Detailed Description

An action which just does something, without showing a form first.

Definition at line 28 of file FormlessAction.php.


Member Function Documentation

FormlessAction::onView ( ) [abstract]

Show something on GET request.

Returns:
string|null Will be added to the HTMLForm if present, or just added to the output if not. Return null to not add anything

Reimplemented in HistoryAction, InfoAction, RawAction, RevisiondeleteAction, CreditsAction, MarkpatrolledAction, DeleteAction, EditAction, ProtectAction, RenderAction, ViewAction, and RollbackAction.

Referenced by show().

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.

Since:
1.17
Exceptions:
ErrorPageError

Reimplemented from Action.

Reimplemented in RevisiondeleteAction, DeleteAction, EditAction, ProtectAction, RenderAction, ViewAction, UnprotectAction, and SubmitAction.

Definition at line 37 of file FormlessAction.php.

References Action\checkCanExecute(), Action\getOutput(), Action\getUser(), onView(), and Action\setHeaders().


The documentation for this class was generated from the following file: