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 $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, boolean $new = false)

Add/update a user group with allowed menu tabs.

Details

at line 29
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 73
static string getHtmlForUserGroupsTable()

Returns HTML for the 'user groups' table

Return Value

string HTML for the 'user groups' table

at line 177
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 198
static void delete(string $userGroup)

Deletes a user group

Parameters

string $userGroup user group name

Return Value

void

at line 223
static string getHtmlToEditUserGroup(string $userGroup = null)

Returns HTML for add/edit user group dialog

Parameters

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

Return Value

string HTML for add/edit user group dialog

at line 327
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 354
static void edit(string $userGroup, boolean $new = false)

Add/update a user group with allowed menu tabs.

Parameters

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

Return Value

void