MediaWiki  REL1_19
RawAction Class Reference

A simple method to retrieve the plain source of an article, using "action=raw" in the GET request string. More...

Inheritance diagram for RawAction:
Collaboration diagram for RawAction:

List of all members.

Public Member Functions

 getContentType ()
 Get the content type to use for the response.
 getName ()
 Return the name of the action this object responds to.
 getOldId ()
 Get the ID of the revision that should used to get the text.
 getRawText ()
 Get the text that should be returned, or false if the page or revision was not found.
 onView ()
 Show something on GET request.
 requiresUnblock ()
 Whether this action can still be executed by a blocked user.
 requiresWrite ()
 Whether this action requires the wiki not to be locked.

Private Attributes

 $mGen

Detailed Description

A simple method to retrieve the plain source of an article, using "action=raw" in the GET request string.

Definition at line 20 of file RawAction.php.


Member Function Documentation

Get the content type to use for the response.

Returns:
String

Definition at line 191 of file RawAction.php.

References $wgJsMimeType, and Action\getRequest().

Referenced by onView().

Here is the call graph for this function:

Here is the caller graph for this function:

Return the name of the action this object responds to.

Returns:
String lowercase

Reimplemented from Action.

Definition at line 23 of file RawAction.php.

Get the ID of the revision that should used to get the text.

Returns:
Integer

Reimplemented in RawPage.

Definition at line 160 of file RawAction.php.

References Action\getRequest(), and Action\getTitle().

Referenced by getRawText().

Here is the call graph for this function:

Here is the caller graph for this function:

Get the text that should be returned, or false if the page or revision was not found.

Returns:
String|Bool

Definition at line 114 of file RawAction.php.

References $section, $title, $wgParser, Action\getContext(), getOldId(), Action\getRequest(), Action\getTitle(), ParserOptions\newFromContext(), Revision\newFromTitle(), wfMessage(), and wfTimestamp().

Referenced by onView().

Here is the call graph for this function:

Here is the caller graph for this function:

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 35 of file RawAction.php.

References $wgForcedRawSMaxage, $wgGroupPermissions, $wgJsMimeType, $wgSquidMaxage, echo, getContentType(), Action\getOutput(), getRawText(), Action\getRequest(), Action\getUser(), wfDebug(), and wfRunHooks().

Referenced by RawPage\view().

Here is the call graph for this function:

Here is the caller graph for this function:

Whether this action can still be executed by a blocked user.

Returns:
Bool

Reimplemented from Action.

Definition at line 31 of file RawAction.php.

Whether this action requires the wiki not to be locked.

Returns:
Bool

Reimplemented from Action.

Definition at line 27 of file RawAction.php.


Member Data Documentation

RawAction::$mGen [private]

Definition at line 21 of file RawAction.php.


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