CaMykS  1.0-20181201
 All Classes Files Functions Variables Pages
Public Member Functions | List of all members
MySQLDBConnection Class Reference
Inheritance diagram for MySQLDBConnection:
Inheritance graph
[legend]
Collaboration diagram for MySQLDBConnection:
Collaboration graph
[legend]

Public Member Functions

 connect_server ($host='localhost', $login='', $pwd='', $driver='')
 
 disconnect_server ()
 
 get_serverVersion ()
 
 select_database ($name)
 
 create_database ($name, $charset='utf8')
 
 database_exists ($name)
 
 dump_database ($file=false)
 
 get_databaseSize ()
 
 get_databaseSummary ()
 
 get_tableList ()
 
 create_table ($name, $fields, $charset='utf8', $autoId=true, $primaryKeys=array('id'))
 
 execute_query ($sql='', $resName='defaultRes')
 
 get_queryGeneratedId ($resName='defaultRes')
 
 get_queryDataLine ($resName='defaultRes')
 
 get_queryNumDataLine ($resName='defaultRes')
 
 get_queryError ($resName='defaultRes')
 
 get_queryAffectedRows ($resName='defaultRes')
 
 get_queryFieldCount ($resName='defaultRes')
 
 get_queryFieldType ($fIndex=0, $resName='defaultRes')
 
 close_ressource ($resName='defaultRes')
 
 escape_string ($string)
 
- Public Member Functions inherited from CDBConnection
 __construct ()
 
 connect_server ($host='localhost', $login='', $pwd='', $driver='')
 
 disconnect_server ()
 
 is_connectionActive ()
 
 check_status ($name)
 
 get_serverVersion ()
 
 select_database ($name)
 
 create_database ($name, $charset='utf8')
 
 database_exists ($name)
 
 dump_database ($file=false)
 
 get_databaseSize ()
 
 get_databaseSummary ()
 
 get_tableList ()
 
 create_table ($name, $fields, $charset='utf8', $autoId=true, $primaryKeys=array('id'))
 
 execute_query ($sql='', $resName='defaultRes')
 
 get_queryGeneratedId ($resName='defaultRes')
 
 get_queryDataLine ($resName='defaultRes')
 
 get_queryNumDataLine ($resName='defaultRes')
 
 get_queryError ($resName='defaultRes')
 
 get_queryAffectedRows ($resName='defaultRes')
 
 get_queryFieldCount ($resName='defaultRes')
 
 get_queryFieldType ($fIndex=0, $resName='defaultRes')
 
 close_ressource ($resName='defaultRes')
 
 escape_string ($string)
 
 get_insertExtra ()
 

Additional Inherited Members

- Protected Member Functions inherited from CDBConnection
 get_resName ()
 
- Protected Attributes inherited from CDBConnection
 $active = false
 CDBConnection status. More...
 
 $connection = null
 CDBConnection database ressource. More...
 
 $queryRes = array()
 Query ressources. More...
 
 $dbName = null
 Name of the database. More...
 

Detailed Description

MySQLDBConnection class.

Author
CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Member Function Documentation

MySQLDBConnection::close_ressource (   $resName = 'defaultRes')

Close ressource.

Parameters
string$resName
Returns
boolean result
MySQLDBConnection::connect_server (   $host = 'localhost',
  $login = '',
  $pwd = '',
  $driver = '' 
)

Connect to server.

Parameters
string$host
string$login
string$pwd
string$driver
Returns
boolean success
MySQLDBConnection::create_database (   $name,
  $charset = 'utf8' 
)

Create a database.

Parameters
string$name
string$charset
Returns
boolean
MySQLDBConnection::create_table (   $name,
  $fields,
  $charset = 'utf8',
  $autoId = true,
  $primaryKeys = array('id') 
)

Create a table in the database.

Parameters
string$name
array$fields
string$charset
boolean$autoId
array$primaryKeys
Returns
boolean success
MySQLDBConnection::database_exists (   $name)

Check if a database exists.

Parameters
string$name
Returns
boolean
MySQLDBConnection::disconnect_server ( )

Close server connection.

Returns
boolean success
MySQLDBConnection::dump_database (   $file = false)

Dump database.

Parameters
mixed$file
Returns
mixed
MySQLDBConnection::escape_string (   $string)

Return escaped string.

Parameters
string$string
Returns
string
MySQLDBConnection::execute_query (   $sql = '',
  $resName = 'defaultRes' 
)

Execute query.

Parameters
string$sql
string$resName
Returns
boolean success
MySQLDBConnection::get_databaseSize ( )

Return database size.

Returns
integer
MySQLDBConnection::get_databaseSummary ( )

Return database information summary.

Returns
array
MySQLDBConnection::get_queryAffectedRows (   $resName = 'defaultRes')

Return latest query affected rows.

Parameters
string$resName
Returns
integer
MySQLDBConnection::get_queryDataLine (   $resName = 'defaultRes')

Return next query data line.

Parameters
string$resName
Returns
array
MySQLDBConnection::get_queryError (   $resName = 'defaultRes')

Return latest query error.

Parameters
string$resName
Returns
string
MySQLDBConnection::get_queryFieldCount (   $resName = 'defaultRes')

Return latest query field count.

Parameters
string$resName
Returns
integer
MySQLDBConnection::get_queryFieldType (   $fIndex = 0,
  $resName = 'defaultRes' 
)

Return latest query field type.

Parameters
integer$fIndex
string$resName
Returns
string
MySQLDBConnection::get_queryGeneratedId (   $resName = 'defaultRes')

Return id generated by last query.

Parameters
string$resName
Returns
integer
MySQLDBConnection::get_queryNumDataLine (   $resName = 'defaultRes')

Return next query data line with numeric indexes.

Parameters
string$resName
Returns
array
MySQLDBConnection::get_serverVersion ( )

Return database engine version.

Returns
string
MySQLDBConnection::get_tableList ( )

Return available table list.

Returns
array
MySQLDBConnection::select_database (   $name)

Select database.

Parameters
string$namethe database name
Returns
boolean

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