Свойство | Тип | Описание | |
---|---|---|---|
$_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 = "" ) |