PHP Класс eZ\Publish\Core\SignalSlot\SignalDispatcher\DefaultSignalDispatcher

An instance of this class is required by each object that needs to send Signals.
Наследование: extends eZ\Publish\Core\SignalSlot\SignalDispatcher
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$factory eZ\Publish\Core\SignalSlot\SlotFactory Slot factory.
$signalSlotMap array '*' signal name stands for "every signals". All slots registered to it will be triggered each time a signal is emitted.

Открытые методы

Метод Описание
__construct ( array $signalSlotMap = [] ) Construct from factory.
attach ( string $signalIdentifier, Slot $slot ) Attaches the Slot with $slotIdentifier to the signal with $signalIdentifier.
emit ( eZ\Publish\Core\SignalSlot\Signal $signal ) Emits the given $signal.

Описание методов

__construct() публичный Метод

Construct from factory.
public __construct ( array $signalSlotMap = [] )
$signalSlotMap array

attach() публичный Метод

Attaches the Slot with $slotIdentifier to the signal with $signalIdentifier.
Устаревший: pass signal slots directly to the constructor ({@see \__construct()})
public attach ( string $signalIdentifier, Slot $slot )
$signalIdentifier string
$slot eZ\Publish\Core\SignalSlot\Slot

emit() публичный Метод

All assigned slots will eventually receive the $signal
public emit ( eZ\Publish\Core\SignalSlot\Signal $signal )
$signal eZ\Publish\Core\SignalSlot\Signal

Описание свойств

$factory защищенное свойство

Slot factory.
protected SlotFactory,eZ\Publish\Core\SignalSlot $factory
Результат eZ\Publish\Core\SignalSlot\SlotFactory

$signalSlotMap защищенное свойство

'*' signal name stands for "every signals". All slots registered to it will be triggered each time a signal is emitted.
protected array $signalSlotMap
Результат array