BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
NamespaceManager Class Reference
Inheritance diagram for NamespaceManager:
Collaboration diagram for NamespaceManager:

Public Member Functions

 initExt ()
 
 onEditNamespace (&$aNamespaceDefinition, &$iNs, $aAdditionalSettings, $bUseInternalDefaults)
 
 onWriteNamespaceConfiguration (&$sSaveContent, $sConstName, $iNs, $aDefinition)
 
- Public Member Functions inherited from BsExtensionMW
 setCore ($oCore)
 
 getInfo ()
 
 getName ()
 
 getExtensionKey ()
 
 setup ($sExtName="", $aConfig=array())
 
 setHook ($hook, $method=false, $bExecuteFirst=false)
 
 getResourcePath ()
 
 getImagePath ($bResources=false)
 
 getCacheKey ($sSubKey= 'default')
 
 makeTagExtensionDefinitions ()
 
- Public Member Functions inherited from ContextSource
 getContext ()
 
 setContext (IContextSource $context)
 
 getConfig ()
 
 getRequest ()
 
 getTitle ()
 
 canUseWikiPage ()
 
 getWikiPage ()
 
 getOutput ()
 
 getUser ()
 
 getLanguage ()
 
 getSkin ()
 
 getTiming ()
 
 getStats ()
 
 msg ()
 
 exportSession ()
 

Static Public Member Functions

static onRegistration ()
 
static onLoadExtensionSchemaUpdates ($updater)
 
static getUserNamespaces ($bFullDetails=false)
 
static setUserNamespaces ($aUserNamespaceDefinition)
 
static getNamespaceConstName ($iNS, $aDefinition)
 
static onUnitTestsList (array &$paths)
 

Static Public Attributes

static $aSortConditions
 

Additional Inherited Members

- Protected Member Functions inherited from BsExtensionMW
 initExt ()
 
- Protected Attributes inherited from BsExtensionMW
 $mExtensionFile = null
 
 $mExtensionType = null
 
 $mInfo = null
 
 $mExtensionKey = null
 
 $mResourcePath = null
 
 $sName = ''
 
 $sStatus = ''
 
 $sPackage = ''
 
 $mCore = null
 
 $aStandardContext = array( '*', '*', '*' )
 

Member Function Documentation

static NamespaceManager::getUserNamespaces (   $bFullDetails = false)
static

Get all namespaces, which are created with the NamespaceManager.

Parameters
boolean$bFullDetailsshould the complete configuration of the namespaces be loaded
Returns
array the namespace data
NamespaceManager::initExt ( )

Initialization of NamespaceManager extension

NamespaceManager::onEditNamespace ( $aNamespaceDefinition,
$iNs,
  $aAdditionalSettings,
  $bUseInternalDefaults 
)

Hook-Handler for NamespaceManager::editNamespace

Returns
boolean Always true to kepp hook alive
static NamespaceManager::onLoadExtensionSchemaUpdates (   $updater)
static

Add the sql file to database by executing the update.php type $wgDBtype array $wgExtNewTables

Parameters
DatabaseUpdater$du
Returns
boolean
static NamespaceManager::onRegistration ( )
static

extension.json callback array $bsgConfigFiles

static NamespaceManager::onUnitTestsList ( array &  $paths)
static

UnitTestsList allows registration of additional test suites to execute under PHPUnit. Extensions can append paths to files to the $paths array, and since MediaWiki 1.24, can specify paths to directories, which will be scanned recursively for any test case files with the suffix "Test.php".

Parameters
array$paths
static NamespaceManager::setUserNamespaces (   $aUserNamespaceDefinition)
static

Saves a given namespace configuration to bluespice-core/config/nm-settings.php

Parameters
array$aUserNamespaceDefinitionthe namespace configuration

Member Data Documentation

NamespaceManager::$aSortConditions
static
Initial value:
= array(
'sort' => '',
'dir' => ''
)

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