|
MediaWiki 1.43.1
|
Site-level configuration for Parsoid. More...
Inherits ISiteConfig.

Public Member Functions | |
| __construct (ServiceOptions $config, array $parsoidSettings, ObjectFactory $objectFactory, Language $contentLanguage, StatsdDataFactoryInterface $stats, StatsFactory $statsFactory, MagicWordFactory $magicWordFactory, NamespaceInfo $namespaceInfo, SpecialPageFactory $specialPageFactory, InterwikiLookup $interwikiLookup, UserOptionsLookup $userOptionsLookup, LanguageFactory $languageFactory, LanguageConverterFactory $languageConverterFactory, LanguageNameUtils $languageNameUtils, UrlUtils $urlUtils, IContentHandlerFactory $contentHandlerFactory, array $extensionParsoidModules, ParserFactory $parserFactory, Config $mwConfig, bool $isTimedMediaHandlerLoaded) | |
| allowedExternalImagePrefixes () | |
| baseURI () | |
| bswRegexp () | |
| canonicalNamespaceId (string $name) | |
| categoryRegexp () | |
| exportMetadataToHeadBcp47 (Document $document, ContentMetadataCollector $metadata, string $defaultTitle, Bcp47Code $lang) | |
| galleryOptions () | |
| getExternalLinkTarget () | |
| getLogger () | |
| getMagicWordMatcher (string $id) | |
| getMaxTemplateDepth () | |
| getMWConfigValue (string $key) | |
| Lookup config. | |
| getNoFollowConfig () | |
| getObjectFactory () | |
| getParameterizedAliasMatcher (array $words) | |
| incrementCounter (string $name, array $labels, float $amount=1) | |
| Increment a counter metric. | |
| interwikiMagic () | |
| interwikiMap () | |
| iwp () | |
| langBcp47 () | |
| langConverterEnabledBcp47 (Bcp47Code $lang) | |
| legalTitleChars () | |
| linkPrefixRegex () | |
| magicLinkEnabled (string $which) | |
| mainpage () | |
| mainPageLinkTarget () | |
| metrics () | |
| namespaceCase (int $ns) | |
| namespaceHasSubpages (int $ns) | |
| namespaceId (string $name) | |
| namespaceIsTalk (int $ns) | |
| namespaceName (int $ns) | |
| observeTiming (string $name, float $value, array $labels) | |
| Record a timing metric. | |
| prefixedStatsFactory () | |
| Create a prefixed StatsFactory for parsoid stats. | |
| redirectRegexp () | |
| relativeLinkPrefix () | |
| rtl () | |
| script () | |
| scriptpath () | |
| server () | |
| setMaxTemplateDepth (int $depth) | |
| Overrides the max template depth in the MediaWiki configuration. | |
| specialPageLocalName (string $alias) | |
| supportsContentModel (string $model) | |
| Returns true iff Parsoid natively supports the given content model. | |
| timezoneOffset () | |
| ucfirst (string $str) | |
| variants () | |
| Language variant information. | |
| variantsFor (Bcp47Code $code) | |
| Language variant information for the given language (or null if unknown). | |
| widthOption () | |
Public Attributes | |
| const | CONSTRUCTOR_OPTIONS |
Protected Member Functions | |
| getFunctionSynonyms () | |
| getMagicWords () | |
| getNonNativeExtensionTags () | |
| getProtocols () | |
| getSpecialNSAliases () | |
| getSpecialPageAliases (string $specialPage) | |
| getVariableIDs () | |
| linkTrail () | |
Protected Attributes | |
| const | COMMENT_REGEXP_FRAGMENT = '<!--(?>[\s\S]*?-->)' |
| Regular expression fragment for matching wikitext comments. | |
Site-level configuration for Parsoid.
This includes both global configuration and wiki-level configuration.
Definition at line 68 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::__construct | ( | ServiceOptions | $config, |
| array | $parsoidSettings, | ||
| ObjectFactory | $objectFactory, | ||
| Language | $contentLanguage, | ||
| StatsdDataFactoryInterface | $stats, | ||
| StatsFactory | $statsFactory, | ||
| MagicWordFactory | $magicWordFactory, | ||
| NamespaceInfo | $namespaceInfo, | ||
| SpecialPageFactory | $specialPageFactory, | ||
| InterwikiLookup | $interwikiLookup, | ||
| UserOptionsLookup | $userOptionsLookup, | ||
| LanguageFactory | $languageFactory, | ||
| LanguageConverterFactory | $languageConverterFactory, | ||
| LanguageNameUtils | $languageNameUtils, | ||
| UrlUtils | $urlUtils, | ||
| IContentHandlerFactory | $contentHandlerFactory, | ||
| array | $extensionParsoidModules, | ||
| ParserFactory | $parserFactory, | ||
| Config | $mwConfig, | ||
| bool | $isTimedMediaHandlerLoaded ) |
| ServiceOptions | $config | MediaWiki main configuration object |
| array | $parsoidSettings | Parsoid-specific options array from main configuration. |
| ObjectFactory | $objectFactory | |
| Language | $contentLanguage | Content language. |
| StatsdDataFactoryInterface | $stats | |
| StatsFactory | $statsFactory | |
| MagicWordFactory | $magicWordFactory | |
| NamespaceInfo | $namespaceInfo | |
| SpecialPageFactory | $specialPageFactory | |
| InterwikiLookup | $interwikiLookup | |
| UserOptionsLookup | $userOptionsLookup | |
| LanguageFactory | $languageFactory | |
| LanguageConverterFactory | $languageConverterFactory | |
| LanguageNameUtils | $languageNameUtils | |
| UrlUtils | $urlUtils | |
| IContentHandlerFactory | $contentHandlerFactory | |
| array | $extensionParsoidModules | |
| ParserFactory | $parserFactory | |
| Config | $mwConfig | |
| bool | $isTimedMediaHandlerLoaded |
Definition at line 150 of file SiteConfig.php.
References MediaWiki\Config\ServiceOptions\assertRequiredOptions().
| MediaWiki\Parser\Parsoid\Config\SiteConfig::allowedExternalImagePrefixes | ( | ) |
Definition at line 294 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::baseURI | ( | ) |
Definition at line 342 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::bswRegexp | ( | ) |
Definition at line 391 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::canonicalNamespaceId | ( | string | $name | ) |
Definition at line 401 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::categoryRegexp | ( | ) |
Definition at line 377 of file SiteConfig.php.
References NS_CATEGORY.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::exportMetadataToHeadBcp47 | ( | Document | $document, |
| ContentMetadataCollector | $metadata, | ||
| string | $defaultTitle, | ||
| Bcp47Code | $lang ) |
| Document | $document | |
| ContentMetadataCollector | $metadata | |
| string | $defaultTitle | |
| Bcp47Code | $lang |
Definition at line 597 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::galleryOptions | ( | ) |
Definition at line 290 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::getExternalLinkTarget | ( | ) |
Definition at line 820 of file SiteConfig.php.
|
protected |
Definition at line 708 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::getLogger | ( | ) |
Definition at line 223 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::getMagicWordMatcher | ( | string | $id | ) |
Definition at line 718 of file SiteConfig.php.
|
protected |
Definition at line 713 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::getMaxTemplateDepth | ( | ) |
Definition at line 756 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::getMWConfigValue | ( | string | $key | ) |
Lookup config.
| string | $key |
Definition at line 553 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::getNoFollowConfig | ( | ) |
Definition at line 811 of file SiteConfig.php.
|
protected |
Definition at line 748 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::getObjectFactory | ( | ) |
Definition at line 218 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::getParameterizedAliasMatcher | ( | array | $words | ) |
Definition at line 723 of file SiteConfig.php.
|
protected |
Definition at line 806 of file SiteConfig.php.
|
protected |
Definition at line 780 of file SiteConfig.php.
References NS_SPECIAL.
|
protected |
Definition at line 799 of file SiteConfig.php.
|
protected |
Definition at line 703 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::incrementCounter | ( | string | $name, |
| array | $labels, | ||
| float | $amount = 1 ) |
Increment a counter metric.
| string | $name | |
| array | $labels | |
| float | $amount |
Definition at line 284 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::interwikiMagic | ( | ) |
Definition at line 444 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::interwikiMap | ( | ) |
Definition at line 454 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::iwp | ( | ) |
Definition at line 514 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::langBcp47 | ( | ) |
Definition at line 534 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::langConverterEnabledBcp47 | ( | Bcp47Code | $lang | ) |
| MediaWiki\Parser\Parsoid\Config\SiteConfig::legalTitleChars | ( | ) |
Definition at line 518 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::linkPrefixRegex | ( | ) |
Definition at line 522 of file SiteConfig.php.
|
protected |
Definition at line 530 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::magicLinkEnabled | ( | string | $which | ) |
Definition at line 449 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::mainpage | ( | ) |
Definition at line 538 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::mainPageLinkTarget | ( | ) |
Definition at line 543 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::metrics | ( | ) |
Definition at line 244 of file SiteConfig.php.
Referenced by MediaWiki\Rest\Handler\ParsoidHandler\__construct().
| MediaWiki\Parser\Parsoid\Config\SiteConfig::namespaceCase | ( | int | $ns | ) |
Definition at line 424 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::namespaceHasSubpages | ( | int | $ns | ) |
Definition at line 419 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::namespaceId | ( | string | $name | ) |
Definition at line 407 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::namespaceIsTalk | ( | int | $ns | ) |
Definition at line 429 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::namespaceName | ( | int | $ns | ) |
Definition at line 413 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::observeTiming | ( | string | $name, |
| float | $value, | ||
| array | $labels ) |
Record a timing metric.
| string | $name | |
| float | $value | A time value in milliseconds |
| array | $labels |
Definition at line 271 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::prefixedStatsFactory | ( | ) |
Create a prefixed StatsFactory for parsoid stats.
Definition at line 259 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::redirectRegexp | ( | ) |
Definition at line 372 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::relativeLinkPrefix | ( | ) |
Definition at line 349 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::rtl | ( | ) |
Definition at line 557 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::script | ( | ) |
Definition at line 578 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::scriptpath | ( | ) |
Definition at line 582 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::server | ( | ) |
Definition at line 586 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::setMaxTemplateDepth | ( | int | $depth | ) |
Overrides the max template depth in the MediaWiki configuration.
| int | $depth |
Definition at line 764 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::specialPageLocalName | ( | string | $alias | ) |
Definition at line 439 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::supportsContentModel | ( | string | $model | ) |
Returns true iff Parsoid natively supports the given content model.
| string | $model | content model identifier |
Definition at line 831 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::timezoneOffset | ( | ) |
Definition at line 619 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::ucfirst | ( | string | $str | ) |
Definition at line 434 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::variants | ( | ) |
Language variant information.
Definition at line 631 of file SiteConfig.php.
References wfDeprecated().
| MediaWiki\Parser\Parsoid\Config\SiteConfig::variantsFor | ( | Bcp47Code | $code | ) |
Language variant information for the given language (or null if unknown).
| Bcp47Code | $code | The language for which you want variant information |
Definition at line 679 of file SiteConfig.php.
| MediaWiki\Parser\Parsoid\Config\SiteConfig::widthOption | ( | ) |
Definition at line 695 of file SiteConfig.php.
|
protected |
Regular expression fragment for matching wikitext comments.
Meant for inclusion in other regular expressions.
Definition at line 74 of file SiteConfig.php.
| const MediaWiki\Parser\Parsoid\Config\SiteConfig::CONSTRUCTOR_OPTIONS |
Definition at line 76 of file SiteConfig.php.