PHP 인터페이스 Imbo\Auth\AccessControl\Adapter\AdapterInterface

저자: Espen Hovlandsdal ([email protected])
파일 보기 프로젝트 열기: imbo/imbo

공개 메소드들

메소드 설명
getAccessListForPublicKey ( string $publicKey ) : array Get the access control list for a given public key
getAccessRule ( string $publicKey, array $accessRuleId ) : array Get an access rule by id
getGroup ( string $groupName ) : array Fetch a resource group with the given name
getGroups ( Imbo\Auth\AccessControl\GroupQuery $query = null, Groups $model ) : array Fetch a list of available resource groups
getPrivateKey ( string $publicKey ) : string Return the private key for a given public key
getUsersForResource ( string $publicKey, string $resource ) : array Get a list of users the public key has access for on a given resource
groupExists ( string $groupName ) : boolean Check whether or not a group exists
hasAccess ( string $publicKey, string $resource, string $user = null ) : boolean Check if a given public key has access to a given resource
publicKeyExists ( string $publicKey ) : boolean Get whether a public key exists or not

메소드 상세

getAccessListForPublicKey() 공개 메소드

Get the access control list for a given public key
public getAccessListForPublicKey ( string $publicKey ) : array
$publicKey string
리턴 array

getAccessRule() 공개 메소드

Get an access rule by id
public getAccessRule ( string $publicKey, array $accessRuleId ) : array
$publicKey string Public key to add access rule to
$accessRuleId array Access rule id
리턴 array Access rule

getGroup() 공개 메소드

Fetch a resource group with the given name
public getGroup ( string $groupName ) : array
$groupName string Name of the group
리턴 array Array of resources the group consists of

getGroups() 공개 메소드

Fetch a list of available resource groups
public getGroups ( Imbo\Auth\AccessControl\GroupQuery $query = null, Groups $model ) : array
$query Imbo\Auth\AccessControl\GroupQuery A query object used to filter the groups returned
$model Imbo\Model\Groups Groups model to populate total number of hits with
리턴 array

getPrivateKey() 공개 메소드

Return the private key for a given public key
public getPrivateKey ( string $publicKey ) : string
$publicKey string The public key to fetch matching private key for
리턴 string Returns the private key for the public key

getUsersForResource() 공개 메소드

Get a list of users the public key has access for on a given resource
public getUsersForResource ( string $publicKey, string $resource ) : array
$publicKey string Public key to check access for
$resource string Resource identifier (e.g. image.get, images.post)
리턴 array List of users the public key kan access the given resource for

groupExists() 공개 메소드

Check whether or not a group exists
public groupExists ( string $groupName ) : boolean
$groupName string Name of the group
리턴 boolean

hasAccess() 공개 메소드

Check if a given public key has access to a given resource
public hasAccess ( string $publicKey, string $resource, string $user = null ) : boolean
$publicKey string Public key to check access for
$resource string Resource identifier (e.g. image.get, images.post)
$user string Optional user which the resource belongs to
리턴 boolean True if public key has access, false otherwise

publicKeyExists() 공개 메소드

Get whether a public key exists or not
public publicKeyExists ( string $publicKey ) : boolean
$publicKey string Public key to check
리턴 boolean