Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
SMW\NamespaceManager Class Reference

Public Member Functions

 __construct (LocalLanguage $LocalLanguage=null)
 
 init (&$vars)
 

Static Public Member Functions

static clear ()
 
static initCanonicalNamespaces (array &$namespaces)
 
static getCanonicalNames ()
 
static buildNamespaceIndex ( $offset)
 
static initCustomNamespace (&$vars, LocalLanguage $localLanguage=null)
 

Public Attributes

const DEFAULT_NAMESPACEINDEX = 100
 

Protected Member Functions

 isDefinedConstant ( $constant)
 
 getLocalLanguage ( $languageCode)
 

Detailed Description

GNU GPL v2+

Since
1.9
Author
mwjames
others

Constructor & Destructor Documentation

◆ __construct()

SMW\NamespaceManager::__construct ( LocalLanguage  $LocalLanguage = null)
Since
1.9
Parameters
LocalLanguage | null$LocalLanguage

Member Function Documentation

◆ buildNamespaceIndex()

static SMW\NamespaceManager::buildNamespaceIndex (   $offset)
static
Since
1.9
Parameters
integeroffset
Returns
array

◆ clear()

static SMW\NamespaceManager::clear ( )
static
Since
3.2

◆ getCanonicalNames()

static SMW\NamespaceManager::getCanonicalNames ( )
static
See also
Hooks:CanonicalNamespaces
Since
1.9
Returns
array

◆ init()

SMW\NamespaceManager::init ( $vars)
Since
1.9
Parameters
&$vars

◆ initCanonicalNamespaces()

static SMW\NamespaceManager::initCanonicalNamespaces ( array &  $namespaces)
static
See also
Hooks:CanonicalNamespaces CanonicalNamespaces initialization
Note
According to T104954 registration via wgExtensionFunctions is to late and should happen before that
See also
https://phabricator.wikimedia.org/T104954#2391291
https://www.mediawiki.org/wiki/Manual:Hooks/CanonicalNamespaces 34383
Since
2.5
Parameters
array&$namespaces

◆ initCustomNamespace()

static SMW\NamespaceManager::initCustomNamespace ( $vars,
LocalLanguage  $localLanguage = null 
)
static
Since
1.9
Parameters
array&$vars
LocalLanguage | null$localLanguage

Member Data Documentation

◆ DEFAULT_NAMESPACEINDEX

const SMW\NamespaceManager::DEFAULT_NAMESPACEINDEX = 100

Defines the default namespace index used as offset for building Semantic MediaWiki's specific namespace numbers.


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

About | General disclaimer | Privacy policy