InstallCommand
extends CConsoleCommand
in package
Table of Contents
Properties
- $connection : CDbConnection
- $noisy : bool
- If true, output trace.
Methods
- getDBConnectionStringProperty() : string|null
- output() : void
- run() : int
- createDatabase() : void
- Create database with name?
- setNoisy() : void
- Set noisy = true if fifth argument is given.
- createPermissions() : mixed
- createUser() : mixed
- prepareCharset() : mixed
Properties
$connection
public
CDbConnection
$connection
$noisy
If true, output trace.
public
bool
$noisy
= \false
Methods
getDBConnectionStringProperty()
public
getDBConnectionStringProperty(string $sProperty[, string $connectionString = null ]) : string|null
Parameters
- $sProperty : string
- $connectionString : string = null
Return values
string|nulloutput()
public
output(string $msg) : void
Parameters
- $msg : string
run()
public
run(array<string|int, mixed> $args) : int
Parameters
- $args : array<string|int, mixed>
Tags
Return values
intcreateDatabase()
Create database with name?
protected
createDatabase() : void
Tags
setNoisy()
Set noisy = true if fifth argument is given.
protected
setNoisy(array<string|int, mixed> $args) : void
Parameters
- $args : array<string|int, mixed>
createPermissions()
private
createPermissions() : mixed
createUser()
private
createUser(mixed $data) : mixed
Parameters
- $data : mixed
prepareCharset()
private
prepareCharset() : mixed