PHP Class eZ\Publish\Core\Base\Container\ApiLoader\SignalSlot\SignalDispatcherFactory

Exibir arquivo Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
__construct ( string $signalDispatcherClass, $searchEngineAlias ) SignalDispatcherFactory constructor.
addSlotsForSearchEngine ( string $searchEngineAlias, array $searchEngineSignalSlots ) Bulk add all signal slots if needed for a search engine.
buildSignalDispatcher ( ) : SignalDispatcher Build SignalDispatcher for SignalSlots.
getSearchEngineAlias ( ) : string Get current search engine alias.

Method Details

__construct() public method

SignalDispatcherFactory constructor.
public __construct ( string $signalDispatcherClass, $searchEngineAlias )
$signalDispatcherClass string
$searchEngineAlias

addSlotsForSearchEngine() public method

Bulk add all signal slots if needed for a search engine.
public addSlotsForSearchEngine ( string $searchEngineAlias, array $searchEngineSignalSlots )
$searchEngineAlias string
$searchEngineSignalSlots array [signal => array(slot1, slot2, ...)]

buildSignalDispatcher() public method

Build SignalDispatcher for SignalSlots.
public buildSignalDispatcher ( ) : SignalDispatcher
return eZ\Publish\Core\SignalSlot\SignalDispatcher

getSearchEngineAlias() public method

Get current search engine alias.
public getSearchEngineAlias ( ) : string
return string