Свойство | Type | Description | |
---|---|---|---|
$dbdriver | string | Database driver | |
$schema | string | Database schema |
Свойство | Type | Description | |
---|---|---|---|
$_random_keyword | array | ORDER BY random keyword |
Méthode | Description | |
---|---|---|
__construct ( array $params ) : void | Class constructor | |
affected_rows ( ) : integer | Affected Rows | |
db_connect ( boolean $persistent = FALSE ) : resource | Database connection | |
error ( ) : array | Error | |
escape ( string $str ) : mixed | "Smart" Escape String | |
field_data ( string $table ) : array | Returns an object with field data | |
insert_id ( ) : string | Insert ID | |
is_write_type ( $sql ) : boolean | Determines if a query is a "write" type. | |
order_by ( string $orderby, string $direction = '', boolean $escape = NULL ) : object | ORDER BY | |
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 | |
_delete ( string $table ) : string | Delete statement | |
_escape_str ( $str ) : string | Platform-dependant string escape | |
_execute ( string $sql ) : resource | Execute the query | |
_limit ( string $sql ) : string | LIMIT | |
_list_columns ( string $table = '' ) : string | List column query | |
_list_tables ( boolean $prefix_limit = FALSE ) : string | Show table query | |
_trans_begin ( ) : boolean | Begin Transaction | |
_trans_commit ( ) : boolean | Commit Transaction | |
_trans_rollback ( ) : boolean | Rollback Transaction | |
_update ( string $table, array $values ) : string | Update statement | |
_update_batch ( string $table, array $values, string $index ) : string | Update_Batch statement |
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 _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 _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 |
public is_write_type ( $sql ) : boolean | ||
Résultat | boolean |
protected array $_random_keyword | ||
Résultat | array |