API - XOOPS 2.5.11 Beta 2
By monxoops.fr
Db_manager Class Reference

Public Member Functions

 __construct ()
 
 isConnectable ()
 
 dbExists ()
 
 createDB ()
 
 queryFromFile ($sql_file_path)
 
 report ()
 
 query ($sql)
 
 prefix ($table)
 
 fetchArray ($ret)
 
 insert ($table, $query)
 
 isError ()
 
 deleteTables ($tables)
 
 tableExists ($table)
 
 __construct ()
 
 isConnectable ()
 
 dbExists ()
 
 createDB ()
 
 queryFromFile ($sql_file_path)
 
 report ()
 
 query ($sql)
 
 prefix ($table)
 
 fetchArray ($ret)
 
 insert ($table, $query)
 
 isError ()
 
 deleteTables ($tables)
 
 tableExists ($table)
 

Data Fields

 $s_tables = array()
 
 $f_tables = array()
 
 $db
 
 $successStrings
 
 $failureStrings
 

Detailed Description

database manager for XOOPS installer

Author
Haruki Setoyama haruk.nosp@m.i@pl.nosp@m.anewa.nosp@m.ve.o.nosp@m.rg

Constructor & Destructor Documentation

◆ __construct() [1/2]

__construct ( )

Db_manager constructor.

Here is the call graph for this function:

◆ __construct() [2/2]

__construct ( )
Here is the call graph for this function:

Member Function Documentation

◆ createDB() [1/2]

createDB ( )
Returns
bool

◆ createDB() [2/2]

createDB ( )
Returns
bool

◆ dbExists() [1/2]

dbExists ( )
Returns
bool

◆ dbExists() [2/2]

dbExists ( )
Returns
bool

◆ deleteTables() [1/2]

deleteTables (   $tables)
Parameters
$tables
Returns
array

◆ deleteTables() [2/2]

deleteTables (   $tables)
Parameters
$tables
Returns
array

◆ fetchArray() [1/2]

fetchArray (   $ret)
Parameters
$ret
Returns
mixed

◆ fetchArray() [2/2]

fetchArray (   $ret)
Parameters
$ret
Returns
mixed

◆ insert() [1/2]

insert (   $table,
  $query 
)
Parameters
$table
$query
Returns
bool

◆ insert() [2/2]

insert (   $table,
  $query 
)
Parameters
$table
$query
Returns
bool

◆ isConnectable() [1/2]

isConnectable ( )
Returns
bool

◆ isConnectable() [2/2]

isConnectable ( )
Returns
bool

◆ isError() [1/2]

isError ( )
Returns
bool

◆ isError() [2/2]

isError ( )
Returns
bool

◆ prefix() [1/2]

prefix (   $table)
Parameters
$table
Returns
mixed

◆ prefix() [2/2]

prefix (   $table)
Parameters
$table
Returns
mixed

◆ query() [1/2]

query (   $sql)
Parameters
$sql
Returns
mixed

◆ query() [2/2]

query (   $sql)
Parameters
$sql
Returns
mixed

◆ queryFromFile() [1/2]

queryFromFile (   $sql_file_path)
Parameters
$sql_file_path
Returns
bool
Here is the call graph for this function:

◆ queryFromFile() [2/2]

queryFromFile (   $sql_file_path)
Parameters
$sql_file_path
Returns
bool
Here is the call graph for this function:

◆ report() [1/2]

report ( )
Returns
string

◆ report() [2/2]

report ( )
Returns
string

◆ tableExists() [1/2]

tableExists (   $table)
Parameters
$table
Returns
bool

◆ tableExists() [2/2]

tableExists (   $table)
Parameters
$table
Returns
bool

Field Documentation

◆ $db

$db

◆ $f_tables

$f_tables = array()

◆ $failureStrings

$failureStrings
Initial value:
= array(
'create' => TABLE_NOT_CREATED,
'insert' => ROWS_FAILED,
'alter' => TABLE_NOT_ALTERED,
'drop' => TABLE_NOT_DROPPED)
const TABLE_NOT_CREATED
Definition: install.php:120
const TABLE_NOT_DROPPED
Definition: install.php:127
const ROWS_FAILED
Definition: install.php:123
const TABLE_NOT_ALTERED
Definition: install.php:125

◆ $s_tables

$s_tables = array()

◆ $successStrings

$successStrings
Initial value:
= array(
'create' => TABLE_CREATED,
'insert' => ROWS_INSERTED,
'alter' => TABLE_ALTERED,
'drop' => TABLE_DROPPED)
const TABLE_ALTERED
Definition: install.php:124
const TABLE_CREATED
Definition: install.php:121
const ROWS_INSERTED
Definition: install.php:122
const TABLE_DROPPED
Definition: install.php:126

The documentation for this class was generated from the following files: