Ka Extensions

Db
in component

The class is DEPRECATED. We moved our functions to the standard DB class by extending it.

Table of Contents

Properties

Methods

__construct()  : mixed
delete()  : mixed
insert()  : mixed
insertOrUpdate()  : mixed
query()  : mixed
queryFirst()  : mixed
queryHash()  : mixed
queryInsert()  : mixed
queryUpdate()  : mixed
safeQuery()  : mixed
update()  : mixed

Properties

$db

protected mixed $db = null

Methods

__construct()

public __construct(mixed $db) : mixed
Parameters
$db : mixed

delete()

public delete(mixed $table, mixed $cond) : mixed
Parameters
$table : mixed
$cond : mixed

insert()

public insert(mixed $tbl, mixed $arr[, mixed $is_replace = false ][, mixed $update_on_duplicate = false ]) : mixed
Parameters
$tbl : mixed
$arr : mixed
$is_replace : mixed = false
$update_on_duplicate : mixed = false

insertOrUpdate()

public insertOrUpdate(mixed $table, mixed $data) : mixed
Parameters
$table : mixed
$data : mixed

query()

public query(mixed $sql) : mixed
Parameters
$sql : mixed

queryFirst()

public queryFirst(mixed $qry) : mixed
Parameters
$qry : mixed

queryHash()

public queryHash(mixed $qry_string, mixed $key) : mixed
Parameters
$qry_string : mixed
$key : mixed

queryInsert()

public queryInsert(mixed $tbl, mixed $arr[, mixed $is_replace = false ]) : mixed
Parameters
$tbl : mixed
$arr : mixed
$is_replace : mixed = false

queryUpdate()

public queryUpdate(mixed $tbl, mixed $arr[, mixed $where = '' ]) : mixed
Parameters
$tbl : mixed
$arr : mixed
$where : mixed = ''

safeQuery()

public safeQuery(mixed $query) : mixed
Parameters
$query : mixed

update()

public update(mixed $tbl, mixed $arr[, mixed $condition = '' ]) : mixed
Parameters
$tbl : mixed
$arr : mixed
$condition : mixed = ''

        
On this page

Search results