|
MediaWiki master
|
The interface for shadow pages. More...
Inherited by MediaWiki\ShadowPage\BaseShadowPage.
Public Member Functions | |
| existsForEdit () | |
| If this returns true, force the edit action to be labelled "edit", not "create", even though the page technically doesn't exist. | |
| getContentForTransclusion () | |
| Get the content to be shown if this page is transcluded. | |
| getDiffTitleMessage () | |
| The label for base content when diffing against preloaded content. | |
| getPreloadContent () | |
| Get content to be shown in the edit box when editing a non-existent page. | |
| getView (ParserOptions $parserOptions) | |
| Get page view content, or null to decline to provide such content. | |
| hasPreloadContent () | |
| Whether preload content is available. | |
The interface for shadow pages.
Note that extensions should generally extend BaseShadowPage, to avoid a b/c break if we decide to add more methods here.
Definition at line 17 of file ShadowPage.php.
| MediaWiki\ShadowPage\ShadowPage::existsForEdit | ( | ) |
If this returns true, force the edit action to be labelled "edit", not "create", even though the page technically doesn't exist.
Implemented in MediaWiki\ShadowPage\BaseShadowPage, and MediaWiki\ShadowPage\MessagePage.
| MediaWiki\ShadowPage\ShadowPage::getContentForTransclusion | ( | ) |
Get the content to be shown if this page is transcluded.
Implemented in MediaWiki\ShadowPage\BaseShadowPage, and MediaWiki\ShadowPage\MessagePage.
| MediaWiki\ShadowPage\ShadowPage::getDiffTitleMessage | ( | ) |
The label for base content when diffing against preloaded content.
Implemented in MediaWiki\ShadowPage\BaseShadowPage, and MediaWiki\ShadowPage\MessagePage.
| MediaWiki\ShadowPage\ShadowPage::getPreloadContent | ( | ) |
Get content to be shown in the edit box when editing a non-existent page.
Implemented in MediaWiki\ShadowPage\BaseShadowPage, and MediaWiki\ShadowPage\MessagePage.
| MediaWiki\ShadowPage\ShadowPage::getView | ( | ParserOptions | $parserOptions | ) |
Get page view content, or null to decline to provide such content.
Implemented in MediaWiki\ShadowPage\BaseShadowPage, and MediaWiki\ShadowPage\MessagePage.
| MediaWiki\ShadowPage\ShadowPage::hasPreloadContent | ( | ) |
Whether preload content is available.
Implemented in MediaWiki\ShadowPage\BaseShadowPage.