MediaWiki master
MediaWiki\Rest\Handler\Helper\PageRestHelperFactory Class Reference

Public Member Functions

 __construct (ServiceOptions $options, RevisionLookup $revisionLookup, TitleFormatter $titleFormatter, PageLookup $pageLookup, ParsoidOutputStash $parsoidOutputStash, StatsdDataFactoryInterface $statsDataFactory, ParsoidOutputAccess $parsoidOutputAccess, HtmlTransformFactory $htmlTransformFactory, IContentHandlerFactory $contentHandlerFactory, LanguageFactory $languageFactory, RedirectStore $redirectStore, LanguageConverterFactory $languageConverterFactory)
 
 newHtmlInputTransformHelper ( $envOptions=[])
 
 newHtmlMessageOutputHelper ()
 
 newHtmlOutputRendererHelper (bool $lenientRevHandling=false)
 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
 

Detailed Description

Since
1.40 Factory for helper objects designed for sharing logic between REST handlers that deal with page content.

Definition at line 24 of file PageRestHelperFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::__construct ( ServiceOptions $options,
RevisionLookup $revisionLookup,
TitleFormatter $titleFormatter,
PageLookup $pageLookup,
ParsoidOutputStash $parsoidOutputStash,
StatsdDataFactoryInterface $statsDataFactory,
ParsoidOutputAccess $parsoidOutputAccess,
HtmlTransformFactory $htmlTransformFactory,
IContentHandlerFactory $contentHandlerFactory,
LanguageFactory $languageFactory,
RedirectStore $redirectStore,
LanguageConverterFactory $languageConverterFactory )
Parameters
ServiceOptions$options
RevisionLookup$revisionLookup
TitleFormatter$titleFormatter
PageLookup$pageLookup
ParsoidOutputStash$parsoidOutputStash
StatsdDataFactoryInterface$statsDataFactory
ParsoidOutputAccess$parsoidOutputAccess
HtmlTransformFactory$htmlTransformFactory
IContentHandlerFactory$contentHandlerFactory
LanguageFactory$languageFactory
RedirectStore$redirectStore
LanguageConverterFactory$languageConverterFactory

Definition at line 58 of file PageRestHelperFactory.php.

Member Function Documentation

◆ newHtmlInputTransformHelper()

MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::newHtmlInputTransformHelper ( $envOptions = [])

Definition at line 127 of file PageRestHelperFactory.php.

◆ newHtmlMessageOutputHelper()

MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::newHtmlMessageOutputHelper ( )

Definition at line 123 of file PageRestHelperFactory.php.

◆ newHtmlOutputRendererHelper()

MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::newHtmlOutputRendererHelper ( bool $lenientRevHandling = false)

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.

Definition at line 109 of file PageRestHelperFactory.php.

Referenced by MediaWiki\Rest\Handler\PageHTMLHandler\__construct(), and MediaWiki\Rest\Handler\RevisionHTMLHandler\__construct().

◆ newPageContentHelper()

MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::newPageContentHelper ( )

◆ newPageRedirectHelper()

MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::newPageRedirectHelper ( ResponseFactory $responseFactory,
Router $router,
string $route,
RequestInterface $request )
Since
1.41

Definition at line 140 of file PageRestHelperFactory.php.

◆ newRevisionContentHelper()

MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::newRevisionContentHelper ( )

Member Data Documentation

◆ CONSTRUCTOR_OPTIONS

const MediaWiki\Rest\Handler\Helper\PageRestHelperFactory::CONSTRUCTOR_OPTIONS = PageContentHelper::CONSTRUCTOR_OPTIONS
Access: internal

Definition at line 29 of file PageRestHelperFactory.php.


The documentation for this class was generated from the following file: