PHP 클래스 NilPortugues\Sql\QueryBuilder\Manipulation\Select

상속: extends NilPortugues\Sql\QueryBuilder\Manipulation\AbstractBaseQuery
파일 보기 프로젝트 열기: nilportugues/sql-query-builder 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$camelCaseTableName string
$columnQuery NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery
$groupBy array
$having NilPortugues\Sql\QueryBuilder\Syntax\Where
$havingOperator string
$isDistinct boolean
$joinQuery JoinQuery
$parentQuery ParentQuery
$table NilPortugues\Sql\QueryBuilder\Syntax\Table
$where NilPortugues\Sql\QueryBuilder\Syntax\Where

공개 메소드들

메소드 설명
__clone ( ) : Select This __clone method will create an exact clone but without the object references due to the fact these are lost in the process of serialization and un-serialization.
__construct ( string $table = null, array $columns = null )
addJoin ( Select $select, string $selfColumn, string $refColumn ) : Select
count ( string $columnName = '*', string $alias = '' ) : NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery
crossJoin ( string $table, string $selfColumn = null, string $refColumn = null, string[] $columns = [] ) : Select
distinct ( )
getAllColumns ( ) : array
getAllHavings ( ) : array
getAllJoins ( ) : array
getAllOrderBy ( ) : array
getAllWheres ( ) : array Returns all the Where conditions to the BuilderInterface class in order to write the SQL WHERE statement.
getColumnFuncs ( ) : array
getColumnSelects ( ) : array
getColumnValues ( ) : array
getColumns ( ) : NilPortugues\Sql\QueryBuilder\Syntax\Column
getGroupBy ( ) : array
getHavingOperator ( ) : string
getJoinCondition ( ) : NilPortugues\Sql\QueryBuilder\Syntax\Where
getJoinType ( ) : string
getParentQuery ( ) : ParentQuery
groupBy ( array $columns )
having ( $havingOperator = 'AND' ) : NilPortugues\Sql\QueryBuilder\Syntax\Where
innerJoin ( string $table, string $selfColumn = null, string $refColumn = null, string[] $columns = [] ) : Select
isCount ( ) : boolean
isDistinct ( ) : boolean
isJoin ( boolean $isJoin = true ) : JoinQuery Transforms Select in a joint.
isJoinSelect ( ) : boolean
join ( string $table, string $selfColumn = null, string $refColumn = null, string[] $columns = [], string $joinType = null ) : Select
joinCondition ( ) : NilPortugues\Sql\QueryBuilder\Syntax\Where WHERE constrains used for the ON clause of a (LEFT/RIGHT/INNER/CROSS) JOIN.
leftJoin ( string $table, string $selfColumn = null, string $refColumn = null, string[] $columns = [] ) : Select
limit ( integer $start, $count )
on ( ) : NilPortugues\Sql\QueryBuilder\Syntax\Where Alias to joinCondition.
orderBy ( string $column, string $direction = OrderBy::ASC, null $table = null )
partName ( ) : string
rightJoin ( string $table, string $selfColumn = null, string $refColumn = null, string[] $columns = [] ) : Select
setColumns ( array $columns ) : NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery Sets the column names used to write the SELECT statement.
setFunctionAsColumn ( string $funcName, array $arguments, string $alias ) : NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery Allows calculation on columns using predefined SQL functions.
setJoinType ( string | null $joinType )
setParentQuery ( Select $parentQuery )
setSelectAsColumn ( array $column ) : NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery Allows setting a Select query as a column value.
setValueAsColumn ( string $value, string $alias ) : NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery Allows setting a value to the select statement.

보호된 메소드들

메소드 설명
getAllOperation ( null | NilPortugues\Sql\QueryBuilder\Syntax\Where $data, string $operation ) : array

메소드 상세

__clone() 공개 메소드

This __clone method will create an exact clone but without the object references due to the fact these are lost in the process of serialization and un-serialization.
public __clone ( ) : Select
리턴 Select

__construct() 공개 메소드

public __construct ( string $table = null, array $columns = null )
$table string
$columns array

addJoin() 공개 메소드

public addJoin ( Select $select, string $selfColumn, string $refColumn ) : Select
$select Select
$selfColumn string
$refColumn string
리턴 Select

count() 공개 메소드

public count ( string $columnName = '*', string $alias = '' ) : NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery
$columnName string
$alias string
리턴 NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery

crossJoin() 공개 메소드

public crossJoin ( string $table, string $selfColumn = null, string $refColumn = null, string[] $columns = [] ) : Select
$table string
$selfColumn string
$refColumn string
$columns string[]
리턴 Select

distinct() 공개 메소드

public distinct ( )

getAllColumns() 공개 메소드

public getAllColumns ( ) : array
리턴 array

getAllHavings() 공개 메소드

public getAllHavings ( ) : array
리턴 array

getAllJoins() 공개 메소드

public getAllJoins ( ) : array
리턴 array

getAllOperation() 보호된 메소드

protected getAllOperation ( null | NilPortugues\Sql\QueryBuilder\Syntax\Where $data, string $operation ) : array
$data null | NilPortugues\Sql\QueryBuilder\Syntax\Where
$operation string
리턴 array

getAllOrderBy() 공개 메소드

public getAllOrderBy ( ) : array
리턴 array

getAllWheres() 공개 메소드

Returns all the Where conditions to the BuilderInterface class in order to write the SQL WHERE statement.
public getAllWheres ( ) : array
리턴 array

getColumnFuncs() 공개 메소드

public getColumnFuncs ( ) : array
리턴 array

getColumnSelects() 공개 메소드

