MediaWiki
REL1_22
|
A simple method to retrieve the plain source of an article, using "action=raw" in the GET request string. More...
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 |
A simple method to retrieve the plain source of an article, using "action=raw" in the GET request string.
Definition at line 35 of file RawAction.php.
Get the content type to use for the response.
Definition at line 226 of file RawAction.php.
References array(), and Action\getRequest().
Referenced by onView().
Return the name of the action this object responds to.
Reimplemented from Action.
Definition at line 38 of file RawAction.php.
Get the ID of the revision that should used to get the text.
Reimplemented in RawPage.
Definition at line 195 of file RawAction.php.
References Action\getRequest(), Action\getTitle(), and page.
Referenced by getRawText().
Get the text that should be returned, or false if the page or revision was not found.
Definition at line 127 of file RawAction.php.
References $rev, $section, $title, $wgParser, Action\getContext(), getOldId(), Action\getRequest(), Action\getTitle(), global, ParserOptions\newFromContext(), Revision\newFromTitle(), MessageCache\singleton(), true, wfHttpError(), and wfTimestamp().
Referenced by onView().
Show something on GET request.
Reimplemented from FormlessAction.
Definition at line 50 of file RawAction.php.
References $response, array(), getContentType(), Action\getOutput(), getRawText(), Action\getRequest(), Action\getUser(), global, User\isEveryoneAllowed(), page, wfDebug(), and wfRunHooks().
Referenced by RawPage\view().
Whether this action can still be executed by a blocked user.
Reimplemented from Action.
Definition at line 46 of file RawAction.php.
Whether this action requires the wiki not to be locked.
Reimplemented from Action.
Definition at line 42 of file RawAction.php.
RawAction::$mGen [private] |
Definition at line 36 of file RawAction.php.