PHP 클래스 Drivers\Abstraction\Sql

파일 보기 프로젝트 열기: panada/panada

공개 프로퍼티들

프로퍼티 타입 설명
$clientFlags
$insertId return data type option: object, array and iterator (pointer)
$instantiateClass
$newLink
$persistentConnection

보호된 프로퍼티들

프로퍼티 타입 설명
$column
$config
$connection
$criteria
$distinct
$groupBy
$isHaving
$isQuotes
$joins
$joinsOn
$joinsType
$lastError
$lastQuery
$limit
$link
$offset
$order
$orderBy
$returnType
$tables
$throwError

공개 메소드들

메소드 설명
command ( ) : string Build the SQL statement.
delete ( $table, $where = null ) : boolean Abstraction for delete.
distinct ( ) : object API for ".
fetchAs ( string $returnType = 'object' ) : object Flag to get return type. The options is: object, array and iterator.
from ( ) : object API for ".
getAll ( $table = false, $where = [], $fields = [], $returnType = false ) : object Previously called get_results.
getLastQuery ( ) : string Get last query.
getOne ( $table = false, $where = [], $fields = [], $returnType = false ) : object Previously called get_row.
getVar ( $query = null ) : string | integer Get value directly from single field. Previusly called get_var().
groupBy ( ) : object API for ".
having ( string $column, string $operator, string $value, mix $separator = false ) API for ".
insert ( string $table, array $data = [] ) : boolean Abstraction for insert.
join ( string $table, string $type = null ) API for ".
limit ( $limit, $offset = null ) : object API for ".
on ( string $column, string $operator, string $value, mix $separator = false ) API for ".
orderBy ( $column, $order = null ) : object API for ".
select ( ) : object API for "SELECT .
setThrowError ( boolean $set = false ) Throw the error instead handle it automaticly.
update ( string $table, array $dat, array $where = null ) : boolean Abstraction for update.
where ( string $column, string $operator, string $value, string $separator = false ) : object API for ".

보호된 메소드들

메소드 설명
createCriteria ( string $column, string $operator, string $value, mix $separator ) Create criteria condition. It use in on, where and having method.
printError ( ) : string Print the error.

메소드 상세

command() 공개 메소드

Build the SQL statement.
public command ( ) : string
리턴 string The complited SQL statement

createCriteria() 보호된 메소드

Create criteria condition. It use in on, where and having method.
protected createCriteria ( string $column, string $operator, string $value, mix $separator )
$column string
$operator string
$value string
$separator mix

delete() 공개 메소드

Abstraction for delete.
public delete ( $table, $where = null ) : boolean
리턴 boolean

distinct() 공개 메소드

.. DISTINCT " statement.
public distinct ( ) : object
리턴 object

fetchAs() 공개 메소드

Flag to get return type. The options is: object, array and iterator.
public fetchAs ( string $returnType = 'object' ) : object
$returnType string
리턴 object

from() 공개 메소드

..FROM ... " statement.
public from ( ) : object
리턴 object

getAll() 공개 메소드

Previously called get_results.
public getAll ( $table = false, $where = [], $fields = [], $returnType = false ) : object
리턴 object

getLastQuery() 공개 메소드

Get last query.
public getLastQuery ( ) : string
리턴 string

getOne() 공개 메소드

Previously called get_row.
public getOne ( $table = false, $where = [], $fields = [], $returnType = false ) : object
리턴 object

getVar() 공개 메소드

Get value directly from single field. Previusly called get_var().
public getVar ( $query = null ) : string | integer
리턴 string | integer Depen on it record value.

groupBy() 공개 메소드

.. GROUP BY ... " statement.
public groupBy ( ) : object
리턴 object

having() 공개 메소드

.. HAVING..." statement.
public having ( string $column, string $operator, string $value, mix $separator = false )
$column string
$operator string
$value string
$separator mix

insert() 공개 메소드

Abstraction for insert.
public insert ( string $table, array $data = [] ) : boolean
$table string
$data array
리턴 boolean

join() 공개 메소드

.. JOIN ..." statement.
public join ( string $table, string $type = null )
$table string Table to join
$type string Type of join: LEFT, RIGHT, INNER

limit() 공개 메소드

.. LIMIT ..." statement.
public limit ( $limit, $offset = null ) : object
리턴 object

on() 공개 메소드

.. JOIN ON..." statement.
public on ( string $column, string $operator, string $value, mix $separator = false )
$column string
$operator string
$value string
$separator mix

orderBy() 공개 메소드

.. ORDER BY..." statement.
public orderBy ( $column, $order = null ) : object
리턴 object

printError() 보호된 메소드

Print the error.
protected printError ( ) : string
리턴 string

select() 공개 메소드

.. " statement.
public select ( ) : object
리턴 object

setThrowError() 공개 메소드

User should catch this error for there own purpose.
public setThrowError ( boolean $set = false )
$set boolean

update() 공개 메소드

Abstraction for update.
public update ( string $table, array $dat, array $where = null ) : boolean
$table string
$dat array
$where array
리턴 boolean

where() 공개 메소드

.. WHERE ... " statement.
public where ( string $column, string $operator, string $value, string $separator = false ) : object
$column string Column name
$operator string SQL operator string: =,<,>,<= dll
$value string Where value
$separator string Such as: AND, OR
리턴 object

프로퍼티 상세

$clientFlags 공개적으로 프로퍼티

public $clientFlags

$column 보호되어 있는 프로퍼티

protected $column

$config 보호되어 있는 프로퍼티

protected $config

$connection 보호되어 있는 프로퍼티

protected $connection

$criteria 보호되어 있는 프로퍼티

protected $criteria

$distinct 보호되어 있는 프로퍼티

protected $distinct

$groupBy 보호되어 있는 프로퍼티

protected $groupBy

$insertId 공개적으로 프로퍼티

return data type option: object, array and iterator (pointer)
public $insertId

$instantiateClass 공개적으로 프로퍼티

public $instantiateClass

$isHaving 보호되어 있는 프로퍼티

protected $isHaving

$isQuotes 보호되어 있는 프로퍼티

protected $isQuotes

$joins 보호되어 있는 프로퍼티

protected $joins

$joinsOn 보호되어 있는 프로퍼티

protected $joinsOn

$joinsType 보호되어 있는 프로퍼티

protected $joinsType

$lastError 보호되어 있는 프로퍼티

protected $lastError

$lastQuery 보호되어 있는 프로퍼티

protected $lastQuery

$limit 보호되어 있는 프로퍼티

protected $limit

$offset 보호되어 있는 프로퍼티

protected $offset

$order 보호되어 있는 프로퍼티

protected $order

$orderBy 보호되어 있는 프로퍼티

protected $orderBy

$persistentConnection 공개적으로 프로퍼티

public $persistentConnection

$returnType 보호되어 있는 프로퍼티

protected $returnType

$tables 보호되어 있는 프로퍼티

protected $tables

$throwError 보호되어 있는 프로퍼티

protected $throwError