MediaWiki  REL1_22
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 ExternalEdit if $wgUseExternalEditor is set to true and requested by the user.

Definition at line 34 of file EditAction.php.


Member Function Documentation

Return the name of the action this object responds to.

Returns:
String lowercase

Reimplemented from Action.

Reimplemented in SubmitAction.

Definition at line 36 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 40 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.

Exceptions:
ErrorPageError

Reimplemented from FormlessAction.

Reimplemented in SubmitAction.

Definition at line 44 of file EditAction.php.

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


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