MediaWiki REL1_32
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 27 of file TrackingCategories.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 55 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 Array( 'msg' => Title, 'cats' => Title[] )

Definition at line 63 of file TrackingCategories.php.

References ExtensionRegistry\getInstance(), NS_CATEGORY, and wfMessage().

Member Data Documentation

◆ $config

Config TrackingCategories::$config
private

Definition at line 29 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 36 of file TrackingCategories.php.


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