Overview

Namespaces

  • DSchoenbauer
    • Orm
      • Builder
      • Entity
      • Enum
      • Events
        • Persistence
        • Validate
          • DataType
          • Schema
      • Exception
      • Framework

Classes

  • PdoCreate
  • PdoDelete
  • PdoSelect
  • PdoUpdate
  • Overview
  • Namespace
  • Class

Class PdoUpdate

Event driven hook to update information from a PDO connection

DSchoenbauer\Orm\Events\AbstractEvent implements DSchoenbauer\Orm\VisitorInterface
Extended by DSchoenbauer\Orm\Events\Persistence\PdoUpdate
Namespace: DSchoenbauer\Orm\Events\Persistence
Author: David Schoenbauer dschoenbauer@gmail.com
Located at Orm/Events/Persistence/PdoUpdate.php
Methods summary
public
# __construct( array $events, PDO $adapter, DSchoenbauer\Sql\Command\Update $update = null )

Parameters

$events
An array of event names to bind to
$adapter
$update

Overrides

DSchoenbauer\Orm\Events\AbstractEvent::__construct()
public
# onExecute( Zend\EventManager\Event $event )

event action

event action

Parameters

$event
object passed when event is fired

Since

v1.0.0
public PDO
# getAdapter( )

Returns a PHP Data Object

Returns a PHP Data Object

Returns

PDO

Since

v1.0.0
public
# setAdapter( PDO $adapter )

PDO connection to a db of some sort.

PDO connection to a db of some sort.

Parameters

$adapter

Returns


$this

Since

v1.0.0
public DSchoenbauer\Sql\Command\Update
# getUpdate( )

object with logic for the Update. If Update is not provided one will be lazy loaded

object with logic for the Update. If Update is not provided one will be lazy loaded

Returns

DSchoenbauer\Sql\Command\Update

Since

v1.0.0
public
# setUpdate( DSchoenbauer\Sql\Command\Update $update = null )

Object that contains the update logic

Object that contains the update logic

Parameters

$update

Returns


$this

Since

v1.0.0
Methods inherited from DSchoenbauer\Orm\Events\AbstractEvent
getEvents(), setEvents(), visitModel()
API documentation generated by ApiGen