Property | Type | Description | |
---|---|---|---|
$_globals | array |
Method | Description | |
---|---|---|
__construct ( $engineName = "mysql" ) | ||
delete ( string | array | object $table, string | array | object $condition ) : integer | boolean | delete | |
error ( ) | ||
execute ( string $sql ) : boolean | integer | array | ||
init ( array | object $params ) | construct | |
insert ( string | array | object $table, string | array | object $item = "", boolean $isreplace = false, boolean $isdelayed = false, string | array | object $update = [] ) : integer | boolean | insert | |
select ( string | array | object $table, string | array | object $condition = "", string | array | object $item = "", string | array | object $groupby = "", string | array | object $orderby = "", string | array | object $leftjoin = "" ) : |
select data from db | |
selectOne ( $table, $condition = "", $item = "", $groupby = "", $orderby = "", $leftjoin = "" ) | select one from select result | |
setCount ( $count ) | is count | |
setLimit ( $limit ) | page size | |
setPage ( $page ) | page number | |
update ( string | array | object $table, string | array | object $condition, string | array | object $item ) : integer | boolean | update data |
Method | Description | |
---|---|---|
__addsqlslashes ( $k ) | ||
__array2string ( $mixed, $alais = false ) | ||
__query ( string $sql ) : Array | query | |
__quote ( $condition, $split = "AND" ) | ||
__setEngine ( $engineName ) |
public insert ( string | array | object $table, string | array | object $item = "", boolean $isreplace = false, boolean $isdelayed = false, string | array | object $update = [] ) : integer | boolean | ||
$table | string | array | object | |
$item | string | array | object | |
$isreplace | boolean | |
$isdelayed | boolean | |
$update | string | array | object | |
return | integer | boolean | int(lastInsertId or affectedRows) |
public select ( string | array | object $table, string | array | object $condition = "", string | array | object $item = "", string | array | object $groupby = "", string | array | object $orderby = "", string | array | object $leftjoin = "" ) : |
||
$table | string | array | object | |
$condition | string | array | object | |
$item | string | array | object | |
$groupby | string | array | object | |
$orderby | string | array | object | |
$leftjoin | string | array | object | |
return | object || Boolean false |
public selectOne ( $table, $condition = "", $item = "", $groupby = "", $orderby = "", $leftjoin = "" ) |