One slot can be connected with multiple signals by calling this method multiple times.
public connect ( string $signalClassName, string $signalName, mixed $slotClassNameOrObject, string $slotMethodName = '', boolean $passSignalInformation = true ) : void | ||
$signalClassName | string | Name of the class containing the signal |
$signalName | string | Name of the signal |
$slotClassNameOrObject | mixed | Name of the class containing the slot or the instantiated class or a Closure object |
$slotMethodName | string | Name of the method to be used as a slot. If $slotClassNameOrObject is a Closure object, this parameter is ignored |
$passSignalInformation | boolean | If set to TRUE, the last argument passed to the slot will be information about the signal (EmitterClassName::signalName) |
return | void |