TeamSpeak 3 PHP Framework
Modern use-at-will framework that provides individual components to manage TeamSpeak 3 Server instances
|
Helper class for signal slots. More...
Public Member Functions | |
clearHandlers ($signal) | |
Clears all slots for a specified signal. More... | |
emit ($signal, $params=null) | |
Emits a signal with a given set of parameters. More... | |
getCallbackHash ($callback) | |
Generates a MD5 hash based on a given callback. More... | |
getHandlers ($signal) | |
Returns all slots for a specified signal. More... | |
getSignals () | |
Returns all registered signals. More... | |
hasHandlers ($signal) | |
Returns TRUE there are slots subscribed for a specified signal. More... | |
subscribe ($signal, $callback) | |
Subscribes to a signal and returns the signal handler. More... | |
unsubscribe ($signal, $callback=null) | |
Unsubscribes from a signal. More... | |
Static Public Member Functions | |
static | getInstance () |
Returns a singleton instance of TeamSpeak3_Helper_Signal. More... | |
Helper class for signal slots.
clearHandlers | ( | $signal | ) |
Clears all slots for a specified signal.
string | $signal |
emit | ( | $signal, | |
$params = null |
|||
) |
Emits a signal with a given set of parameters.
string | $signal | |
mixed | $params |
getCallbackHash | ( | $callback | ) |
Generates a MD5 hash based on a given callback.
mixed | $callback | |
string |
getHandlers | ( | $signal | ) |
Returns all slots for a specified signal.
string | $signal |
|
static |
Returns a singleton instance of TeamSpeak3_Helper_Signal.
getSignals | ( | ) |
hasHandlers | ( | $signal | ) |
subscribe | ( | $signal, | |
$callback | |||
) |
Subscribes to a signal and returns the signal handler.
string | $signal | |
mixed | $callback |
unsubscribe | ( | $signal, | |
$callback = null |
|||
) |
Unsubscribes from a signal.
string | $signal | |
mixed | $callback |