MediaWiki master
|
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. | |
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 291 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::baseURI | ( | ) |
Definition at line 339 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::bswRegexp | ( | ) |
Definition at line 388 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::canonicalNamespaceId | ( | string | $name | ) |
Definition at line 398 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::categoryRegexp | ( | ) |
Definition at line 374 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 594 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::galleryOptions | ( | ) |
Definition at line 287 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::getExternalLinkTarget | ( | ) |
Definition at line 817 of file SiteConfig.php.
|
protected |
Definition at line 705 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 715 of file SiteConfig.php.
|
protected |
Definition at line 710 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::getMaxTemplateDepth | ( | ) |
Definition at line 753 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::getMWConfigValue | ( | string | $key | ) |
Lookup config.
string | $key |
Definition at line 550 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::getNoFollowConfig | ( | ) |
Definition at line 808 of file SiteConfig.php.
|
protected |
Definition at line 745 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 720 of file SiteConfig.php.
|
protected |
Definition at line 803 of file SiteConfig.php.
|
protected |
Definition at line 777 of file SiteConfig.php.
References NS_SPECIAL.
|
protected |
Definition at line 796 of file SiteConfig.php.
|
protected |
Definition at line 700 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 278 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::interwikiMagic | ( | ) |
Definition at line 441 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::interwikiMap | ( | ) |
Definition at line 451 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::iwp | ( | ) |
Definition at line 511 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::langBcp47 | ( | ) |
Definition at line 531 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::langConverterEnabledBcp47 | ( | Bcp47Code | $lang | ) |
MediaWiki\Parser\Parsoid\Config\SiteConfig::legalTitleChars | ( | ) |
Definition at line 515 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::linkPrefixRegex | ( | ) |
Definition at line 519 of file SiteConfig.php.
|
protected |
Definition at line 527 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::magicLinkEnabled | ( | string | $which | ) |
Definition at line 446 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::mainpage | ( | ) |
Definition at line 535 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::mainPageLinkTarget | ( | ) |
Definition at line 540 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::metrics | ( | ) |
Definition at line 244 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::namespaceCase | ( | int | $ns | ) |
Definition at line 421 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::namespaceHasSubpages | ( | int | $ns | ) |
Definition at line 416 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::namespaceId | ( | string | $name | ) |
Definition at line 404 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::namespaceIsTalk | ( | int | $ns | ) |
Definition at line 426 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::namespaceName | ( | int | $ns | ) |
Definition at line 410 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::observeTiming | ( | string | $name, |
float | $value, | ||
array | $labels ) |
Record a timing metric.
string | $name | |
float | $value | |
array | $labels |
Definition at line 262 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::redirectRegexp | ( | ) |
Definition at line 369 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::relativeLinkPrefix | ( | ) |
Definition at line 346 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::rtl | ( | ) |
Definition at line 554 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::script | ( | ) |
Definition at line 575 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::scriptpath | ( | ) |
Definition at line 579 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::server | ( | ) |
Definition at line 583 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 761 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::specialPageLocalName | ( | string | $alias | ) |
Definition at line 436 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 828 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::timezoneOffset | ( | ) |
Definition at line 616 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::ucfirst | ( | string | $str | ) |
Definition at line 431 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::variants | ( | ) |
Language variant information.
Definition at line 628 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 676 of file SiteConfig.php.
MediaWiki\Parser\Parsoid\Config\SiteConfig::widthOption | ( | ) |
Definition at line 692 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.