Core Events Publisher
The publisher manages a list of subscribers, which get all notified of every event published until they get removed from the list.
Eric Bréchemier © 2011, Some Rights Reserved Legal-Box SAS © 2010-2011, All Rights Reserved
BSD License http://creativecommons.org/licenses/BSD/
2011-08-14
| lb. | Core Events Publisher | 
| Functions | |
| getSubscribers(): array | Get the list of subscribers. | 
| addSubscriber(subscriber) | Add a new subscriber to the list. | 
| removeSubscriber(subscriber) | Remove an existing subscriber from the list. | 
| publish(event) | Publish an event to be broadcast to all subscribers. | 
Add a new subscriber to the list.
| subscriber | object, the new subscriber (lb.core.events.Subscriber) | 
Nothing happens in case the subscriber is already present.
Remove an existing subscriber from the list.
| subscriber | object, the old subscriber (lb.core.events.Subscriber) | 
Nothing happens in case the subscriber is not present.