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
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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