Gc\View\Helper\Acl::__construct PHP Method

__construct() public method

Constructor
public __construct ( Model $user )
$user Gc\User\Model User model to retrieve Acl, role name and check permission
    public function __construct(UserModel $user)
    {
        $this->acl = $user->getAcl(true);
        $this->roleName = $user->getRole()->getName();
    }