class CheckUserPrivileges (View source)

PhpMyAdmin\CheckUserPrivileges class

Methods

__construct(DatabaseInterface $dbi)

No description

array
getItemsFromShowGrantsRow(string $row)

Extracts details from a result row of a SHOW GRANT query

void
checkRequiredPrivilegesForAdjust(string $showGrantsString, string $showGrantsDbName, string $showGrantsTableName)

Check if user has required privileges for performing 'Adjust privileges' operations

void
getPrivileges()

Get user's global privileges and some db-specific privileges

Details

__construct(DatabaseInterface $dbi)

No description

Parameters

DatabaseInterface $dbi

DatabaseInterface object

array getItemsFromShowGrantsRow(string $row)

Extracts details from a result row of a SHOW GRANT query

Parameters

string $row

grant row

Return Value

array

void checkRequiredPrivilegesForAdjust(string $showGrantsString, string $showGrantsDbName, string $showGrantsTableName)

Check if user has required privileges for performing 'Adjust privileges' operations

Parameters

string $showGrantsString

string containing grants for user

string $showGrantsDbName

name of db extracted from grant string

string $showGrantsTableName

name of table extracted from grant string

Return Value

void

void getPrivileges()

Get user's global privileges and some db-specific privileges

Return Value

void