database manager for XOOPS installer
Methods | ||
---|---|---|
public
|
__construct()
Db_manager constructor.
Db_manager constructor. |
# |
public
|
isConnectable(): bool
|
# |
public
|
dbExists(): bool
|
# |
public
|
createDB(): bool
|
# |
public
|
queryFromFile($sql_file_path): bool
|
# |
public
|
report(): string
|
# |
public
|
query($sql): mixed
|
# |
public
|
prefix($table): mixed
|
# |
public
|
fetchArray($ret): mixed
|
# |
public
|
insert($table, $query): bool
|
# |
public
|
isError(): bool
|
# |
public
|
deleteTables($tables): array
|
# |
public
|
tableExists($table): bool
|
# |
Properties | |||
---|---|---|---|
public
|
|
$s_tables = []
|
# |
public
|
|
$f_tables = []
|
# |
public
|
|
$db
|
# |
public
|
|
$successStrings = [
'create' => TABLE_CREATED,
'insert' => ROWS_INSERTED,
'alter' => TABLE_ALTERED,
'drop' => TABLE_DROPPED,
]
|
# |
public
|
|
$failureStrings = [
'create' => TABLE_NOT_CREATED,
'insert' => ROWS_FAILED,
'alter' => TABLE_NOT_ALTERED,
'drop' => TABLE_NOT_DROPPED,
]
|
# |