PHP Class Gc\View\Helper\Acl

Inheritance: extends Zend\View\Helper\AbstractHelper
Afficher le fichier Open project: gotcms/gotcms

Protected Properties

Свойство Type Description
$acl Gc\User\Role\Model User Acl
$roleName string Role name

Méthodes publiques

Méthode Description
__construct ( Model $user ) Constructor
__invoke ( string $resource, string $permission ) : boolean Check acl

Method Details

__construct() public méthode

Constructor
public __construct ( Model $user )
$user Gc\User\Model User model to retrieve Acl, role name and check permission

__invoke() public méthode

Check acl
public __invoke ( string $resource, string $permission ) : boolean
$resource string Resource name
$permission string Permission name
Résultat boolean

Property Details

$acl protected_oe property

User Acl
protected Model,Gc\User\Role $acl
Résultat Gc\User\Role\Model

$roleName protected_oe property

Role name
protected string $roleName
Résultat string