VuFind API Documentation

DynamicRoleProviderFactory
in package
implements FactoryInterface

VuFind dynamic role provider factory.

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Main Page

Interfaces, Classes, Traits and Enums

FactoryInterface

Table of Contents

__invoke()  : object
Create service
addLegacySettings()  : array<string|int, mixed>
Map legacy VuFind settings into the permissions.ini setup.
getPermissionConfiguration()  : array<string|int, mixed>
Get a configuration array.
getPermissionProviderPluginManager()  : PermissionProviderPluginManager
Create the supporting plugin manager.
permissionDefined()  : bool
Is the specified permission already defined in the provided configuration?

Methods

__invoke()

Create service

public __invoke(ContainerInterface $sm, string $name[, array<string|int, mixed> $options = null ]) : object
Parameters
$sm : ContainerInterface

Service manager

$name : string

Requested service name (unused)

$options : array<string|int, mixed> = null

Extra options (unused)

Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Return values
object

addLegacySettings()

Map legacy VuFind settings into the permissions.ini setup.

protected addLegacySettings(PluginManager $loader, array<string|int, mixed> $permissions) : array<string|int, mixed>
Parameters
$loader : PluginManager

Config loader

$permissions : array<string|int, mixed>

Permissions to update

Return values
array<string|int, mixed>

getPermissionConfiguration()

Get a configuration array.

protected getPermissionConfiguration(ContainerInterface $serviceLocator, array<string|int, mixed> $rbacConfig) : array<string|int, mixed>
Parameters
$serviceLocator : ContainerInterface

Service locator

$rbacConfig : array<string|int, mixed>

LmcRbacMvc configuration

Return values
array<string|int, mixed>

getPermissionProviderPluginManager()

Create the supporting plugin manager.

protected getPermissionProviderPluginManager(ContainerInterface $serviceLocator, array<string|int, mixed> $rbacConfig) : PermissionProviderPluginManager
Parameters
$serviceLocator : ContainerInterface

Service locator

$rbacConfig : array<string|int, mixed>

LmcRbacMvc configuration

Return values
PermissionProviderPluginManager

permissionDefined()

Is the specified permission already defined in the provided configuration?

protected permissionDefined(array<string|int, mixed> $config, string $permission) : bool
Parameters
$config : array<string|int, mixed>

Configuration

$permission : string

Permission to check

Return values
bool

Search results