Go to the documentation of this file.
35 return MediaWikiServices::getInstance()->getNamespaceInfo()->isMovable( $index );
46 return MediaWikiServices::getInstance()->getNamespaceInfo()->isSubject( $index );
55 public static function isTalk( $index ) {
56 return MediaWikiServices::getInstance()->getNamespaceInfo()->isTalk( $index );
65 public static function getTalk( $index ) {
66 return MediaWikiServices::getInstance()->getNamespaceInfo()->getTalk( $index );
77 return MediaWikiServices::getInstance()->getNamespaceInfo()->getSubject( $index );
89 return MediaWikiServices::getInstance()->getNamespaceInfo()->getAssociated( $index );
100 public static function exists( $index ) {
101 return MediaWikiServices::getInstance()->getNamespaceInfo()->exists( $index );
118 public static function equals( $ns1, $ns2 ) {
119 return MediaWikiServices::getInstance()->getNamespaceInfo()->equals( $ns1, $ns2 );
134 return MediaWikiServices::getInstance()->getNamespaceInfo()->
146 return MediaWikiServices::getInstance()->getNamespaceInfo()->getCanonicalNamespaces();
156 return MediaWikiServices::getInstance()->getNamespaceInfo()->getCanonicalName( $index );
167 return MediaWikiServices::getInstance()->getNamespaceInfo()->getCanonicalIndex( $name );
176 return MediaWikiServices::getInstance()->getNamespaceInfo()->getValidNamespaces();
188 return MediaWikiServices::getInstance()->getNamespaceInfo()->hasTalkNamespace( $index );
199 return MediaWikiServices::getInstance()->getNamespaceInfo()->isContent( $index );
210 return MediaWikiServices::getInstance()->getNamespaceInfo()->wantSignatures( $index );
220 return MediaWikiServices::getInstance()->getNamespaceInfo()->isWatchable( $index );
230 return MediaWikiServices::getInstance()->getNamespaceInfo()->hasSubpages( $index );
238 return MediaWikiServices::getInstance()->getNamespaceInfo()->getContentNamespaces();
248 return MediaWikiServices::getInstance()->getNamespaceInfo()->getSubjectNamespaces();
258 return MediaWikiServices::getInstance()->getNamespaceInfo()->getTalkNamespaces();
268 return MediaWikiServices::getInstance()->getNamespaceInfo()->isCapitalized( $index );
280 return MediaWikiServices::getInstance()->getNamespaceInfo()->
292 return MediaWikiServices::getInstance()->getNamespaceInfo()->isNonincludable( $index );
307 return MediaWikiServices::getInstance()->getNamespaceInfo()->
321 return MediaWikiServices::getInstance()
322 ->getPermissionManager()
323 ->getNamespaceRestrictionLevels( $index, $user );
337 return MediaWikiServices::getInstance()->getNamespaceInfo()->
static subjectEquals( $ns1, $ns2)
Returns whether the specified namespaces share the same subject.
static isNonincludable( $index)
It is not possible to use pages from this namespace as template?
static getCanonicalNamespaces()
Returns array of all defined namespaces with their canonical (English) names.
static getValidNamespaces()
Returns an array of the namespaces (by integer id) that exist on the wiki.
static hasGenderDistinction( $index)
Does the namespace (potentially) have different aliases for different genders.
static isTalk( $index)
Is the given namespace a talk namespace?
static getTalkNamespaces()
List all namespace indices which are considered talks, aka not a subject or special namespace.
static getNamespaceContentModel( $index)
Get the default content model for a namespace This does not mean that all pages in that namespace hav...
static getSubjectNamespaces()
List all namespace indices which are considered subject, aka not a talk or special namespace.
static getContentNamespaces()
Get a list of all namespace indices which are considered to contain content.
static getCanonicalIndex( $name)
Returns the index for a given canonical name, or NULL The input must be converted to lower case first...
static isContent( $index)
Does this namespace contain content, for the purposes of calculating statistics, etc?
static hasTalkNamespace( $index)
Does this namespace ever have a talk namespace?
static hasSubpages( $index)
Does the namespace allow subpages?
static getRestrictionLevels( $index, User $user=null)
Determine which restriction levels it makes sense to use in a namespace, optionally filtered by a use...
static isSubject( $index)
Is the given namespace is a subject (non-talk) namespace?
static wantSignatures( $index)
Might pages in this namespace require the use of the Signature button on the edit toolbar?
static isMovable( $index)
Can pages in the given namespace be moved?
static exists( $index)
Returns whether the specified namespace exists.
static equals( $ns1, $ns2)
Returns whether the specified namespaces are the same namespace.
static getCategoryLinkType( $index)
Returns the link type to be used for categories.
static isCapitalized( $index)
Is the namespace first-letter capitalized?
static isWatchable( $index)
Can pages in a namespace be watched?
static getTalk( $index)
Get the talk namespace index for a given namespace.
static getSubject( $index)
Get the subject namespace index for a given namespace Special namespaces (NS_MEDIA,...
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
static getAssociated( $index)
Get the associated namespace.
static getCanonicalName( $index)
Returns the canonical (English) name for a given index.