|
MediaWiki master
|
Implement Parsoid's abstract class for data access. More...
Inherits IDataAccess.

Public Member Functions | |
| __construct (private readonly ServiceOptions $config, private readonly RepoGroup $repoGroup, private readonly BadFileLookup $badFileLookup, private readonly HookContainer $hookContainer, private readonly ContentTransformer $contentTransformer, private readonly TrackingCategories $trackingCategories, private readonly ReadOnlyMode $readOnlyMode, private readonly ParserFactory $parserFactory, private readonly LinkBatchFactory $linkBatchFactory, private readonly LinkRenderer $linkRenderer,) | |
| addTrackingCategory (IPageConfig $pageConfig, ContentMetadataCollector $metadata, string $key) | |
| Add a tracking category with the given key to the metadata for the page. | |
| fetchTemplateData (IPageConfig $pageConfig, $title) | |
| fetchTemplateSource (IPageConfig $pageConfig, $title) | |
| getFileInfo (IPageConfig $pageConfig, array $files) | |
| getPageInfo ( $pageConfigOrTitle, array $titles, bool $defaultLinkCaption=false) | |
| logLinterData (IPageConfig $pageConfig, array $lints) | |
| makeLimitReport (IPageConfig $pageConfig, ParserOptions $parserOptions, ParserOutput $parserOutput) | |
| parseWikitext (IPageConfig $pageConfig, ContentMetadataCollector $metadata, string $wikitext) | |
| preprocessWikitext (IPageConfig $pageConfig, ContentMetadataCollector $metadata, $wikitext) | |
Public Attributes | |
| const | CONSTRUCTOR_OPTIONS |
Implement Parsoid's abstract class for data access.
Definition at line 48 of file DataAccess.php.
| MediaWiki\Parser\Parsoid\Config\DataAccess::__construct | ( | private readonly ServiceOptions | $config, |
| private readonly RepoGroup | $repoGroup, | ||
| private readonly BadFileLookup | $badFileLookup, | ||
| private readonly HookContainer | $hookContainer, | ||
| private readonly ContentTransformer | $contentTransformer, | ||
| private readonly TrackingCategories | $trackingCategories, | ||
| private readonly ReadOnlyMode | $readOnlyMode, | ||
| private readonly ParserFactory | $parserFactory, | ||
| private readonly LinkBatchFactory | $linkBatchFactory, | ||
| private readonly LinkRenderer | $linkRenderer ) |
| ServiceOptions | $config | MediaWiki main configuration object |
| RepoGroup | $repoGroup | |
| BadFileLookup | $badFileLookup | |
| HookContainer | $hookContainer | |
| ContentTransformer | $contentTransformer | |
| TrackingCategories | $trackingCategories | |
| ReadOnlyMode | $readOnlyMode | used to disable linting when the database is read-only. |
| ParserFactory | $parserFactory | A legacy parser factory, for PST/preprocessing/extension handling |
| LinkBatchFactory | $linkBatchFactory | |
| LinkRenderer | $linkRenderer |
Definition at line 74 of file DataAccess.php.
| MediaWiki\Parser\Parsoid\Config\DataAccess::addTrackingCategory | ( | IPageConfig | $pageConfig, |
| ContentMetadataCollector | $metadata, | ||
| string | $key ) |
Add a tracking category with the given key to the metadata for the page.
| IPageConfig | $pageConfig | the page on which the tracking category is to be added |
| ContentMetadataCollector | $metadata | The metadata for the page |
| string | $key | Message key (not localized) |
Definition at line 527 of file DataAccess.php.
| MediaWiki\Parser\Parsoid\Config\DataAccess::fetchTemplateData | ( | IPageConfig | $pageConfig, |
| $title ) |
Definition at line 499 of file DataAccess.php.
| MediaWiki\Parser\Parsoid\Config\DataAccess::fetchTemplateSource | ( | IPageConfig | $pageConfig, |
| $title ) |
Definition at line 481 of file DataAccess.php.
| MediaWiki\Parser\Parsoid\Config\DataAccess::getFileInfo | ( | IPageConfig | $pageConfig, |
| array | $files ) |
Definition at line 206 of file DataAccess.php.
References $url.
| MediaWiki\Parser\Parsoid\Config\DataAccess::getPageInfo | ( | $pageConfigOrTitle, | |
| array | $titles, | ||
| bool | $defaultLinkCaption = false ) |
Definition at line 136 of file DataAccess.php.
| MediaWiki\Parser\Parsoid\Config\DataAccess::logLinterData | ( | IPageConfig | $pageConfig, |
| array | $lints ) |
Definition at line 539 of file DataAccess.php.
| MediaWiki\Parser\Parsoid\Config\DataAccess::makeLimitReport | ( | IPageConfig | $pageConfig, |
| ParserOptions | $parserOptions, | ||
| ParserOutput | $parserOutput ) |
Definition at line 336 of file DataAccess.php.
References MediaWiki\Parser\Parser\makeLimitReport(), and MediaWiki\Parser\Parser\OT_HTML.
| MediaWiki\Parser\Parsoid\Config\DataAccess::parseWikitext | ( | IPageConfig | $pageConfig, |
| ContentMetadataCollector | $metadata, | ||
| string | $wikitext ) |
Definition at line 348 of file DataAccess.php.
| MediaWiki\Parser\Parsoid\Config\DataAccess::preprocessWikitext | ( | IPageConfig | $pageConfig, |
| ContentMetadataCollector | $metadata, | ||
| $wikitext ) |
Definition at line 375 of file DataAccess.php.
References MediaWiki\Parser\Parser\getStripState(), MediaWiki\Parser\Parser\MARKER_PREFIX, MediaWiki\Parser\Parser\OT_PREPROCESS, and MediaWiki\Parser\Parser\resetOutput().
| const MediaWiki\Parser\Parsoid\Config\DataAccess::CONSTRUCTOR_OPTIONS |
Definition at line 49 of file DataAccess.php.