public getColumnSelects ( ) : array
리턴 array

getColumnValues() 공개 메소드

public getColumnValues ( ) : array
리턴 array

getColumns() 공개 메소드

public getColumns ( ) : NilPortugues\Sql\QueryBuilder\Syntax\Column
리턴 NilPortugues\Sql\QueryBuilder\Syntax\Column

getGroupBy() 공개 메소드

public getGroupBy ( ) : array
리턴 array

getHavingOperator() 공개 메소드

public getHavingOperator ( ) : string
리턴 string

getJoinCondition() 공개 메소드

public getJoinCondition ( ) : NilPortugues\Sql\QueryBuilder\Syntax\Where
리턴 NilPortugues\Sql\QueryBuilder\Syntax\Where

getJoinType() 공개 메소드

public getJoinType ( ) : string
리턴 string

getParentQuery() 공개 메소드

public getParentQuery ( ) : ParentQuery
리턴 ParentQuery

groupBy() 공개 메소드

public groupBy ( array $columns )
$columns array

having() 공개 메소드

public having ( $havingOperator = 'AND' ) : NilPortugues\Sql\QueryBuilder\Syntax\Where
$havingOperator
리턴 NilPortugues\Sql\QueryBuilder\Syntax\Where

innerJoin() 공개 메소드

public innerJoin ( string $table, string $selfColumn = null, string $refColumn = null, string[] $columns = [] ) : Select
$table string
$selfColumn string
$refColumn string
$columns string[]
리턴 Select

isCount() 공개 메소드

public isCount ( ) : boolean
리턴 boolean

isDistinct() 공개 메소드

public isDistinct ( ) : boolean
리턴 boolean

isJoin() 공개 메소드

Transforms Select in a joint.
public isJoin ( boolean $isJoin = true ) : JoinQuery
$isJoin boolean
리턴 JoinQuery

isJoinSelect() 공개 메소드

public isJoinSelect ( ) : boolean
리턴 boolean

join() 공개 메소드

public join ( string $table, string $selfColumn = null, string $refColumn = null, string[] $columns = [], string $joinType = null ) : Select
$table string
$selfColumn string
$refColumn string
$columns string[]
$joinType string
리턴 Select

joinCondition() 공개 메소드

WHERE constrains used for the ON clause of a (LEFT/RIGHT/INNER/CROSS) JOIN.
public joinCondition ( ) : NilPortugues\Sql\QueryBuilder\Syntax\Where
리턴 NilPortugues\Sql\QueryBuilder\Syntax\Where

leftJoin() 공개 메소드

public leftJoin ( string $table, string $selfColumn = null, string $refColumn = null, string[] $columns = [] ) : Select
$table string
$selfColumn string
$refColumn string
$columns string[]
리턴 Select

limit() 공개 메소드

public limit ( integer $start, $count )
$start integer
$count

on() 공개 메소드

Alias to joinCondition.
public on ( ) : NilPortugues\Sql\QueryBuilder\Syntax\Where
리턴 NilPortugues\Sql\QueryBuilder\Syntax\Where

orderBy() 공개 메소드

public orderBy ( string $column, string $direction = OrderBy::ASC, null $table = null )
$column string
$direction string
$table null

partName() 공개 메소드

public partName ( ) : string
리턴 string

rightJoin() 공개 메소드

public rightJoin ( string $table, string $selfColumn = null, string $refColumn = null, string[] $columns = [] ) : Select
$table string
$selfColumn string
$refColumn string
$columns string[]
리턴 Select

setColumns() 공개 메소드

If key is set, key is the column's alias. Value is always the column names.
public setColumns ( array $columns ) : NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery
$columns array
리턴 NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery

setFunctionAsColumn() 공개 메소드

Allows calculation on columns using predefined SQL functions.
public setFunctionAsColumn ( string $funcName, array $arguments, string $alias ) : NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery
$funcName string
$arguments array
$alias string
리턴 NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery

setJoinType() 공개 메소드

public setJoinType ( string | null $joinType )
$joinType string | null

setParentQuery() 공개 메소드

public setParentQuery ( Select $parentQuery )
$parentQuery Select

setSelectAsColumn() 공개 메소드

Allows setting a Select query as a column value.
public setSelectAsColumn ( array $column ) : NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery
$column array
리턴 NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery

setValueAsColumn() 공개 메소드

Allows setting a value to the select statement.
public setValueAsColumn ( string $value, string $alias ) : NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery
$value string
$alias string
리턴 NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery

프로퍼티 상세

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

protected string $camelCaseTableName
리턴 string

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

protected ColumnQuery,NilPortugues\Sql\QueryBuilder\Manipulation $columnQuery
리턴 NilPortugues\Sql\QueryBuilder\Manipulation\ColumnQuery

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

protected array $groupBy
리턴 array

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

protected Where,NilPortugues\Sql\QueryBuilder\Syntax $having
리턴 NilPortugues\Sql\QueryBuilder\Syntax\Where

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

protected string $havingOperator
리턴 string

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

protected bool $isDistinct
리턴 boolean

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

protected JoinQuery,NilPortugues\Sql\QueryBuilder\Manipulation $joinQuery
리턴 JoinQuery

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

protected ParentQuery $parentQuery
리턴 ParentQuery

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

protected Table,NilPortugues\Sql\QueryBuilder\Syntax $table
리턴 NilPortugues\Sql\QueryBuilder\Syntax\Table

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

protected Where,NilPortugues\Sql\QueryBuilder\Syntax $where
리턴 NilPortugues\Sql\QueryBuilder\Syntax\Where