Class EventFeature

Summary

Fully Qualified Name: Zend\Db\TableGateway\Feature\EventFeature
Extends: AbstractFeature
Implements: EventFeatureEventsInterface, EventsCapableInterface

Description

Methods

Name Description Defined By
__call() AbstractTableGateway
__clone() __clone AbstractTableGateway
__construct() EventFeature
__get() __get AbstractTableGateway
__set() AbstractTableGateway
delete() Delete AbstractTableGateway
deleteWith() AbstractTableGateway
getAdapter() Get adapter AbstractTableGateway
getColumns() AbstractTableGateway
getEvent() Retrieve composed event instance EventFeature
getEventManager() Retrieve composed event manager instance EventFeature
getFeatureSet() AbstractTableGateway
getLastInsertValue() Get last insert value AbstractTableGateway
getMagicMethodSpecifications() AbstractFeature
getName() AbstractFeature
getResultSetPrototype() Get select result prototype AbstractTableGateway
getSql() AbstractTableGateway
getTable() Get table name AbstractTableGateway
initialize() AbstractFeature
insert() Insert AbstractTableGateway
insertWith() AbstractTableGateway
isInitialized() AbstractTableGateway
postDelete() Trigger the "postDelete" event EventFeature
postInitialize() Trigger the "postInitialize" event EventFeature
postInsert() Trigger the "postInsert" event EventFeature
postSelect() Trigger the "postSelect" event EventFeature
postUpdate() Trigger the "postUpdate" event EventFeature
preDelete() Trigger the "preDelete" event EventFeature
preInitialize() Initialize feature and trigger "preInitialize" event EventFeature
preInsert() Trigger the "preInsert" event EventFeature
preSelect() Trigger the "preSelect" event EventFeature
preUpdate() Trigger the "preUpdate" event EventFeature
select() Select AbstractTableGateway
selectWith() AbstractTableGateway
setTableGateway() AbstractFeature
update() Update AbstractTableGateway
updateWith() AbstractTableGateway

Method Details

__call()

Parameter Name Type Description
$arguments
$method
$arguments

Returns: mixed

__clone()

__clone

Returns:

__construct()

Parameter Name Type Description
$eventManager \EventManagerInterface
$tableGatewayEvent \EventFeature\TableGatewayEvent

Returns:

__get()

__get

Parameter Name Type Description
$property string

Returns: mixed

__set()

Parameter Name Type Description
$property string
$value mixed

Returns: mixed

delete()

Delete

Parameter Name Type Description
$where \Where|\Closure|string|array

Returns: int

deleteWith()

Parameter Name Type Description
$delete \Delete

Returns: int

getAdapter()

Get adapter

Returns: \AdapterInterface

getColumns()

Returns: array

getEvent()

Retrieve composed event instance

Returns: \EventFeature\TableGatewayEvent

getEventManager()

Retrieve composed event manager instance

Returns: \EventManagerInterface

getFeatureSet()

Returns: \Feature\FeatureSet

getLastInsertValue()

Get last insert value

Returns: int

getMagicMethodSpecifications()

Returns: void

getName()

Returns: void

getResultSetPrototype()

Get select result prototype

Returns: \ResultSetInterface

getSql()

Returns: \Sql

getTable()

Get table name

Returns: string

initialize()

Returns: void

insert()

Insert

Parameter Name Type Description
$set array

Returns: int

insertWith()

Parameter Name Type Description
$insert \Insert

Returns: int

isInitialized()

Returns: bool

postDelete()

Trigger the "postDelete" event

Triggers the "postDelete" event mapping the following parameters:

Parameter Name Type Description
$statement \StatementInterface
$result \ResultInterface

Returns: void

postInitialize()

Trigger the "postInitialize" event

Returns: void

postInsert()

Trigger the "postInsert" event

Triggers the "postInsert" event mapping the following parameters:

Parameter Name Type Description
$statement \StatementInterface
$result \ResultInterface

Returns: void

postSelect()

Trigger the "postSelect" event

Triggers the "postSelect" event mapping the following parameters:

Parameter Name Type Description
$statement \StatementInterface
$result \ResultInterface
$resultSet \ResultSetInterface

Returns: void

postUpdate()

Trigger the "postUpdate" event

Triggers the "postUpdate" event mapping the following parameters:

Parameter Name Type Description
$statement \StatementInterface
$result \ResultInterface

Returns: void

preDelete()

Trigger the "preDelete" event

Triggers the "preDelete" event mapping the following parameters:

Parameter Name Type Description
$delete \Delete

Returns: void

preInitialize()

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

preInsert()

Trigger the "preInsert" event

Triggers the "preInsert" event mapping the following parameters:

Parameter Name Type Description
$insert \Insert

Returns: void

preSelect()

Trigger the "preSelect" event

Triggers the "preSelect" event mapping the following parameters:

Parameter Name Type Description
$select \Select

Returns: void

preUpdate()

Trigger the "preUpdate" event

Triggers the "preUpdate" event mapping the following parameters:

Parameter Name Type Description
$update \Update

Returns: void

select()

Select

Parameter Name Type Description
$where \Where|\Closure|string|array

Returns: \ResultSetInterface

selectWith()

Parameter Name Type Description
$select \Select

Returns: \ResultSetInterface

setTableGateway()

Parameter Name Type Description
$tableGateway

Returns: void

update()

Update

Parameter Name Type Description
$set array
$where string|array|\Closure
$joins null|array

Returns: int

updateWith()

Parameter Name Type Description
$update \Zend\Db\Sql\Update

Returns: int

Top