PHP 클래스 Pop\Db\Sql\Select

저자: Nick Sagona, III ([email protected])
상속: extends AbstractSql
파일 보기 프로젝트 열기: nicksagona/PopPHP

보호된 프로퍼티들

프로퍼티 타입 설명
$allowedJoins boolean Allowed JOIN keywords
$distinct boolean Distinct keyword
$functions boolean SQL functions
$groupBy string GROUP BY value
$having Predicate HAVING predicate object
$joins array JOIN clauses
$where Predicate WHERE predicate object

공개 메소드들

메소드 설명
distinct ( ) : Select Set the DISTINCT keyword
groupBy ( mixed $by ) : Select Set the GROUP BY value
having ( ) : Predicate Set the HAVING clause
join ( mixed $tableToJoin, mixed $commonColumn, string $typeOfJoin = 'JOIN' ) : Select Set the JOIN clause
render ( ) : string Render the SELECT statement
where ( boolean $reset = false ) : Predicate Set the WHERE clause

보호된 메소드들

메소드 설명
getLimitAndOffset ( ) : array Method to get the limit and offset

메소드 상세

distinct() 공개 메소드

Set the DISTINCT keyword
public distinct ( ) : Select
리턴 Select

getLimitAndOffset() 보호된 메소드

Method to get the limit and offset
protected getLimitAndOffset ( ) : array
리턴 array

groupBy() 공개 메소드

Set the GROUP BY value
public groupBy ( mixed $by ) : Select
$by mixed
리턴 Select

having() 공개 메소드

Set the HAVING clause
public having ( ) : Predicate
리턴 Predicate

join() 공개 메소드

Set the JOIN clause
public join ( mixed $tableToJoin, mixed $commonColumn, string $typeOfJoin = 'JOIN' ) : Select
$tableToJoin mixed
$commonColumn mixed
$typeOfJoin string
리턴 Select

render() 공개 메소드

Render the SELECT statement
public render ( ) : string
리턴 string

where() 공개 메소드

Set the WHERE clause
public where ( boolean $reset = false ) : Predicate
$reset boolean
리턴 Predicate

프로퍼티 상세

$allowedJoins 보호되어 있는 정적으로 프로퍼티

Allowed JOIN keywords
protected static bool $allowedJoins
리턴 boolean

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

Distinct keyword
protected bool $distinct
리턴 boolean

$functions 보호되어 있는 정적으로 프로퍼티

SQL functions
protected static bool $functions
리턴 boolean

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

GROUP BY value
protected string $groupBy
리턴 string

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

HAVING predicate object
protected Predicate,Pop\Db\Sql $having
리턴 Predicate

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

JOIN clauses
protected array $joins
리턴 array

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

WHERE predicate object
protected Predicate,Pop\Db\Sql $where
리턴 Predicate