Class cDbDriverMysqli
This class contains functions for database interaction based on MySQLi in CONTENIDO.
Configurable via global $cfg['db']['connection'] configuration as follows:
- host (string) Hostname or ip - database (string) Database name - user (string) User name - password (string) User password - options (array) Optional, MySQLi options array - socket (int) Optional, socket - port (int) Optional, port - flags (int) Optional, flags - charset (string) Optional, connection charset see http://www.php.net/manual/en/mysqli.real-connect.php
- cDbDriverAbstract
- cDbDriverMysqli
Package: Core\Database
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Dominik Ziegler
Located at classes/db/class.db.driver.mysqli.php
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Dominik Ziegler
Located at classes/db/class.db.driver.mysqli.php
public
boolean
|
|
public
object|resource|integer|null
|
|
public
string
|
#
buildInsert( string $tableName, array $fields )
Builds a insert query. String values in passed fields parameter will be escaped automatically. |
public
string
|
#
buildUpdate( string $tableName, array $fields, array $whereClauses )
Builds a update query. String values in passed fields and whereClauses parameter will be escaped automatically. |
public
|
|
public
integer
|
#
nextRecord( )
Moves the result to the next record, if exists and returns the status of the movement |
public
Ambigous
|
#
getResultObject( string $className = NULL )
This method returns the current result set as object or NULL if no result set is left. If optional param $className is set, the result object is an instance of class $className. |
public
integer
|
|
public
integer
|
|
public
integer
|
|
public
|
|
|
public
string
|
|
public
integer
|
|
public
array
|
#
getMetaData( string $tableName, boolean $full = false )
Parses the table structure and generates metadata from it. |
public
array
|
|
public
array
|
|
public
integer
|
|
public
string
|
|
public
|
__construct(),
getHandler(),
setHandler()
|
protected
array
|
$_dataTypes | array(
0 => 'decimal',
1 => 'tinyint',
2 => 'smallint',
3 => 'int',
4 => 'float',
5 => 'double',
7 => 'timestamp',
8 => 'bigint',
9 => 'mediumint',
10 => 'date',
11 => 'time',
12 => 'datetime',
13 => 'year',
252 => 'blob', // text, blob, tinyblob,mediumblob, etc...
253 => 'string', // varchar and char
254 => 'enum'
) |
#
List of data types. |
$_dbCfg,
$_handler
|