PHP Class ZfcRbac\View\Helper\HasRole

Author: JM Leroux ([email protected])
Inheritance: extends Zend\View\Helper\AbstractHelper
Show file Open project: zf-commons/zfc-rbac

Public Methods

Method Description
__construct ( RoleService $roleService ) Constructor
__invoke ( string | string[] $roleOrRoles ) : boolean

Method Details

__construct() public method

Constructor
public __construct ( RoleService $roleService )
$roleService ZfcRbac\Service\RoleService

__invoke() public method

public __invoke ( string | string[] $roleOrRoles ) : boolean
$roleOrRoles string | string[]
return boolean