MediaWiki master
|
Provides the initial content of the edit box displayed in an edit form when creating a new page or a new section. More...
Public Member Functions | |
__construct (IContentHandlerFactory $contentHandlerFactory, WikiPageFactory $wikiPageFactory, RedirectLookup $redirectLookup, SpecialPageFactory $specialPageFactory, ContentTransformer $contentTransformer, HookContainer $hookContainer) | |
getDefaultContent (ProperPageIdentity $page) | |
Get the content that is displayed when viewing a page that does not exist. | |
getPreloadedContent (ProperPageIdentity $page, Authority $performer, ?string $preload, array $preloadParams, ?string $section) | |
Get the initial content of the edit box displayed in an edit form when creating a new page or a new section. | |
Provides the initial content of the edit box displayed in an edit form when creating a new page or a new section.
Used by EditPage, and may be used by extensions providing alternative editors.
Definition at line 30 of file PreloadedContentBuilder.php.
MediaWiki\EditPage\PreloadedContentBuilder::__construct | ( | IContentHandlerFactory | $contentHandlerFactory, |
WikiPageFactory | $wikiPageFactory, | ||
RedirectLookup | $redirectLookup, | ||
SpecialPageFactory | $specialPageFactory, | ||
ContentTransformer | $contentTransformer, | ||
HookContainer | $hookContainer ) |
Definition at line 41 of file PreloadedContentBuilder.php.
MediaWiki\EditPage\PreloadedContentBuilder::getDefaultContent | ( | ProperPageIdentity | $page | ) |
Get the content that is displayed when viewing a page that does not exist.
Users should be discouraged from saving the page with identical content to this.
Some code may depend on the fact that this is only non-null for the 'MediaWiki:' namespace. Beware.
ProperPageIdentity | $page |
Definition at line 111 of file PreloadedContentBuilder.php.
Referenced by MediaWiki\EditPage\PreloadedContentBuilder\getPreloadedContent().
MediaWiki\EditPage\PreloadedContentBuilder::getPreloadedContent | ( | ProperPageIdentity | $page, |
Authority | $performer, | ||
?string | $preload, | ||
array | $preloadParams, | ||
?string | $section ) |
Get the initial content of the edit box displayed in an edit form when creating a new page or a new section.
ProperPageIdentity | $page | |
Authority | $performer | |
string | null | $preload | |
string[] | $preloadParams | |
string | null | $section |
Definition at line 69 of file PreloadedContentBuilder.php.
References MediaWiki\EditPage\PreloadedContentBuilder\getDefaultContent().