class UserGroups (View source)

PhpMyAdmin\Server\UserGroups class

Methods

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.

Details

static string getHtmlForListingUsersofAGroup(ConfigurableMenusFeature $configurableMenusFeature, string $userGroup)

Return HTML to list the users belonging to a given user group

Parameters

ConfigurableMenusFeature $configurableMenusFeature
string $userGroup

user group name

Return Value

string

HTML to list the users belonging to a given user group

static string getHtmlForUserGroupsTable(ConfigurableMenusFeature $configurableMenusFeature)

Returns HTML for the 'user groups' table

Parameters

ConfigurableMenusFeature $configurableMenusFeature

Return Value

string

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.

Parameters

array $row

row of usergroup table

UserGroupLevel $level

Return Value

string

comma separated list of allowed menu tab names

static void delete(DatabaseInterface $dbi, ConfigurableMenusFeature $configurableMenusFeature, string $userGroupName)

No description

Parameters

DatabaseInterface $dbi
ConfigurableMenusFeature $configurableMenusFeature
string $userGroupName

Return Value

void

static string getHtmlToEditUserGroup(ConfigurableMenusFeature $configurableMenusFeature, string|null $userGroup = null)

Returns HTML for add/edit user group dialog

Parameters

ConfigurableMenusFeature $configurableMenusFeature
string|null $userGroup

name of the user group in case of editing

Return Value

string

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.

Parameters

string $title

title of the checkbox group

UserGroupLevel $level
array $selected

array of selected allowed tabs

Return Value

string

HTML for checkbox groups

static void edit(ConfigurableMenusFeature $configurableMenusFeature, string $userGroup, bool $new = false)

Add/update a user group with allowed menu tabs.

Parameters

ConfigurableMenusFeature $configurableMenusFeature
string $userGroup

user group name

bool $new

whether this is a new user group

Return Value

void