Свойство | Type | Description | |
---|---|---|---|
$compress | boolean | Compression flag | |
$dbdriver | string | Database driver | |
$delete_hack | boolean | Whether to use the MySQL "delete hack" which allows the number of affected rows to be shown. Uses a preg_replace when enabled, adding a bit more processing to all queries. | |
$stricton | boolean | Whether we're running in strict SQL mode. |
Свойство | Type | Description | |
---|---|---|---|
$_escape_char | string | Identifier escape character |
Méthode | Description | |
---|---|---|
__construct ( array $params ) : void | Class constructor | |
affected_rows ( ) : integer | Affected Rows | |
db_connect ( boolean $persistent = FALSE ) : resource | Non-persistent database connection | |
db_select ( string $database = '' ) : boolean | Select the database | |
error ( ) : array | Error | |
field_data ( string $table ) : array | Returns an object with field data | |
insert_id ( ) : integer | Insert ID | |
reconnect ( ) : void | Reconnect | |
version ( ) : string | Database version number |
Méthode | Description | |
---|---|---|
_close ( ) : void | Close DB Connection | |
_db_set_charset ( string $charset ) : boolean | Set client character set | |
_escape_str ( $str ) : string | Platform-dependant string escape | |
_execute ( string $sql ) : mixed | Execute the query | |
_from_tables ( ) : string | FROM tables | |
_list_columns ( string $table = '' ) : string | Show column query | |
_list_tables ( boolean $prefix_limit = FALSE ) : string | List table query | |
_prep_query ( string $sql ) : string | Prep the query | |
_trans_begin ( ) : boolean | Begin Transaction | |
_trans_commit ( ) : boolean | Commit Transaction | |
_trans_rollback ( ) : boolean | Rollback Transaction |
public __construct ( array $params ) : void | ||
$params | array | |
Résultat | void |
protected _db_set_charset ( string $charset ) : boolean | ||
$charset | string | |
Résultat | boolean |
protected _escape_str ( $str ) : string | ||
Résultat | string |
protected _from_tables ( ) : string | ||
Résultat | string |
protected _list_columns ( string $table = '' ) : string | ||
$table | string | |
Résultat | string |
protected _list_tables ( boolean $prefix_limit = FALSE ) : string | ||
$prefix_limit | boolean | |
Résultat | string |
protected _prep_query ( string $sql ) : string | ||
$sql | string | an SQL query |
Résultat | string |
protected _trans_begin ( ) : boolean | ||
Résultat | boolean |
protected _trans_commit ( ) : boolean | ||
Résultat | boolean |
protected _trans_rollback ( ) : boolean | ||
Résultat | boolean |
public db_connect ( boolean $persistent = FALSE ) : resource | ||
$persistent | boolean | |
Résultat | resource |
public field_data ( string $table ) : array | ||
$table | string | |
Résultat | array |
protected string $_escape_char | ||
Résultat | string |
public bool $delete_hack | ||
Résultat | boolean |
public bool $stricton | ||
Résultat | boolean |