\Pop\Db\SqlJoin

Join class

Summary

Methods
Properties
Constants
__construct()
getForeignTable()
getColumns()
getJoin()
render()
__toString()
No public properties found
No constants found
No protected methods found
$allowedJoins
$sql
$foreignTable
$columns
$join
N/A
No private methods found
No private properties found
N/A

Properties

$allowedJoins

$allowedJoins : array

Allowed JOIN keywords

Type

array

$foreignTable

$foreignTable : string

Foreign table

Type

string

$columns

$columns : array

Columns

Type

array

$join

$join : string

Join type

Type

string

Methods

__construct()

__construct(\Pop\Db\Sql\AbstractSql  $sql, mixed  $foreignTable, array  $columns, string  $join = 'JOIN') 

Constructor

Instantiate the JOIN object

Parameters

\Pop\Db\Sql\AbstractSql $sql
mixed $foreignTable
array $columns
string $join

getForeignTable()

getForeignTable() : string

Get foreign table

Returns

string

getColumns()

getColumns() : array

Get columns

Returns

array

getJoin()

getJoin() : string

Get JOIN type

Returns

string

render()

render() : string

Render JOIN

Returns

string

__toString()

__toString() : string

Return JOIN as string

Returns

string