PdoMySqlPermissionAnalyzer
extends PdoPermissionAnalyzer
in package
Table of Contents
Constants
- LEVEL_DATABASE = 'database'
- LEVEL_GLOBAL = 'global'
- LEVEL_TABLE = 'table'
- OBJECT_ALL = '*'
- RIGHT_CREATE = 'create'
Properties
- $knownRights : array<string|int, mixed>
- $permissions : array<string|int, mixed>
Methods
- __construct() : mixed
- PdoMySqlPermissionAnalyzer constructor
- canDatabaseCreate() : bool
- fromSqlAdapter() : PdoPermissionAnalyzer
- hasPermission() : bool
- parseGrant() : object
Constants
LEVEL_DATABASE
public
mixed
LEVEL_DATABASE
= 'database'
LEVEL_GLOBAL
public
mixed
LEVEL_GLOBAL
= 'global'
LEVEL_TABLE
public
mixed
LEVEL_TABLE
= 'table'
OBJECT_ALL
public
mixed
OBJECT_ALL
= '*'
RIGHT_CREATE
public
mixed
RIGHT_CREATE
= 'create'
Properties
$knownRights
protected
static array<string|int, mixed>
$knownRights
= ['CREATE' => self::RIGHT_CREATE]
$permissions
protected
array<string|int, mixed>
$permissions
Methods
__construct()
PdoMySqlPermissionAnalyzer constructor
public
__construct(array<string|int, mixed> $permissions) : mixed
Parameters
- $permissions : array<string|int, mixed>
canDatabaseCreate()
public
canDatabaseCreate() : bool
Return values
boolfromSqlAdapter()
public
static fromSqlAdapter(AbstractSqlAdapter $sqlAdapter) : PdoPermissionAnalyzer
Parameters
- $sqlAdapter : AbstractSqlAdapter
Return values
PdoPermissionAnalyzerhasPermission()
public
hasPermission() : bool
Return values
boolparseGrant()
public
static parseGrant(string $grant) : object
Parameters
- $grant : string