BlueSpice MediaWiki master
 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 ()
 
 setup ($sExtName="", $aConfig=array())
 
 setHook ($hook, $method=false, $bExecuteFirst=false)
 
 setContext (\IContextSource $context)
 
 setConfig (\Config $config)
 
 getResourcePath ()
 
 getName ()
 
 getExtensionKey ()
 
 getExtensionPath ()
 
 getImagePath ($bResources=false)
 
 getCacheKey ($sSubKey= 'default')
 
 makeTagExtensionDefinitions ()
 
- Public Member Functions inherited from BlueSpice\Extension
 jsonSerialize ()
 
 __construct (array $definition,\IContextSource $context,\Config $config)
 
 getInfo ()
 
 getResourcePath ()
 
 getExtensionPath ()
 
 getName ()
 
 getAuthors ()
 
 getStatus ()
 
 getPackage ()
 
 getUrl ()
 
 getVersion ()
 
 getExtensionKey ()
 
- Public Member Functions inherited from BlueSpice\Context
 __construct (\IContextSource $context,\Config $config)
 
 canUseWikiPage ()
 
 exportSession ()
 
 getConfig ()
 
 getLanguage ()
 
 getOutput ()
 
 getRequest ()
 
 getSkin ()
 
 getStats ()
 
 getTiming ()
 
 getTitle ()
 
 getUser ()
 
 getWikiPage ()
 
 msg ($key)
 

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
 $mExtensionKey = null
 
 $mExtensionFile = null
 
 $mExtensionType = null
 
 $mInfo = null
 
 $mResourcePath = null
 
 $sName = ''
 
 $sStatus = ''
 
 $sPackage = ''
 
 $mCore = null
 
 $aStandardContext = array( '*', '*', '*' )
 
- Protected Attributes inherited from BlueSpice\Extension
 $extPath = ''
 
 $name = ''
 
 $authors = []
 
 $version = ''
 
 $url = ''
 
 $status = ''
 
 $package = ''
 
- Protected Attributes inherited from BlueSpice\Context
 $context = null
 
 $config = null
 

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: