Zend Framework
3.0
|
Aggregate hydrator that composes multiple hydrators via events. More...
Public Member Functions | |||||||
add (HydratorInterface $hydrator, $priority=self::DEFAULT_PRIORITY) | |||||||
Attaches the provided hydrator to the list of hydrators to be used while hydrating/extracting data. | |||||||
extract ($object) | |||||||
Extract values from an object.
| |||||||
hydrate (array $data, $object) | |||||||
Hydrate $object with the provided $data.
| |||||||
setEventManager (EventManagerInterface $eventManager) | |||||||
Inject an EventManager instance.
| |||||||
getEventManager () | |||||||
Retrieve the event manager.Lazy-loads an EventManager instance if none registered.
| |||||||
Public Attributes | |
const | DEFAULT_PRIORITY = 1 |
Protected Attributes | |
$eventManager | |
Aggregate hydrator that composes multiple hydrators via events.
add | ( | HydratorInterface | $hydrator, |
$priority = self::DEFAULT_PRIORITY |
|||
) |
Attaches the provided hydrator to the list of hydrators to be used while hydrating/extracting data.
HydratorInterface | $hydrator | |
int | $priority |
extract | ( | $object | ) |
getEventManager | ( | ) |
Retrieve the event manager.Lazy-loads an EventManager instance if none registered.
Implements EventsCapableInterface.
hydrate | ( | array | $data, |
$object | |||
) |
Hydrate $object with the provided $data.
array | $data | |
object | $object |
Implements HydrationInterface.
setEventManager | ( | EventManagerInterface | $eventManager | ) |
Inject an EventManager instance.
EventManagerInterface | $eventManager |
Implements EventManagerAwareInterface.
|
protected |
const DEFAULT_PRIORITY = 1 |