MediaWiki master
|
Public Member Functions | |
__construct (ServiceOptions $options, RevisionLookup $revisionLookup, RevisionRenderer $revisionRenderer, TitleFormatter $titleFormatter, PageLookup $pageLookup, ParsoidOutputStash $parsoidOutputStash, StatsdDataFactoryInterface $statsDataFactory, ParserOutputAccess $parserOutputAccess, ParsoidSiteConfig $parsoidSiteConfig, HtmlTransformFactory $htmlTransformFactory, IContentHandlerFactory $contentHandlerFactory, LanguageFactory $languageFactory, RedirectStore $redirectStore, LanguageConverterFactory $languageConverterFactory, TitleFactory $titleFactory, IConnectionProvider $dbProvider, ChangeTagsStore $changeTagStore, StatsFactory $statsFactory) | |
newHtmlInputTransformHelper ( $envOptions=[], ?PageIdentity $page=null, $body=null, array $parameters=[], ?RevisionRecord $originalRevision=null, ?Bcp47Code $pageLanguage=null) | |
newHtmlMessageOutputHelper (?PageIdentity $page=null) | |
newHtmlOutputRendererHelper ( $page=null, array $parameters=[], ?Authority $authority=null, $revision=null, bool $lenientRevHandling=false, ?ParserOptions $parserOptions=null) | |
Should we ignore page id mismatches between page and revision objects in HTML/pagebundle requests? Mismatches arise because of page moves. | |
newPageContentHelper () | |
newPageRedirectHelper (ResponseFactory $responseFactory, Router $router, string $route, RequestInterface $request) | |
newRevisionContentHelper () | |
Public Attributes | |
const | CONSTRUCTOR_OPTIONS = PageContentHelper::CONSTRUCTOR_OPTIONS |
Definition at line 36 of file PageRestHelperFactory.php.
MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::__construct | ( | ServiceOptions | $options, |
RevisionLookup | $revisionLookup, | ||
RevisionRenderer | $revisionRenderer, | ||
TitleFormatter | $titleFormatter, | ||
PageLookup | $pageLookup, | ||
ParsoidOutputStash | $parsoidOutputStash, | ||
StatsdDataFactoryInterface | $statsDataFactory, | ||
ParserOutputAccess | $parserOutputAccess, | ||
ParsoidSiteConfig | $parsoidSiteConfig, | ||
HtmlTransformFactory | $htmlTransformFactory, | ||
IContentHandlerFactory | $contentHandlerFactory, | ||
LanguageFactory | $languageFactory, | ||
RedirectStore | $redirectStore, | ||
LanguageConverterFactory | $languageConverterFactory, | ||
TitleFactory | $titleFactory, | ||
IConnectionProvider | $dbProvider, | ||
ChangeTagsStore | $changeTagStore, | ||
StatsFactory | $statsFactory ) |
Definition at line 62 of file PageRestHelperFactory.php.
MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::newHtmlInputTransformHelper | ( | $envOptions = [], | |
?PageIdentity | $page = null, | ||
$body = null, | |||
array | $parameters = [], | ||
?RevisionRecord | $originalRevision = null, | ||
?Bcp47Code | $pageLanguage = null ) |
Definition at line 194 of file PageRestHelperFactory.php.
References wfDeprecated().
MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::newHtmlMessageOutputHelper | ( | ?PageIdentity | $page = null | ) |
Definition at line 187 of file PageRestHelperFactory.php.
References wfDeprecated().
MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::newHtmlOutputRendererHelper | ( | $page = null, | |
array | $parameters = [], | ||
?Authority | $authority = null, | ||
$revision = null, | |||
bool | $lenientRevHandling = false, | ||
?ParserOptions | $parserOptions = null ) |
Should we ignore page id mismatches between page and revision objects in HTML/pagebundle requests? Mismatches arise because of page moves.
This is recommended only for handling calls to internal APIs.
bool | PageIdentity | null | $page | If false , this argument is used as the value for $lenientRevHandling, for backward-compatibility. |
array | $parameters | |
?Authority | $authority | |
int | RevisionRecord | null | $revision | |
bool | $lenientRevHandling | |
ParserOptions | null | $parserOptions |
Definition at line 144 of file PageRestHelperFactory.php.
References wfDeprecated().
MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::newPageContentHelper | ( | ) |
Definition at line 114 of file PageRestHelperFactory.php.
Referenced by MediaWiki\Rest\Handler\PageHTMLHandler\__construct(), and MediaWiki\Rest\Handler\PageSourceHandler\__construct().
MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::newPageRedirectHelper | ( | ResponseFactory | $responseFactory, |
Router | $router, | ||
string | $route, | ||
RequestInterface | $request ) |
Definition at line 224 of file PageRestHelperFactory.php.
MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::newRevisionContentHelper | ( | ) |
Definition at line 102 of file PageRestHelperFactory.php.
Referenced by MediaWiki\Rest\Handler\RevisionHTMLHandler\__construct(), and MediaWiki\Rest\Handler\RevisionSourceHandler\__construct().
const MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::CONSTRUCTOR_OPTIONS = PageContentHelper::CONSTRUCTOR_OPTIONS |
Definition at line 41 of file PageRestHelperFactory.php.