$table
$table : string
Table
Row gateway class
$sql : \Pop\Db\Sql
Sql object
__construct(\Pop\Db\Sql $sql, mixed $keys = null, string $table = null) : \Pop\Db\Gateway\Row
Constructor
Instantiate the Gateway\Row object.
\Pop\Db\Sql | $sql | |
mixed | $keys | |
string | $table |
setTable(string $table) : \Pop\Db\Gateway\AbstractGateway
Set the table
string | $table |
setPrimaryKeys(mixed $keys) : \Pop\Db\Gateway\AbstractGateway
Set the primary keys
mixed | $keys |
getSql() : \Pop\Db\Sql
Get the SQL object
sql() : \Pop\Db\Sql
Get the SQL object (alias method)
setColumns(array $columns = array()) : \Pop\Db\Gateway\Row
Set the columns
array | $columns |
save(boolean $new = false) : \Pop\Db\Gateway\Row
Save (insert new or update existing) row in the table
boolean | $new |
delete() : \Pop\Db\Gateway\Row
Delete row from the table