MediaWiki  REL1_19
FormlessAction Class Reference

Actions generally fall into two groups: the show-a-form-then-do-something-with-the-input format (protect, delete, move, etc), and the just-do-something format (watch, rollback, patrol, etc). 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

Actions generally fall into two groups: the show-a-form-then-do-something-with-the-input format (protect, delete, move, etc), and the just-do-something format (watch, rollback, patrol, etc).

Definition at line 493 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:
$dataArray values that would normally be in the GET request
$captureErrorsBool whether to catch exceptions and just return false
Returns:
Bool whether execution was successful

Definition at line 533 of file Action.php.

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

Here is the call graph for this function:

We don't want an HTMLForm.

Definition at line 505 of file Action.php.

Definition at line 509 of file Action.php.

Definition at line 513 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, CreditsAction, RevisiondeleteAction, RollbackAction, MarkpatrolledAction, RawAction, DeleteAction, EditAction, ProtectAction, RenderAction, and ViewAction.

Referenced by execute(), and show().

Here is the caller graph for this function:

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, DeleteAction, EditAction, ProtectAction, RenderAction, and ViewAction.

Definition at line 517 of file Action.php.

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

Here is the call graph for this function:


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