Here is what I want to do.
I have coded a series of objects in PHP and need a way for them to communicate with one another in a completely uncoupled manner.
EG.
We have a sender and a reciever object.
The sender object is basically asks the reciever a question BUT since it doesn't know if the receiver exists or what it exists as. So it basically triggers an event through a handling object ie (handler.triggerEvent("reciever", "exist")😉 This handler would then see if an object called reciever had registered to listen for an event (ie. handler.listenEvent("exist", "someprocedurenametorun") and the handler would then call the recievers corresponding procedure when the event was triggered if it was allready listening?
Does this make sense?