PHP Класс NukeViet\Core\Database

Наследование: extends pdo
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$connect
$dbname
$dbtype
$server
$user

Открытые методы

Метод Описание
__construct ( array $config )
affected_rows_count ( mixed $_sql, mixed $data = [] ) Database::affected_rows_count() Get the number of affected rows by the last INSERT, UPDATE, REPLACE or DELETE query
columns_add ( string $table, string $column, string $type, integer $length = null, boolean $null = true, string $default = null )
columns_array ( string $table ) : array
dblikeescape ( mixed $value )
from ( string $from = '' ) : Database from for the query.
group ( string $group = '' ) : Database group for the query.
having ( string $having = '' ) : Database having for the query.
insert_id ( $_sql, string $column = '', array $data = [] ) : integer | false Insert a row into the database return primary key column
join ( $join_table_on ) : Database join for the query.
limit ( integer $limit ) : Database sets the limit for the query.
offset ( integer $offset ) : Database sets the offset for the query.
order ( string $order = '' ) : Database order for the query.
select ( string $select = '' ) : Database select for the query.
sql ( )
sqlreset ( ) : Database reset query.
where ( string $where = '' ) : Database where for the query.

Описание методов

__construct() публичный Метод

public __construct ( array $config )
$config array

affected_rows_count() публичный Метод

Database::affected_rows_count() Get the number of affected rows by the last INSERT, UPDATE, REPLACE or DELETE query
public affected_rows_count ( mixed $_sql, mixed $data = [] )
$_sql mixed
$data mixed

columns_add() публичный Метод

public columns_add ( string $table, string $column, string $type, integer $length = null, boolean $null = true, string $default = null )
$table string
$column string
$type string
$length integer
$null boolean
$default string

columns_array() публичный Метод

public columns_array ( string $table ) : array
$table string
Результат array

dblikeescape() публичный Метод

public dblikeescape ( mixed $value )
$value mixed

from() публичный Метод

from for the query.
public from ( string $from = '' ) : Database
$from string
Результат Database $this

group() публичный Метод

group for the query.
public group ( string $group = '' ) : Database
$group string
Результат Database $this

having() публичный Метод

having for the query.
public having ( string $having = '' ) : Database
$having string
Результат Database $this

insert_id() публичный Метод

Insert a row into the database return primary key column
public insert_id ( $_sql, string $column = '', array $data = [] ) : integer | false
$column string The name of the primary key column
$data array
Результат integer | false

join() публичный Метод

join for the query.
public join ( $join_table_on ) : Database
Результат Database $this

limit() публичный Метод

sets the limit for the query.
public limit ( integer $limit ) : Database
$limit integer
Результат Database $this

offset() публичный Метод

sets the offset for the query.
public offset ( integer $offset ) : Database
$offset integer
Результат Database $this

order() публичный Метод

order for the query.
public order ( string $order = '' ) : Database
$order string
Результат Database $this

select() публичный Метод

select for the query.
public select ( string $select = '' ) : Database
$select string
Результат Database $this

sql() публичный Метод

public sql ( )

sqlreset() публичный Метод

reset query.
public sqlreset ( ) : Database
Результат Database $this

where() публичный Метод

where for the query.
public where ( string $where = '' ) : Database
$where string
Результат Database $this

Описание свойств

$connect публичное свойство

public $connect

$dbname публичное свойство

public $dbname

$dbtype публичное свойство

public $dbtype

$server публичное свойство

public $server

$user публичное свойство

public $user