class UserPrivilegesFactory (View source)

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

Methods

__construct(DatabaseInterface $dbi)

No description

void
checkRequiredPrivilegesForAdjust(UserPrivileges $userPrivileges, ShowGrants $showGrants)

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

getPrivileges()

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

Details

__construct(DatabaseInterface $dbi)

No description

Parameters

DatabaseInterface $dbi

void checkRequiredPrivilegesForAdjust(UserPrivileges $userPrivileges, ShowGrants $showGrants)

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

Parameters

UserPrivileges $userPrivileges
ShowGrants $showGrants

Return Value

void

UserPrivileges getPrivileges()

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

Return Value

UserPrivileges