UserGroups
class UserGroups (View source)
PhpMyAdmin\Server\UserGroups class
Methods
Return HTML to list the users belonging to a given user group
Returns HTML for the 'user groups' table
Returns the list of allowed menu tab names based on a data row from usergroup table.
No description
Returns HTML for add/edit user group dialog
Returns HTML for checkbox groups to choose tabs of 'server', 'db' or 'table' levels.
Add/update a user group with allowed menu tabs.
Details
static string
getHtmlForListingUsersofAGroup(ConfigurableMenusFeature $configurableMenusFeature, string $userGroup)
Return HTML to list the users belonging to a given user group
static string
getHtmlForUserGroupsTable(ConfigurableMenusFeature $configurableMenusFeature)
Returns HTML for the 'user groups' table
static string
getAllowedTabNames(array $row, UserGroupLevel $level)
Returns the list of allowed menu tab names based on a data row from usergroup table.
static void
delete(DatabaseInterface $dbi, ConfigurableMenusFeature $configurableMenusFeature, string $userGroupName)
No description
static string
getHtmlToEditUserGroup(ConfigurableMenusFeature $configurableMenusFeature, string|null $userGroup = null)
Returns HTML for add/edit user group dialog
static string
getTabList(string $title, UserGroupLevel $level, array $selected)
Returns HTML for checkbox groups to choose tabs of 'server', 'db' or 'table' levels.
static void
edit(ConfigurableMenusFeature $configurableMenusFeature, string $userGroup, bool $new = false)
Add/update a user group with allowed menu tabs.