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 getContentNamespaces()
Get a list of all namespace indices which are considered to contain content.
static getSubject( $index)
Get the subject namespace index for a given namespace Special namespaces (NS_MEDIA,...
static wantSignatures( $index)
Might pages in this namespace require the use of the Signature button on the edit toolbar?
static exists( $index)
Returns whether the specified namespace exists.
static isSubject( $index)
Is the given namespace is a subject (non-talk) namespace?
static getCanonicalName( $index)
Returns the canonical (English) name for a given index.
static isCapitalized( $index)
Is the namespace first-letter capitalized?
static isWatchable( $index)
Can pages in a namespace be watched?
static hasSubpages( $index)
Does the namespace allow subpages?
static isNonincludable( $index)
It is not possible to use pages from this namespace as template?
static hasGenderDistinction( $index)
Does the namespace (potentially) have different aliases for different genders.
static getCategoryLinkType( $index)
Returns the link type to be used for categories.
static isTalk( $index)
Is the given namespace a talk namespace?
static getCanonicalIndex( $name)
Returns the index for a given canonical name, or NULL The input must be converted to lower case first...
static getTalk( $index)
Get the talk namespace index for a given namespace.
static isMovable( $index)
Can pages in the given namespace be moved?
static getCanonicalNamespaces()
Returns array of all defined namespaces with their canonical (English) names.
static hasTalkNamespace( $index)
Does this namespace ever have a talk namespace?
static equals( $ns1, $ns2)
Returns whether the specified namespaces are the same namespace.
static subjectEquals( $ns1, $ns2)
Returns whether the specified namespaces share the same subject.
static getSubjectNamespaces()
List all namespace indices which are considered subject, aka not a talk or special namespace.
static getTalkNamespaces()
List all namespace indices which are considered talks, aka not a subject or special namespace.
static getRestrictionLevels( $index, User $user=null)
Determine which restriction levels it makes sense to use in a namespace, optionally filtered by a use...
static isContent( $index)
Does this namespace contain content, for the purposes of calculating statistics, etc?
static getValidNamespaces()
Returns an array of the namespaces (by integer id) that exist on the wiki.
static getAssociated( $index)
Get the associated namespace.
static getNamespaceContentModel( $index)
Get the default content model for a namespace This does not mean that all pages in that namespace hav...
The User object encapsulates all of the user-specific settings (user_id, name, rights,...