Dotclear 2.24
|
MySQLi Database Driver. More...
Public Member Functions | |
db_connect (string $host, string $user, string $password, string $database) | |
db_pconnect (string $host, string $user, string $password, string $database) | |
db_close ($handle) | |
db_version ($handle) | |
db_query ($handle, string $query) | |
db_exec ($handle, string $query) | |
db_num_fields ($res) | |
db_num_rows ($res) | |
db_field_name ($res, int $position) | |
db_field_type ($res, int $position) | |
db_fetch_assoc ($res) | |
db_result_seek ($res, int $row) | |
db_changes ($handle, $res) | |
db_last_error ($handle) | |
db_escape_string ($str, $handle=null) | |
db_write_lock (string $table) | |
db_unlock () | |
vacuum (string $table) | |
dateFormat (string $field, string $pattern) | |
orderBy (... $args) | |
lexFields (... $args) | |
concat (... $args) | |
escapeSystem (string $str) | |
![]() | |
__construct (string $host, string $database, string $user='', string $password='', bool $persistent=false) | |
close () | |
driver () | |
syntax () | |
version () | |
database () | |
link () | |
select (string $sql) | |
nullRecord () | |
execute (string $sql) | |
begin () | |
commit () | |
rollback () | |
writeLock (string $table) | |
unlock () | |
vacuum (string $table) | |
changes () | |
error () | |
dateFormat (string $field, string $pattern) | |
limit ($arg1, ?int $arg2=null) | |
in ($in) | |
orderBy (... $args) | |
lexFields (... $args) | |
concat (... $args) | |
escape ($i) | |
escapeSystem (string $str) | |
openCursor (string $table) | |
db_connect (string $host, string $user, string $password, string $database) | |
db_pconnect (string $host, string $user, string $password, string $database) | |
db_close ($handle) | |
db_version ($handle) | |
db_query ($handle, string $query) | |
db_exec ($handle, string $query) | |
db_num_fields ($res) | |
db_num_rows ($res) | |
db_field_name ($res, int $position) | |
db_field_type ($res, int $position) | |
db_fetch_assoc ($res) | |
db_result_seek ($res, int $row) | |
db_changes ($handle, $res) | |
db_last_error ($handle) | |
db_escape_string ($str, $handle=null) | |
db_write_lock (string $table) | |
db_unlock () | |
Static Public Attributes | |
static | $weak_locks = true |
Protected Member Functions | |
_convert_types (string $id) | |
Protected Attributes | |
$__driver = 'mysqli' | |
$__syntax = 'mysql' | |
![]() | |
$__driver | |
$__syntax | |
$__version | |
string: Database version More... | |
$__link | |
$__last_result | |
$__database | |
Additional Inherited Members | |
![]() | |
static | init (string $driver, string $host, string $database, string $user='', string $password='', bool $persistent=false) |
MySQLi Database Driver.
See the dbLayer
documentation for common methods.
db_connect | ( | string | $host, |
string | $user, | ||
string | $password, | ||
string | $database | ||
) |
Open a DB connection
string | $host | The host |
string | $user | The user |
string | $password | The password |
string | $database | The database |
Exception |
Reimplemented from i_dbLayer.
Reimplemented in mysqlimb4Connection.
Referenced by db_pconnect().
db_pconnect | ( | string | $host, |
string | $user, | ||
string | $password, | ||
string | $database | ||
) |
Open a persistant DB connection
string | $host | The host |
string | $user | The user |
string | $password | The password |
string | $database | The database |
Reimplemented from i_dbLayer.
Reimplemented in mysqlimb4Connection.
References db_connect().
db_close | ( | $handle | ) |
db_version | ( | $handle | ) |
db_query | ( | $handle, | |
string | $query | ||
) |
Execute a DB query
mixed | $handle | The handle |
string | $query | The query |
Exception |
Reimplemented from i_dbLayer.
References db_last_error().
Referenced by db_exec().
db_exec | ( | $handle, | |
string | $query | ||
) |
db_query() alias
mixed | $handle | The handle |
string | $query | The query |
Reimplemented from i_dbLayer.
References db_query().
db_num_fields | ( | $res | ) |
Get number of fields in result
mixed | $res | The resource |
Reimplemented from i_dbLayer.
db_num_rows | ( | $res | ) |
Get number of rows in result
mixed | $res | The resource |
Reimplemented from i_dbLayer.
db_field_name | ( | $res, | |
int | $position | ||
) |
Get field name in result
mixed | $res | The resource |
int | $position | The position |
Reimplemented from i_dbLayer.
db_field_type | ( | $res, | |
int | $position | ||
) |
Get field type in result
mixed | $res | The resource |
int | $position | The position |
Reimplemented from i_dbLayer.
References _convert_types().
db_fetch_assoc | ( | $res | ) |
db_result_seek | ( | $res, | |
int | $row | ||
) |
Seek in result
mixed | $res | The resource |
int | $row | The row |
Reimplemented from i_dbLayer.
db_changes | ( | $handle, | |
$res | |||
) |
Get number of affected rows in last INSERT, DELETE or UPDATE query
mixed | $handle | The DB handle |
mixed | $res | The resource |
Reimplemented from i_dbLayer.
db_last_error | ( | $handle | ) |
Get last query error, if any
mixed | $handle | The handle |
Reimplemented from i_dbLayer.
Referenced by db_query().
db_escape_string | ( | $str, | |
$handle = null |
|||
) |
Escape a string (to be used in a SQL query)
mixed | $str | The string |
mixed | $handle | The DB handle |
Reimplemented from i_dbLayer.
db_write_lock | ( | string | $table | ) |
Locks a table
string | $table | The table |
Reimplemented from i_dbLayer.
References escapeSystem(), and dbLayer\execute().
db_unlock | ( | ) |
vacuum | ( | string | $table | ) |
Optimize a table
string | $table | The table |
Reimplemented from dbLayer.
References escapeSystem(), and dbLayer\execute().
dateFormat | ( | string | $field, |
string | $pattern | ||
) |
Get a date to be used in SQL query
string | $field | The field |
string | $pattern | The pattern |
Reimplemented from dbLayer.
References dbLayer\escape().
orderBy | ( | $args | ) |
Get an ORDER BY fragment to be used in a SQL query
mixed | ...$args The arguments |
Reimplemented from dbLayer.
Reimplemented in mysqlimb4Connection.
lexFields | ( | $args | ) |
Get fields concerned by lexical sort
mixed | ...$args The arguments |
Reimplemented from dbLayer.
Reimplemented in mysqlimb4Connection.
concat | ( | $args | ) |
Get a CONCAT fragment
mixed | ...$args The arguments |
Reimplemented from dbLayer.
escapeSystem | ( | string | $str | ) |
Escape a string
string | $str | The string |
Reimplemented from dbLayer.
Referenced by db_write_lock(), and vacuum().
|
protected |
|
static |
Referenced by dcCore\__construct().
|
protected |
|
protected |