MediaWiki master
MediaWiki\Parser\Parsoid\Config\DataAccess Class Reference

Implement Parsoid's abstract class for data access. More...

Inherits IDataAccess.

Collaboration diagram for MediaWiki\Parser\Parsoid\Config\DataAccess:

Public Member Functions

 __construct (ServiceOptions $config, RepoGroup $repoGroup, BadFileLookup $badFileLookup, HookContainer $hookContainer, ContentTransformer $contentTransformer, ReadOnlyMode $readOnlyMode, ParserFactory $parserFactory, LinkBatchFactory $linkBatchFactory)
 
 doPst (IPageConfig $pageConfig, string $wikitext)
 
 fetchTemplateData (IPageConfig $pageConfig, $title)
 
 fetchTemplateSource (IPageConfig $pageConfig, $title)
 
 getFileInfo (IPageConfig $pageConfig, array $files)
 
 getPageInfo ( $pageConfigOrTitle, array $titles)
 
 logLinterData (IPageConfig $pageConfig, array $lints)
 
 parseWikitext (IPageConfig $pageConfig, ContentMetadataCollector $metadata, string $wikitext)
 
 preprocessWikitext (IPageConfig $pageConfig, ContentMetadataCollector $metadata, string $wikitext)
 

Public Attributes

const CONSTRUCTOR_OPTIONS
 

Detailed Description

Implement Parsoid's abstract class for data access.

Since
1.39
Access: internal

Definition at line 53 of file DataAccess.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Parser\Parsoid\Config\DataAccess::__construct ( ServiceOptions  $config,
RepoGroup  $repoGroup,
BadFileLookup  $badFileLookup,
HookContainer  $hookContainer,
ContentTransformer  $contentTransformer,
ReadOnlyMode  $readOnlyMode,
ParserFactory  $parserFactory,
LinkBatchFactory  $linkBatchFactory 
)
Parameters
ServiceOptions$configMediaWiki main configuration object
RepoGroup$repoGroup
BadFileLookup$badFileLookup
HookContainer$hookContainer
ContentTransformer$contentTransformer
ReadOnlyMode$readOnlyModeused to disable linting when the database is read-only.
ParserFactory$parserFactoryA legacy parser factory, for PST/preprocessing/extension handling
LinkBatchFactory$linkBatchFactory

Definition at line 84 of file DataAccess.php.

References MediaWiki\Config\ServiceOptions\assertRequiredOptions().

Member Function Documentation

◆ doPst()

MediaWiki\Parser\Parsoid\Config\DataAccess::doPst ( IPageConfig  $pageConfig,
string  $wikitext 
)

Definition at line 342 of file DataAccess.php.

◆ fetchTemplateData()

MediaWiki\Parser\Parsoid\Config\DataAccess::fetchTemplateData ( IPageConfig  $pageConfig,
  $title 
)

Definition at line 423 of file DataAccess.php.

◆ fetchTemplateSource()

MediaWiki\Parser\Parsoid\Config\DataAccess::fetchTemplateSource ( IPageConfig  $pageConfig,
  $title 
)

Definition at line 405 of file DataAccess.php.

◆ getFileInfo()

MediaWiki\Parser\Parsoid\Config\DataAccess::getFileInfo ( IPageConfig  $pageConfig,
array  $files 
)

Definition at line 223 of file DataAccess.php.

◆ getPageInfo()

MediaWiki\Parser\Parsoid\Config\DataAccess::getPageInfo (   $pageConfigOrTitle,
array  $titles 
)

Definition at line 153 of file DataAccess.php.

◆ logLinterData()

MediaWiki\Parser\Parsoid\Config\DataAccess::logLinterData ( IPageConfig  $pageConfig,
array  $lints 
)

Definition at line 445 of file DataAccess.php.

◆ parseWikitext()

MediaWiki\Parser\Parsoid\Config\DataAccess::parseWikitext ( IPageConfig  $pageConfig,
ContentMetadataCollector  $metadata,
string  $wikitext 
)

Definition at line 358 of file DataAccess.php.

◆ preprocessWikitext()

MediaWiki\Parser\Parsoid\Config\DataAccess::preprocessWikitext ( IPageConfig  $pageConfig,
ContentMetadataCollector  $metadata,
string  $wikitext 
)

Definition at line 376 of file DataAccess.php.

Member Data Documentation

◆ CONSTRUCTOR_OPTIONS

const MediaWiki\Parser\Parsoid\Config\DataAccess::CONSTRUCTOR_OPTIONS
Initial value:
= [
]
const SVGMaxSize
Name constant for the SVGMaxSize setting, for use with Config::get()

Definition at line 54 of file DataAccess.php.


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