class CheckUserPrivileges

PhpMyAdmin\CheckUserPrivileges class

Methods

__construct(DatabaseInterface $dbi)

Constructor

array
getItemsFromShowGrantsRow(string $row)

Extracts details from a result row of a SHOW GRANT query

void
checkRequiredPrivilegesForAdjust(string $show_grants_str, string $show_grants_dbname, string $show_grants_tblname)

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

void
getPrivileges()

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

Details

at line 31
__construct(DatabaseInterface $dbi)

Constructor

Parameters

DatabaseInterface $dbi DatabaseInterface object

at line 43
array getItemsFromShowGrantsRow(string $row)

Extracts details from a result row of a SHOW GRANT query

Parameters

string $row grant row

Return Value

array

at line 98
void checkRequiredPrivilegesForAdjust(string $show_grants_str, string $show_grants_dbname, string $show_grants_tblname)

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

Parameters

string $show_grants_str string containing grants for user
string $show_grants_dbname name of db extracted from grant string
string $show_grants_tblname name of table extracted from grant string

Return Value

void

at line 347
void getPrivileges()

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

Return Value

void