\App\Presenters\AdminrolePermissionsPresenter

Summary

Methods
Properties
Constants
getPermissions()
groupPermissions()
getRolePermissions()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getPermissions()

getPermissions(array  $permissions, array  $rolePer = array()) : string

将用户权限分组排列

Parameters

array $permissions

权限

array $rolePer

用户组

Returns

string

groupPermissions()

groupPermissions(array  $permissions) : array

权限组重新排序,按权限分组

Parameters

array $permissions

Returns

array

getRolePermissions()

getRolePermissions(object  $rolePer) : array

获取当前用户组权限ID数组

Parameters

object $rolePer

Returns

array