Fully Qualified Name: | Zend\Db\TableGateway\Feature\EventFeature |
Extends: | AbstractFeature |
Implements: | EventFeatureEventsInterface, EventsCapableInterface |
Parameter Name | Type | Description |
---|---|---|
$arguments | ||
$method | ||
$arguments |
Returns: mixed
__clone
Returns:
Parameter Name | Type | Description |
---|---|---|
$eventManager | \EventManagerInterface | |
$tableGatewayEvent | \EventFeature\TableGatewayEvent |
Returns:
__get
Parameter Name | Type | Description |
---|---|---|
$property | string |
Returns: mixed
Parameter Name | Type | Description |
---|---|---|
$property | string | |
$value | mixed |
Returns: mixed
Delete
Parameter Name | Type | Description |
---|---|---|
$where | \Where|\Closure|string|array |
Returns: int
Parameter Name | Type | Description |
---|---|---|
$delete | \Delete |
Returns: int
Get adapter
Returns: \AdapterInterface
Returns: array
Retrieve composed event instance
Returns: \EventFeature\TableGatewayEvent
Retrieve composed event manager instance
Returns: \EventManagerInterface
Returns: \Feature\FeatureSet
Get last insert value
Returns: int
Returns: void
Returns: void
Get select result prototype
Returns: \ResultSetInterface
Returns: \Sql
Get table name
Returns: string
Returns: void
Insert
Parameter Name | Type | Description |
---|---|---|
$set | array |
Returns: int
Parameter Name | Type | Description |
---|---|---|
$insert | \Insert |
Returns: int
Returns: bool
Trigger the "postDelete" event
Triggers the "postDelete" event mapping the following parameters:
Parameter Name | Type | Description |
---|---|---|
$statement | \StatementInterface | |
$result | \ResultInterface |
Returns: void
Trigger the "postInitialize" event
Returns: void
Trigger the "postInsert" event
Triggers the "postInsert" event mapping the following parameters:
Parameter Name | Type | Description |
---|---|---|
$statement | \StatementInterface | |
$result | \ResultInterface |
Returns: void
Trigger the "postSelect" event
Triggers the "postSelect" event mapping the following parameters:
Parameter Name | Type | Description |
---|---|---|
$statement | \StatementInterface | |
$result | \ResultInterface | |
$resultSet | \ResultSetInterface |
Returns: void
Trigger the "postUpdate" event
Triggers the "postUpdate" event mapping the following parameters:
Parameter Name | Type | Description |
---|---|---|
$statement | \StatementInterface | |
$result | \ResultInterface |
Returns: void
Trigger the "preDelete" event
Triggers the "preDelete" event mapping the following parameters:
Parameter Name | Type | Description |
---|---|---|
$delete | \Delete |
Returns: void
Initialize feature and trigger "preInitialize" event
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.
Returns: void
Trigger the "preInsert" event
Triggers the "preInsert" event mapping the following parameters:
Parameter Name | Type | Description |
---|---|---|
$insert | \Insert |
Returns: void
Trigger the "preSelect" event
Triggers the "preSelect" event mapping the following parameters:
Parameter Name | Type | Description |
---|---|---|
$select | \Select |
Returns: void
Trigger the "preUpdate" event
Triggers the "preUpdate" event mapping the following parameters:
Parameter Name | Type | Description |
---|---|---|
$update | \Update |
Returns: void
Select
Parameter Name | Type | Description |
---|---|---|
$where | \Where|\Closure|string|array |
Returns: \ResultSetInterface
Parameter Name | Type | Description |
---|---|---|
$select | \Select |
Returns: \ResultSetInterface
Parameter Name | Type | Description |
---|---|---|
$tableGateway |
Returns: void
Update
Parameter Name | Type | Description |
---|---|---|
$set | array | |
$where | string|array|\Closure | |
$joins | null|array |
Returns: int
Parameter Name | Type | Description |
---|---|---|
$update | \Zend\Db\Sql\Update |
Returns: int