JoinClause
JOIN句を組み立てるクラス
Table of Contents
$join | ||
---|---|---|
$alias | ||
$conditionType | ||
$condition | ||
$indexBy | ||
$leftJoin | ||
$whereCustomizer | JoinClauseWhereCustomizer | |
$orderByCustomizer | JoinClauseOrderByCustomizer | |
__construct() | JoinClause constructor. | mixed |
innerJoin() | INNER JOIN用のファクトリメソッド。 | JoinClause |
leftJoin() | LEFT JOIN用のファクトリメソッド。 | JoinClause |
addWhere() | WHERE句を追加します。 | $this |
addOrderBy() | ORDER BY句を追加します。 | $this |
build() | mixed |
Properties
$join
private
mixed
$join
$alias
private
mixed
$alias
$conditionType
private
mixed
$conditionType
$condition
private
mixed
$condition
$indexBy
private
mixed
$indexBy
$leftJoin
private
mixed
$leftJoin
= false
$whereCustomizer
private
JoinClauseWhereCustomizer
$whereCustomizer
$orderByCustomizer
private
JoinClauseOrderByCustomizer
$orderByCustomizer
Methods
__construct()
JoinClause constructor.
private
__construct(
$leftJoin :
bool
, $join :
, $alias :
[, $conditionType :
= null ]
[, $condition :
= null ]
[, $indexBy :
= null ]
)
: mixed
Parameters
Return values
mixedinnerJoin()
INNER JOIN用のファクトリメソッド。
public
static innerJoin(
$join :
, $alias :
[, $conditionType :
= null ]
[, $condition :
= null ]
[, $indexBy :
= null ]
)
: JoinClause
Parameters
Tags
Return values
JoinClauseleftJoin()
LEFT JOIN用のファクトリメソッド。
public
static leftJoin(
$join :
, $alias :
[, $conditionType :
= null ]
[, $condition :
= null ]
[, $indexBy :
= null ]
)
: JoinClause
Parameters
Tags
Return values
JoinClauseaddWhere()
WHERE句を追加します。
public
addWhere(
$whereClause :
WhereClause
)
: $this
Parameters
- $whereClause : WhereClause
Return values
$thisaddOrderBy()
ORDER BY句を追加します。
public
addOrderBy(
$orderByClause :
OrderByClause
)
: $this
Parameters
- $orderByClause : OrderByClause
Return values
$thisbuild()
public
build(
$builder :
QueryBuilder
)
: mixed
Parameters
- $builder : QueryBuilder