class UserGroups

PhpMyAdmin\Server\UserGroups class

Methods

static string
getHtmlForListingUsersofAGroup(string $userGroup)

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

static string
getHtmlForUserGroupsTable()

Returns HTML for the 'user groups' table

static string
getAllowedTabNames(array $row, string $level)

Returns the list of allowed menu tab names based on a data row from usergroup table.

static void
delete(string $userGroup)

Deletes a user group

static string
getHtmlToEditUserGroup(string|null $userGroup = null)

Returns HTML for add/edit user group dialog

static string
getTabList(string $title, string $level, array $selected)

Returns HTML for checkbox groups to choose tabs of 'server', 'db' or 'table' levels.

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

Add/update a user group with allowed menu tabs.

Details

at line 32
static string getHtmlForListingUsersofAGroup(string $userGroup)

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

Parameters

string $userGroup user group name

Return Value

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

at line 75
static string getHtmlForUserGroupsTable()

Returns HTML for the 'user groups' table

Return Value

string HTML for the 'user groups' table

at line 160
static string getAllowedTabNames(array $row, string $level)

Returns the list of allowed menu tab names based on a data row from usergroup table.

Parameters

array $row row of usergroup table
string $level 'server', 'db' or 'table'

Return Value

string comma separated list of allowed menu tab names

at line 179
static void delete(string $userGroup)

Deletes a user group

Parameters

string $userGroup user group name

Return Value

void

at line 206
static string getHtmlToEditUserGroup(string|null $userGroup = null)

Returns HTML for add/edit user group dialog

Parameters

string|null $userGroup name of the user group in case of editing

Return Value

string HTML for add/edit user group dialog

at line 289
static string getTabList(string $title, string $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
string $level 'server', 'db' or 'table'
array $selected array of selected allowed tabs

Return Value

string HTML for checkbox groups

at line 314
static void edit(string $userGroup, bool $new = false)

Add/update a user group with allowed menu tabs.

Parameters

string $userGroup user group name
bool $new whether this is a new user group

Return Value

void