class PermissionControlledMySQLDatabaseManager extends MySQLDatabaseManager implements ManagesDatabaseUsers (View source)

Traits

Properties

protected string $connection from  MySQLDatabaseManager
static $grants

Methods

Connection
database()

No description

void
setConnection(string $connection)

Set the DB connection that should be used by the tenant database manager.

bool
createDatabase(TenantWithDatabase $tenant)

No description

bool
deleteDatabase(TenantWithDatabase $tenant)

No description

bool
databaseExists(string $name)

Does a database exist.

array
makeConnectionConfig(array $baseConfig, string $databaseName)

Make a DB connection config array.

bool
createUser(DatabaseConfig $databaseConfig)

No description

bool
isVersion8()

No description

bool
deleteUser(DatabaseConfig $databaseConfig)

No description

bool
userExists(string $username)

No description

Details

protected Connection database()

No description

Return Value

Connection

void setConnection(string $connection)

Set the DB connection that should be used by the tenant database manager.

Parameters

string $connection

Return Value

void

Exceptions

NoConnectionSetException

bool createDatabase(TenantWithDatabase $tenant)

No description

Parameters

TenantWithDatabase $tenant

Return Value

bool

bool deleteDatabase(TenantWithDatabase $tenant)

No description

Parameters

TenantWithDatabase $tenant

Return Value

bool

bool databaseExists(string $name)

Does a database exist.

Parameters

string $name

Return Value

bool

array makeConnectionConfig(array $baseConfig, string $databaseName)

Make a DB connection config array.

Parameters

array $baseConfig
string $databaseName

Return Value

array

bool createUser(DatabaseConfig $databaseConfig)

No description

Parameters

DatabaseConfig $databaseConfig

Return Value

bool

protected bool isVersion8()

No description

Return Value

bool

bool deleteUser(DatabaseConfig $databaseConfig)

No description

Parameters

DatabaseConfig $databaseConfig

Return Value

bool

bool userExists(string $username)

No description

Parameters

string $username

Return Value

bool