\ManaPHP\HttpAuthorizationInterface

Summary

Methods
Constants
buildAllowed()
getAllowed()
isAllowed()
authorize()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

buildAllowed()

buildAllowed(string  $role, array  $explicit_permissions = array()) : array

Parameters

string $role
array $explicit_permissions

Returns

array

getAllowed()

getAllowed(string  $role) : string

Parameters

string $role

Returns

string

isAllowed()

isAllowed(string  $permission = null, string  $role = null) : boolean

Check whether a user is allowed to access a permission

Parameters

string $permission
string $role

Returns

boolean

authorize()

authorize() 

Throws

\ManaPHP\Identity\NoCredentialException
\ManaPHP\Exception\ForbiddenException