PHP Class Imbo\Auth\AccessControl\Adapter\ArrayAdapter

Author: Espen Hovlandsdal ([email protected])
Inheritance: extends AbstractAdapter, implements Imbo\Auth\AccessControl\Adapter\AdapterInterface
Exibir arquivo Open project: imbo/imbo Class Usage Examples

Protected Properties

Property Type Description
$accessList array Access control definitions

Public Methods

Method Description
__construct ( array $accessList = [], array $groups = [] ) Class constructor
getAccessListForPublicKey ( $publicKey )
getAccessRule ( $publicKey, $accessRuleId )
getGroup ( $groupName )
getGroups ( Imbo\Auth\AccessControl\GroupQuery $query = null, Groups $model )
getPrivateKey ( $publicKey )
groupExists ( $groupName )
publicKeyExists ( $publicKey )

Private Methods

Method Description
getKeysFromAcl ( ) : array Get an array of public => private key pairs defined in the ACL
validateAccessList ( ) Validate access list data

Method Details

__construct() public method

Class constructor
public __construct ( array $accessList = [], array $groups = [] )
$accessList array Array defining the available public/private keys, along with the associated ACL rules for each public key.
$groups array Array of group => resources combinations

getAccessListForPublicKey() public method

public getAccessListForPublicKey ( $publicKey )

getAccessRule() public method

public getAccessRule ( $publicKey, $accessRuleId )

getGroup() public method

public getGroup ( $groupName )

getGroups() public method

public getGroups ( Imbo\Auth\AccessControl\GroupQuery $query = null, Groups $model )
$query Imbo\Auth\AccessControl\GroupQuery
$model Imbo\Model\Groups

getPrivateKey() public method

public getPrivateKey ( $publicKey )

groupExists() public method

public groupExists ( $groupName )

publicKeyExists() public method

public publicKeyExists ( $publicKey )

Property Details

$accessList protected_oe property

Access control definitions
protected array $accessList
return array