MediaWiki  REL1_24
EditAction Class Reference

Page edition handler. More...

Inheritance diagram for EditAction:
Collaboration diagram for EditAction:

List of all members.

Public Member Functions

 getName ()
 Return the name of the action this object responds to.
 onView ()
 Show something on GET request.
 show ()
 The main action entry point.

Detailed Description

Page edition handler.

This is a wrapper that will call the EditPage class or a custom editor from an extension.

Definition at line 33 of file EditAction.php.


Member Function Documentation

Return the name of the action this object responds to.

Since:
1.17
Returns:
string Lowercase name

Reimplemented from Action.

Reimplemented in SubmitAction.

Definition at line 35 of file EditAction.php.

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 from FormlessAction.

Definition at line 39 of file EditAction.php.

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

Reimplemented in SubmitAction.

Definition at line 43 of file EditAction.php.

References $editor, $out, Action\$page, $user, array(), Action\getContext(), Action\getOutput(), Action\getUser(), page, and wfRunHooks().


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