|
MediaWiki master
|
Public Member Functions | |
| __construct (ServiceOptions $options, RevisionLookup $revisionLookup, RevisionRenderer $revisionRenderer, TitleFormatter $titleFormatter, PageLookup $pageLookup, ParsoidOutputStash $parsoidOutputStash, ParserOutputAccess $parserOutputAccess, ParsoidSiteConfig $parsoidSiteConfig, HtmlTransformFactory $htmlTransformFactory, IContentHandlerFactory $contentHandlerFactory, LanguageFactory $languageFactory, RedirectStore $redirectStore, LanguageConverterFactory $languageConverterFactory, TitleFactory $titleFactory, IConnectionProvider $dbProvider, ChangeTagsStore $changeTagsStore, 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 35 of file PageRestHelperFactory.php.
| MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::__construct | ( | ServiceOptions | $options, |
| RevisionLookup | $revisionLookup, | ||
| RevisionRenderer | $revisionRenderer, | ||
| TitleFormatter | $titleFormatter, | ||
| PageLookup | $pageLookup, | ||
| ParsoidOutputStash | $parsoidOutputStash, | ||
| ParserOutputAccess | $parserOutputAccess, | ||
| ParsoidSiteConfig | $parsoidSiteConfig, | ||
| HtmlTransformFactory | $htmlTransformFactory, | ||
| IContentHandlerFactory | $contentHandlerFactory, | ||
| LanguageFactory | $languageFactory, | ||
| RedirectStore | $redirectStore, | ||
| LanguageConverterFactory | $languageConverterFactory, | ||
| TitleFactory | $titleFactory, | ||
| IConnectionProvider | $dbProvider, | ||
| ChangeTagsStore | $changeTagsStore, | ||
| StatsFactory | $statsFactory ) |
Definition at line 60 of file PageRestHelperFactory.php.
| MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::newHtmlInputTransformHelper | ( | $envOptions = [], | |
| ?PageIdentity | $page = null, | ||
| $body = null, | |||
| array | $parameters = [], | ||
| ?RevisionRecord | $originalRevision = null, | ||
| ?Bcp47Code | $pageLanguage = null ) |
| array | $envOptions | |
| ?PageIdentity | $page | |
| array | string | null | $body | |
| array | $parameters | |
| RevisionRecord | null | $originalRevision | |
| Bcp47Code | null | $pageLanguage |
Definition at line 198 of file PageRestHelperFactory.php.
References wfDeprecated().
| MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::newHtmlMessageOutputHelper | ( | ?PageIdentity | $page = null | ) |
Definition at line 183 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 140 of file PageRestHelperFactory.php.
References wfDeprecated().
| MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::newPageContentHelper | ( | ) |
Definition at line 110 of file PageRestHelperFactory.php.
Referenced by MediaWiki\Rest\Handler\PageHTMLHandler\__construct(), MediaWiki\Rest\Handler\PageLintHandler\__construct(), and MediaWiki\Rest\Handler\PageSourceHandler\__construct().
| MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::newPageRedirectHelper | ( | ResponseFactory | $responseFactory, |
| Router | $router, | ||
| string | $route, | ||
| RequestInterface | $request ) |
Definition at line 228 of file PageRestHelperFactory.php.
| MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::newRevisionContentHelper | ( | ) |
Definition at line 98 of file PageRestHelperFactory.php.
Referenced by MediaWiki\Rest\Handler\RevisionHTMLHandler\__construct(), MediaWiki\Rest\Handler\RevisionSourceHandler\__construct(), and MediaWiki\Rest\Handler\RevisionLintHandler\__construct().
| const MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::CONSTRUCTOR_OPTIONS = PageContentHelper::CONSTRUCTOR_OPTIONS |
Definition at line 40 of file PageRestHelperFactory.php.