-- Andreas Möller <[email protected]> wrote
(on Tuesday, 13 November 2012, 10:38 AM +0100):
> may I ask why instances of EventManager are referred to as events,
> rather than eventManager?

If you're talking about the _protected_ property, or the fact that many
setEventManager() implementations use "$events" as the name of the
EventManager property, or even that many examples will use constructs
like "$events = $object->getEventManager();" it's simply because:

 a) it's shorter to type
 b) it has a semantic affinity to how other languages (esp. JavaScript)
    refer to event collections/managers.

In JavaScript, you typically work with an "events" collection, and
attach/trigger from that; we chose terminology that should be familiar
to those familiar with that paradigm (which will be a majority of web
developers). 

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to