MediaWiki REL1_39
|
This class performs some operations related to tracking categories, such as creating a list of all such categories. More...
Public Member Functions | |
__construct (ServiceOptions $options, NamespaceInfo $namespaceInfo, TitleParser $titleParser, LoggerInterface $logger) | |
addTrackingCategory (ParserOutput $parserOutput, string $msg, ?PageReference $contextPage) | |
Add a tracking category to a ParserOutput. | |
getTrackingCategories () | |
Read the global and extract title objects from the corresponding messages. | |
resolveTrackingCategory (string $msg, ?PageReference $contextPage) | |
Resolve a tracking category. | |
Public Attributes | |
const | CONSTRUCTOR_OPTIONS |
This class performs some operations related to tracking categories, such as creating a list of all such categories.
Definition at line 33 of file TrackingCategories.php.
TrackingCategories::__construct | ( | ServiceOptions | $options, |
NamespaceInfo | $namespaceInfo, | ||
TitleParser | $titleParser, | ||
LoggerInterface | $logger ) |
ServiceOptions | $options | |
NamespaceInfo | $namespaceInfo | |
TitleParser | $titleParser | |
LoggerInterface | $logger |
Definition at line 91 of file TrackingCategories.php.
References MediaWiki\Config\ServiceOptions\assertRequiredOptions().
TrackingCategories::addTrackingCategory | ( | ParserOutput | $parserOutput, |
string | $msg, | ||
?PageReference | $contextPage ) |
Add a tracking category to a ParserOutput.
ParserOutput | $parserOutput | |
string | $msg | Message key |
?PageReference | $contextPage | Context page title |
Definition at line 239 of file TrackingCategories.php.
TrackingCategories::getTrackingCategories | ( | ) |
Read the global and extract title objects from the corresponding messages.
TODO consider renaming this method, since this class is retrieved from MediaWikiServices, resulting in calls like: MediaWikiServices::getInstance()->getTrackingCategories()->getTrackingCategories()
Definition at line 117 of file TrackingCategories.php.
References NS_CATEGORY, NS_MEDIAWIKI, and wfMessage().
TrackingCategories::resolveTrackingCategory | ( | string | $msg, |
?PageReference | $contextPage ) |
Resolve a tracking category.
string | $msg | Message key |
?PageReference | $contextPage | Context page title |
Definition at line 200 of file TrackingCategories.php.
const TrackingCategories::CONSTRUCTOR_OPTIONS |
Definition at line 38 of file TrackingCategories.php.