MediaWiki  REL1_22
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

 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.

Detailed Description

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

Definition at line 526 of file Action.php.


Member Function Documentation

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

Parameters:
array$datavalues that would normally be in the GET request
bool$captureErrorswhether to catch exceptions and just return false
Exceptions:
ErrorPageError|Exception
Returns:
Bool whether execution was successful

Definition at line 575 of file Action.php.

We don't want an HTMLForm.

Returns:
bool

Definition at line 539 of file Action.php.

Parameters:
$dataArray
Returns:
bool

Definition at line 547 of file Action.php.

Returns:
bool

Definition at line 554 of file Action.php.

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, 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.

Exceptions:
ErrorPageError

Reimplemented from Action.

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

Definition at line 558 of file Action.php.


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