프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_globals | array |
메소드 | 설명 | |
---|---|---|
__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 |
메소드 | 설명 | |
---|---|---|
__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 | |
리턴 | 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 | |
리턴 | object || Boolean false |
public selectOne ( $table, $condition = "", $item = "", $groupby = "", $orderby = "", $leftjoin = "" ) |