Manual:MWNamespace.php

MWNamespace.php contains the MWNamespace class, a utility class with only static functions for dealing with man-ns>Special:MyLanguage/Manual:Namespace|namespaces that encodes all the "magic" behaviors of them based on index.

Deprecated since 1.34, replaced by Manual:NamespaceInfo.php Completly removed in 1.39 (rMWea1c106ea9a3)

Methods

 * : Returns array of all defined namespaces with their canonical (English) names.
 * : Returns the canonical (English) name for a given index
 * : Returns an array of the namespaces (by integer id) that exist on the wiki. Used primarily by the api in help documentation. This function calls  without using the rebuild option and it then excludes the negative number namespaces, e.g. -1 (special page).