\Pop\Db\GatewayAbstractGateway

Abstract Gateway class

Summary

Methods
Properties
Constants
__construct()
setTable()
setPrimaryKeys()
getSql()
sql()
getTable()
getPrimaryKeys()
getTableInfo()
No public properties found
No constants found
getOrder()
$table
$primaryKeys
$sql
N/A
No private methods found
No private properties found
N/A

Properties

$table

$table : string

Table

Type

string

$primaryKeys

$primaryKeys : array

Primary keys

Type

array

Methods

__construct()

__construct(\Pop\Db\Sql  $sql, string  $table = null) : \Pop\Db\Gateway\AbstractGateway

Constructor

Instantiate the AbstractGateway object.

Parameters

\Pop\Db\Sql $sql
string $table

Returns

\Pop\Db\Gateway\AbstractGateway

setPrimaryKeys()

setPrimaryKeys(mixed  $keys) : \Pop\Db\Gateway\AbstractGateway

Set the primary keys

Parameters

mixed $keys

Returns

\Pop\Db\Gateway\AbstractGateway

getSql()

getSql() : \Pop\Db\Sql

Get the SQL object

Returns

\Pop\Db\Sql

sql()

sql() : \Pop\Db\Sql

Get the SQL object (alias method)

Returns

\Pop\Db\Sql

getTable()

getTable() : string

Get the table name

Returns

string

getPrimaryKeys()

getPrimaryKeys() : array

Get the primary keys

Returns

array

getTableInfo()

getTableInfo() : array

Get table info

Returns

array

getOrder()

getOrder(string  $order) : array

Get the order by values

Parameters

string $order

Returns

array