MediaWiki REL1_34
TrackingCategories Class Reference

This class performs some operations related to tracking categories, such as creating a list of all such categories. More...

Collaboration diagram for TrackingCategories:

Public Member Functions

 __construct (Config $config)
 
 getTrackingCategories ()
 Read the global and extract title objects from the corresponding messages.
 

Private Attributes

Config $config
 

Static Private Attributes

static array $coreTrackingCategories
 Tracking categories that exist in core.
 

Detailed Description

This class performs some operations related to tracking categories, such as creating a list of all such categories.

Since
1.29

Definition at line 29 of file TrackingCategories.php.

Constructor & Destructor Documentation

◆ __construct()

TrackingCategories::__construct ( Config  $config)
Parameters
Config$config

Definition at line 57 of file TrackingCategories.php.

References $config.

Member Function Documentation

◆ getTrackingCategories()

TrackingCategories::getTrackingCategories ( )

Read the global and extract title objects from the corresponding messages.

Returns
array [ 'msg' => Title, 'cats' => Title[] ]

Definition at line 65 of file TrackingCategories.php.

References NS_CATEGORY, NS_MEDIAWIKI, and wfMessage().

Member Data Documentation

◆ $config

Config TrackingCategories::$config
private

Definition at line 31 of file TrackingCategories.php.

Referenced by __construct().

◆ $coreTrackingCategories

array TrackingCategories::$coreTrackingCategories
staticprivate
Initial value:
= [
'index-category',
'noindex-category',
'duplicate-args-category',
'expensive-parserfunction-category',
'post-expand-template-argument-category',
'post-expand-template-inclusion-category',
'hidden-category-category',
'broken-file-category',
'node-count-exceeded-category',
'expansion-depth-exceeded-category',
'restricted-displaytitle-ignored',
'deprecated-self-close-category',
'template-loop-category',
]

Tracking categories that exist in core.

Definition at line 38 of file TrackingCategories.php.


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