Class Socialveo\Core\Acl

InheritanceSocialveo\Core\Acl » Phalcon\Di\Injectable

Class Acl

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$_config array Socialveo\Core\Acl
$_roles array[]|boolean[] Socialveo\Core\Acl

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Constructor Socialveo\Core\Acl
getRoles() Socialveo\Core\Acl
getRouteConfig() Get config for route Socialveo\Core\Acl
is() Check role Socialveo\Core\Acl
test() Test roles rules Socialveo\Core\Acl

Property Details

$_config protected property
protected array $_config null
$_roles protected property
protected array[]|boolean[] $_roles = []

Method Details

__construct() public method

Constructor

public void __construct ( $config )
$config array
throws Exception
getRoles() public method

public array[]|boolean[] getRoles ( )
getRouteConfig() public method

Get config for route

public array|null getRouteConfig ( $route )
$route string
is() public method

Check role

public boolean is ( $role )
$role string
test() public method

Test roles rules

public boolean test ( $allow, $deny null )
$allow array|array[]|string
$deny array|null|string