Simple php event manager class