MediaWiki
1.28.0
|
Public Member Functions | |
executeSpecialPage (SpecialPage $page, $subPage= '', WebRequest $request=null, $language=null, User $user=null) | |
Private Member Functions | |
getHTMLFromSpecialPage (SpecialPage $page, $subPage) | |
newContext (WebRequest $request=null, $language=null, User $user=null) | |
setEditTokenFromUser (DerivativeContext $context) | |
If we are trying to edit and no token is set, supply one. More... | |
Definition at line 8 of file SpecialPageExecutor.php.
SpecialPageExecutor::executeSpecialPage | ( | SpecialPage | $page, |
$subPage = '' , |
|||
WebRequest | $request = null , |
||
$language = null , |
|||
User | $user = null |
||
) |
SpecialPage | $page | The special page to execute |
string | $subPage | The subpage parameter to call the page with |
WebRequest | null | $request | Web request that may contain URL parameters, etc |
Language | string | null | $language | The language which should be used in the context |
User | null | $user | The user which should be used in the context of this special page |
Exception |
Definition at line 21 of file SpecialPageExecutor.php.
References $code, $context, $html, $output, $request, $response, $user, getHTMLFromSpecialPage(), HttpStatus\getMessage(), SpecialPage\getPageTitle(), newContext(), and SpecialPage\setContext().
|
private |
SpecialPage | $page | |
string | $subPage |
Exception |
Definition at line 101 of file SpecialPageExecutor.php.
References $html, $output, SpecialPage\execute(), and SpecialPage\getOutput().
Referenced by executeSpecialPage().
|
private |
WebRequest | null | $request | |
Language | string | null | $language | |
User | null | $user |
Definition at line 57 of file SpecialPageExecutor.php.
References $context, $request, $user, RequestContext\getMain(), and setEditTokenFromUser().
Referenced by executeSpecialPage().
|
private |
If we are trying to edit and no token is set, supply one.
DerivativeContext | $context |
Definition at line 84 of file SpecialPageExecutor.php.
References $request, DerivativeContext\getRequest(), and DerivativeContext\getUser().
Referenced by newContext().