Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
AclManagerInit Class Reference
+ Inheritance diagram for AclManagerInit:

Static Public Member Functions

static start ()
 Create AclList with default roles and resources.
 
static startWithCacheProvider ()
 Start the Acls with AclCacheProvider (for attributes or annotations).
 
static isStarted ()
 Check whether the Acl service is started.
 
static initFromProviders (?array $providers=[])
 Load acls, roles, resources and permissions from providers.
 
static reloadFromSelectedProviders ($selectedProviders=' *')
 
static getProvider (string $providerClass)
 
static getModelClassesSwap ()
 
static filterProviders (string $providerClass)
 
static removefilterProviders ()
 
static initializeDAOProvider (array &$config, string $dbOffset='default', array $classes=[])
 Initializes AclDAOProvider and creates ACL tables in the specified dbOffset.
 
static initCache (array &$config, bool $silent=false)
 Initialize acls cache with controllers annotations.
 
static checkCache (array &$config)
 

Static Protected Member Functions

static registerAnnotations ()
 

Static Private Member Functions

static cacheOperation (array &$config, bool $silent, $operation, $message=null)
 

Detailed Description

Definition at line 19 of file AclManagerInit.php.

Member Function Documentation

◆ cacheOperation()

static cacheOperation ( array &  $config,
bool  $silent,
  $operation,
  $message = null 
)
staticprivate

Definition at line 152 of file AclManagerInit.php.

◆ checkCache()

static checkCache ( array &  $config)
static
Parameters
array$config
Returns
bool

Definition at line 146 of file AclManagerInit.php.

◆ filterProviders()

static filterProviders ( string  $providerClass)
static

Definition at line 97 of file AclManagerInit.php.

◆ getModelClassesSwap()

static getModelClassesSwap ( )
static

Definition at line 86 of file AclManagerInit.php.

◆ getProvider()

static getProvider ( string  $providerClass)
static
Parameters
string$providerClass
Returns
AclProviderInterface|NULL

Definition at line 82 of file AclManagerInit.php.

◆ initCache()

static initCache ( array &  $config,
bool  $silent = false 
)
static

Initialize acls cache with controllers annotations.

Do not execute at runtime

Parameters
array$config
bool$silent
Exceptions

Ubiquity\exceptions\AclException

Definition at line 136 of file AclManagerInit.php.

◆ initFromProviders()

static initFromProviders ( ?array  $providers = [])
static

Load acls, roles, resources and permissions from providers.

Parameters
AclProviderInterface[]$providers

Definition at line 50 of file AclManagerInit.php.

◆ initializeDAOProvider()

static initializeDAOProvider ( array &  $config,
string  $dbOffset = 'default',
array  $classes = [] 
)
static

Initializes AclDAOProvider and creates ACL tables in the specified dbOffset.

Do not use in production

Parameters
array$config
string$dbOffset
array$classesassociative array['acl'=>'','role'=>'','resource'=>'','permission'=>'']
Returns
AclDAOProvider
Exceptions
AclException

Definition at line 123 of file AclManagerInit.php.

◆ isStarted()

static isStarted ( )
static

Check whether the Acl service is started.

Returns
bool

Definition at line 41 of file AclManagerInit.php.

◆ registerAnnotations()

static registerAnnotations ( )
staticprotected

Definition at line 186 of file AclManagerInit.php.

◆ reloadFromSelectedProviders()

static reloadFromSelectedProviders (   $selectedProviders = '*')
static
Parameters
array | string$selectedProviders

Definition at line 64 of file AclManagerInit.php.

◆ removefilterProviders()

static removefilterProviders ( )
static

Definition at line 109 of file AclManagerInit.php.

◆ start()

static start ( )
static

Create AclList with default roles and resources.

Definition at line 23 of file AclManagerInit.php.

◆ startWithCacheProvider()

static startWithCacheProvider ( )
static

Start the Acls with AclCacheProvider (for attributes or annotations).

Definition at line 31 of file AclManagerInit.php.


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