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

Public Member Functions

 __construct ()
 
 onBSGroupManagerGroupNameChanged ($sGroup, $sNewGroup, &$result)
 
 onBSGroupManagerGroupDeleted ($sGroup, &$result)
 
- 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 getSchemaUpdates ($updater)
 
static buildNamespaceMetadata ()
 
static buildRightsMetadata ()
 
static setTemplateData ($oTemplate)
 
static deleteTemplate ($iId=0)
 
static savePermissions ($data)
 
static getPermissionArray ($group="", $timestamp="")
 
static getTemplateRules ()
 
static onUnitTestsList (array &$paths)
 

Static Public Attributes

static $aSysopDefaultPermissions
 
static $aGroups = array()
 
static $aBuiltInGroups
 
static $aInvisibleGroups = array( 'sysop' )
 

Protected Member Functions

 initExt ()
 
- Protected Member Functions inherited from BsExtensionMW
 initExt ()
 

Static Protected Member Functions

static preventPermissionLockout (&$aGroupPermissions)
 
static writeGroupSettings ($aGroupPermissions, $aNamespacePermissionLockdown)
 
static backupExistingSettings ()
 

Additional Inherited Members

- 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
 

Constructor & Destructor Documentation

PermissionManager::__construct ( )

Constructor of PermissionManager

Member Function Documentation

static PermissionManager::backupExistingSettings ( )
staticprotected

creates a backup of the current pm-settings.php if it exists.

string $bsgConfigFiles

static PermissionManager::buildRightsMetadata ( )
static

This is to check if a right is global or local. This is stored in the $aMetadata to creates categorys in the Permission Manager form Array $bsgPermissionConfig stores various configurations for rights

Returns
Array $aMetadata stores values needed in the permissionmanager getForm() i.e. if a right is global or local.
static PermissionManager::getSchemaUpdates (   $updater)
static

Hook-Handler for Hook 'LoadExtensionSchemaUpdates'

Parameters
object$updaterUpdater
Returns
boolean Always true
static PermissionManager::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 PermissionManager::preventPermissionLockout ( $aGroupPermissions)
staticprotected

Prevents that the wiki gets accidentally inaccessible for all users. Some of the rights which are pre-set in the $bsgPermissionConfig have a the flag "preventLockout" set to true. This makes it impossible to save the permission settings if not at least one group has these rights enabled.

Parameters
array$aGroupPermissions
Returns
bool|String
static PermissionManager::savePermissions (   $data)
static

WebRequest $wgRequest

Returns
$aResult from RunHooks(BsPermissionManager::beforeSavePermissions) if not empty, otherwise $mStatusWritePMSettings if no error occurs, otherwise boolean:false

Member Data Documentation

PermissionManager::$aBuiltInGroups
static
Initial value:
= array(
'autoconfirmed', 'emailconfirmed', 'bot', 'sysop', 'bureaucrat', 'developer'
)

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