PHP 클래스 NukeViet\Core\Database

상속: extends pdo
파일 보기 프로젝트 열기: nukeviet/nukeviet

공개 프로퍼티들

프로퍼티 타입 설명
$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