22 private $triggered_signals = array();
34 if (!isset($clone->triggered_signals[$event])) {
35 $clone->triggered_signals[$event] = array();
37 $clone->triggered_signals[$event][] =
new TriggeredSignal($signal, $event);
51 $clone->setTriggeredSignal($signal, $event);
67 $this->triggered_signals[$event] = array();
68 $this->triggered_signals[$event][] =
new TriggeredSignal($signal, $event);
87 if (!isset($this->triggered_signals[$event])) {
92 return $ts->getSignal();
94 $this->triggered_signals[$event]
103 $clone = clone $this;
104 $clone->triggered_signals = array();
117 array_walk_recursive($array,
function ($a) use (&$flatten) {
getTriggeredSignalsFor($event)
Get signals that are triggered for a certain event.
withResetTriggeredSignals()
setTriggeredSignal(Component\Signal $signal, $event)
Add a triggered signal, replacing any othe signals registered on the same event.
flattenArray(array $array)
Flatten a multidimensional array to a single dimension.
appendTriggeredSignal(Component\Signal $signal, $event)
Append a triggered signal to other signals of the same event.
withTriggeredSignal(Component\Signal $signal, $event)
Add a triggered signal, replacing any other signals registered on the same event. ...