|
| $mockFile |
|
const | CACHE_VERSION = 9 |
| Increment this when changing the format of cached data.
|
|
◆ findFile()
MockApiMobileView::findFile |
( |
|
$title, |
|
|
|
$options = [] |
|
) |
| |
|
protected |
Wrapper for wfFindFile.
- Parameters
-
Title | string | $title | Page title |
array | $options | Options for wfFindFile (see RepoGroup::findFile) |
- Returns
- File|false
Reimplemented from ApiMobileView.
◆ getAllowedParams()
MockApiMobileView::getAllowedParams |
( |
| ) |
|
Get allowed Api parameters.
- Returns
- array
Reimplemented from ApiMobileView.
◆ getPageImage()
MockApiMobileView::getPageImage |
( |
Title |
$title | ) |
|
|
protected |
Wrapper that returns a page image for a given title.
- Parameters
-
- Returns
- File|false
Reimplemented from ApiMobileView.
◆ getParserOutput()
MockApiMobileView::getParserOutput |
( |
WikiPage |
$wikiPage, |
|
|
ParserOptions |
$parserOptions, |
|
|
|
$oldid = null |
|
) |
| |
|
protected |
Performs a page parse.
- Parameters
-
WikiPage | $wikiPage | |
ParserOptions | $parserOptions | |
null | int | $oldid | Revision ID to get the text from, passing null or 0 will get the current revision (default value) |
- Returns
- ParserOutput|bool
Reimplemented from ApiMobileView.
◆ makeParserOptions()
MockApiMobileView::makeParserOptions |
( |
WikiPage |
$wikiPage | ) |
|
|
protected |
Call makeParserOptions on a WikiPage with the wrapper output class disabled.
- Parameters
-
WikiPage | $wikiPage | to call makeParserOptions on. |
- Returns
- ParserOptions
Reimplemented from ApiMobileView.
◆ makeTitle()
MockApiMobileView::makeTitle |
( |
|
$name | ) |
|
|
protected |
Creates and validates a title.
- Parameters
-
- Returns
- Title
Reimplemented from ApiMobileView.
◆ makeWikiPage()
MockApiMobileView::makeWikiPage |
( |
Title |
$title | ) |
|
|
protected |
Creates a WikiPage from title.
- Parameters
-
- Returns
- WikiPage
Reimplemented from ApiMobileView.
The documentation for this class was generated from the following file:
- tests/phpunit/integration/api/MockApiMobileView.php