MediaWiki  master
Parser\Parsoid\Config\DataAccess Class Reference

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

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

Public Member Functions

 __construct (ServiceOptions $config, RepoGroup $repoGroup, BadFileLookup $badFileLookup, HookContainer $hookContainer, ContentTransformer $contentTransformer, ReadOnlyMode $readOnlyMode, ParserFactory $parserFactory)
 
 doPst (IPageConfig $pageConfig, string $wikitext)
 
 fetchTemplateData (IPageConfig $pageConfig, string $title)
 
 fetchTemplateSource (IPageConfig $pageConfig, string $title)
 
 getFileInfo (IPageConfig $pageConfig, array $files)
 
 getPageInfo (IPageConfig $pageConfig, 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

Definition at line 48 of file DataAccess.php.

Constructor & Destructor Documentation

◆ __construct()

Parser\Parsoid\Config\DataAccess::__construct ( ServiceOptions  $config,
RepoGroup  $repoGroup,
BadFileLookup  $badFileLookup,
HookContainer  $hookContainer,
ContentTransformer  $contentTransformer,
ReadOnlyMode  $readOnlyMode,
ParserFactory  $parserFactory 
)
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

Definition at line 95 of file DataAccess.php.

References ParserFactory\create().

Member Function Documentation

◆ doPst()

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

Definition at line 333 of file DataAccess.php.

◆ fetchTemplateData()

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

Definition at line 410 of file DataAccess.php.

◆ fetchTemplateSource()

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

Definition at line 396 of file DataAccess.php.

◆ getFileInfo()

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

Definition at line 220 of file DataAccess.php.

References $file, $keys, Title\newFromText(), and Linker\processResponsiveImages().

◆ getPageInfo()

Parser\Parsoid\Config\DataAccess::getPageInfo ( IPageConfig  $pageConfig,
array  $titles 
)

Definition at line 162 of file DataAccess.php.

References $t, and Title\newFromText().

◆ logLinterData()

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

Definition at line 428 of file DataAccess.php.

◆ parseWikitext()

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

Definition at line 349 of file DataAccess.php.

◆ preprocessWikitext()

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

Definition at line 367 of file DataAccess.php.

Member Data Documentation

◆ CONSTRUCTOR_OPTIONS

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

Definition at line 74 of file DataAccess.php.


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