Hello Artur,

> So in this case, it's a shorthand based on the objective (as opposed to a 
> shorhand based purely on full name).
> 
> I.e.
> 
> $this->events->trigger()
> $this->events->attach()
> $this->events->detach()
> 
> It's just like saying "trigger some events" (which of course is not 100% 
> accurate, but is close to natural language), 
> "attach something to events" and finally 
> "detach something from events".

But what actually is happening is that an event is attached to or detached from 
the event manager.

> I do not see any purpose for having a separate "collection/array of events" 
> as opposed to EventManager. EventManager _is_ a collection of events in that 
> sense (it contains a number of events and listeners).

Yes, I understand. But, as a matter of fact, though, the event manager has an 
array of events - but it isn't. It's called EventManager, after all - not 
Events.

For example, when I instantiate a form, I would refer to it as a form, not as 
elements - even though it is a container of form elements.


Best regards,

Andreas
--
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com


Reply via email to