Jump to content

Manual:MWNamespace.php

From mediawiki.org
This page is a translated version of the page Manual:MWNamespace.php and the translation is 44% complete.

MWNamespace.php contains the MWNamespace class, a utility class with only static functions for dealing with namespaces that encodes all the "magic" behaviors of them based on index.

メソッド

  • MWNamespace::getCanonicalNamespaces( $rebuild ) - 定義済みの名前空間について、一連の正則式の (英文) 名称を返します。
  • MWNamespace::getCanonicalName( $index ) - Returns the canonical (English) name for a given index
  • MWNamespace::getValidNamespaces() - 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 getCanonicalNamespaces() without using the rebuild option and it then excludes the negative number namespaces, e.g. -1 (special page).

外部リンク