Methods
__call()
__call($method, $arguments) : mixed
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::__call() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::__call() |
Parameters
$method
$arguments
Exceptions
Returns
mixed
__clone
__clone()
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::__clone() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::__clone() |
__construct()
__construct(\Zend\EventManager\EventManagerInterface $eventManager, \Zend\Db\TableGateway\Feature\EventFeature\TableGatewayEvent $tableGatewayEvent)
__get
__get(string $property) : mixed
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::__get() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::__get() |
Parameters
$property
string
Exceptions
Returns
mixed
__set()
__set(string $property, mixed $value) : mixed
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::__set() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::__set() |
Parameters
$property
string
$value
mixed
Exceptions
Returns
mixed
Delete
delete(\Zend\Db\Sql\Where | \Closure | string | array $where) : int
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::delete() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::delete() |
Parameters
Returns
int
deleteWith()
deleteWith(\Zend\Db\Sql\Delete $delete) : mixed
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::deleteWith() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::deleteWith() |
Parameters
Returns
mixed
Get adapter
getAdapter() : \Zend\Db\Adapter\AdapterInterface
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::getAdapter() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::getAdapter() |
Returns
getColumns()
getColumns() : array
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::getColumns() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::getColumns() |
Returns
array
getFeatureSet()
getFeatureSet() : \Zend\Db\TableGateway\Feature\FeatureSet
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::getFeatureSet() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::getFeatureSet() |
Returns
Get last insert value
getLastInsertValue() : int
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::getLastInsertValue() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::getLastInsertValue() |
Returns
int
getMagicMethodSpecifications()
getMagicMethodSpecifications()
Inherited
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::getMagicMethodSpecifications() |
getName()
getName()
Inherited
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::getName() |
Get select result prototype
getResultSetPrototype() : \Zend\Db\ResultSet\ResultSet
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::getResultSetPrototype() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::getResultSetPrototype() |
Returns
getSql()
getSql() : \Zend\Db\Sql\Sql
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::getSql() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::getSql() |
Returns
Get table name
getTable() : string
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::getTable() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::getTable() |
Returns
string
Initialize
initialize() : null
Inherited
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::initialize() |
Exceptions
Returns
null
Insert
insert(array $set) : int
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::insert() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::insert() |
Parameters
$set
array
Returns
int
insertWith()
insertWith(\Zend\Db\Sql\Insert $insert) : mixed
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::insertWith() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::insertWith() |
Parameters
Returns
mixed
isInitialized()
isInitialized() : bool
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::isInitialized() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::isInitialized() |
Returns
bool
Trigger the "postDelete" event
postDelete(\Zend\Db\Adapter\Driver\StatementInterface $statement, \Zend\Db\Adapter\Driver\ResultInterface $result) : void
Triggers the "postDelete" event mapping the following parameters:
- $statement as "statement"
- $result as "result"
Parameters
Trigger the "postInitialize" event
postInitialize() : void
Trigger the "postInsert" event
postInsert(\Zend\Db\Adapter\Driver\StatementInterface $statement, \Zend\Db\Adapter\Driver\ResultInterface $result) : void
Triggers the "postInsert" event mapping the following parameters:
- $statement as "statement"
- $result as "result"
Parameters
Trigger the "postSelect" event
postSelect(\Zend\Db\Adapter\Driver\StatementInterface $statement, \Zend\Db\Adapter\Driver\ResultInterface $result, \Zend\Db\ResultSet\ResultSetInterface $resultSet) : void
Triggers the "postSelect" event mapping the following parameters:
- $statement as "statement"
- $result as "result"
- $resultSet as "result_set"
Parameters
Trigger the "postUpdate" event
postUpdate(\Zend\Db\Adapter\Driver\StatementInterface $statement, \Zend\Db\Adapter\Driver\ResultInterface $result) : void
Triggers the "postUpdate" event mapping the following parameters:
- $statement as "statement"
- $result as "result"
Parameters
Trigger the "preDelete" event
preDelete(\Zend\Db\Sql\Delete $delete) : void
Triggers the "preDelete" event mapping the following parameters:
- $delete as "delete"
Parameters
Initialize feature and trigger "preInitialize" event
preInitialize() : void
Ensures that the composed TableGateway has identifiers based on the
class name, and that the event target is set to the TableGateway
instance. It then triggers the "preInitialize" event.
Trigger the "preInsert" event
preInsert(\Zend\Db\Sql\Insert $insert) : void
Triggers the "preInsert" event mapping the following parameters:
- $insert as "insert"
Parameters
Trigger the "preSelect" event
preSelect(\Zend\Db\Sql\Select $select) : void
Triggers the "preSelect" event mapping the following parameters:
- $select as "select"
Parameters
Trigger the "preUpdate" event
preUpdate(\Zend\Db\Sql\Update $update) : void
Triggers the "preUpdate" event mapping the following parameters:
- $update as "update"
Parameters
selectWith()
selectWith(\Zend\Db\Sql\Select $select) : null | \Zend\Db\ResultSet\ResultSetInterface
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::selectWith() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::selectWith() |
Parameters
Exceptions
Returns
setTableGateway()
setTableGateway(\Zend\Db\TableGateway\AbstractTableGateway $tableGateway)
Inherited
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::setTableGateway() |
Parameters
$tableGateway
Update
update(array $set, string | array | \Closure $where) : int
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::update() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::update() |
Parameters
$set
array
Returns
int
updateWith()
updateWith(\Zend\Db\Sql\Update $update) : mixed
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::updateWith() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::updateWith() |
Parameters
Returns
mixed
executeDelete()
executeDelete(\Zend\Db\Sql\Delete $delete) : mixed
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::executeDelete() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::executeDelete() |
Parameters
Exceptions
Returns
mixed
executeInsert()
executeInsert(\Zend\Db\Sql\Insert $insert) : mixed
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::executeInsert() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::executeInsert() |
Parameters
Exceptions
Returns
mixed
executeSelect()
executeSelect(\Zend\Db\Sql\Select $select) : \Zend\Db\ResultSet\ResultSet
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::executeSelect() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::executeSelect() |
Parameters
Exceptions
Returns
executeUpdate()
executeUpdate(\Zend\Db\Sql\Update $update) : mixed
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::executeUpdate() |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::executeUpdate() |
Parameters
Exceptions
Returns
mixed
Properties
$adapter
$adapter : \Zend\Db\Adapter\AdapterInterface
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::$$adapter |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::$$adapter |
$columns
$columns : array
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::$$columns |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::$$columns |
$featureSet
$featureSet : \Zend\Db\TableGateway\Feature\FeatureSet
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::$$featureSet |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::$$featureSet |
$isInitialized
$isInitialized : bool
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::$$isInitialized |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::$$isInitialized |
$lastInsertValue
$lastInsertValue : int
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::$$lastInsertValue |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::$$lastInsertValue |
$resultSetPrototype
$resultSetPrototype : \Zend\Db\ResultSet\ResultSetInterface
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::$$resultSetPrototype |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::$$resultSetPrototype |
$sharedData
$sharedData
Inherited
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::$$sharedData |
$sql
$sql : \Zend\Db\Sql\Sql
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::$$sql |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::$$sql |
$table
$table : string | array | \Zend\Db\Sql\TableIdentifier
Inherited
inherited_from |
\Zend\Db\TableGateway\AbstractTableGateway::$$table |
inherited_from |
\Zend\Db\TableGateway\Feature\AbstractFeature::$$table |
Constants
EVENT_POST_DELETE
EVENT_POST_DELETE
EVENT_POST_INITIALIZE
EVENT_POST_INITIALIZE
EVENT_POST_INSERT
EVENT_POST_INSERT
EVENT_POST_SELECT
EVENT_POST_SELECT
EVENT_POST_UPDATE
EVENT_POST_UPDATE
EVENT_PRE_DELETE
EVENT_PRE_DELETE
EVENT_PRE_INITIALIZE
EVENT_PRE_INITIALIZE
EVENT_PRE_INSERT
EVENT_PRE_INSERT
EVENT_PRE_SELECT
EVENT_PRE_SELECT
EVENT_PRE_UPDATE
EVENT_PRE_UPDATE