|
| addEventHandler ($fromModuleId, $eventType, $callback, $includeFile=false, $sort=100) |
|
| addEventHandlerCompatible ($fromModuleId, $eventType, $callback, $includeFile=false, $sort=100) |
|
| removeEventHandler ($fromModuleId, $eventType, $iEventHandlerKey) |
|
| unRegisterEventHandler ($fromModuleId, $eventType, $toModuleId, $toClass='', $toMethod='', $toPath='', $toMethodArg=[]) |
|
| registerEventHandler ($fromModuleId, $eventType, $toModuleId, $toClass='', $toMethod='', $sort=100, $toPath='', $toMethodArg=[]) |
|
| registerEventHandlerCompatible ($fromModuleId, $eventType, $toModuleId, $toClass='', $toMethod='', $sort=100, $toPath='', $toMethodArg=[]) |
|
| clearLoadedHandlers () |
|
| findEventHandlers ($eventModuleId, $eventType, array $filter=null) |
|
| send (Event $event) |
|
|
| __construct () |
|
| addEventHandlerInternal ($fromModuleId, $eventType, $callback, $includeFile, $sort, $version) |
|
| registerEventHandlerInternal ($fromModuleId, $eventType, $toModuleId, $toClass, $toMethod, $sort, $toPath, $toMethodArg, $version) |
|
| formatEventName ($arEvent) |
|
| loadEventHandlers () |
|
| sendToEventHandler (array $handler, Event $event) |
|
См. определение в файле eventmanager.php строка 14
◆ __construct()
◆ addEventHandler()
addEventHandler |
( |
| $fromModuleId, |
|
|
| $eventType, |
|
|
| $callback, |
|
|
| $includeFile = false, |
|
|
| $sort = 100 ) |
◆ addEventHandlerCompatible()
addEventHandlerCompatible |
( |
| $fromModuleId, |
|
|
| $eventType, |
|
|
| $callback, |
|
|
| $includeFile = false, |
|
|
| $sort = 100 ) |
- Аргументы
-
| $fromModuleId | |
| $eventType | |
| $callback | |
bool | $includeFile | |
int | $sort | |
- Возвращает
- int
См. определение в файле eventmanager.php строка 118
◆ addEventHandlerInternal()
addEventHandlerInternal |
( |
| $fromModuleId, |
|
|
| $eventType, |
|
|
| $callback, |
|
|
| $includeFile, |
|
|
| $sort, |
|
|
| $version ) |
|
protected |
◆ clearLoadedHandlers()
◆ findEventHandlers()
findEventHandlers |
( |
| $eventModuleId, |
|
|
| $eventType, |
|
|
array | $filter = null ) |
◆ formatEventName()
formatEventName |
( |
| $arEvent | ) |
|
|
protected |
◆ getInstance()
◆ loadEventHandlers()
◆ registerEventHandler()
registerEventHandler |
( |
| $fromModuleId, |
|
|
| $eventType, |
|
|
| $toModuleId, |
|
|
| $toClass = '', |
|
|
| $toMethod = '', |
|
|
| $sort = 100, |
|
|
| $toPath = '', |
|
|
| $toMethodArg = [] ) |
◆ registerEventHandlerCompatible()
registerEventHandlerCompatible |
( |
| $fromModuleId, |
|
|
| $eventType, |
|
|
| $toModuleId, |
|
|
| $toClass = '', |
|
|
| $toMethod = '', |
|
|
| $sort = 100, |
|
|
| $toPath = '', |
|
|
| $toMethodArg = [] ) |
◆ registerEventHandlerInternal()
registerEventHandlerInternal |
( |
| $fromModuleId, |
|
|
| $eventType, |
|
|
| $toModuleId, |
|
|
| $toClass, |
|
|
| $toMethod, |
|
|
| $sort, |
|
|
| $toPath, |
|
|
| $toMethodArg, |
|
|
| $version ) |
|
protected |
◆ removeEventHandler()
removeEventHandler |
( |
| $fromModuleId, |
|
|
| $eventType, |
|
|
| $iEventHandlerKey ) |
◆ send()
◆ sendToEventHandler()
sendToEventHandler |
( |
array | $handler, |
|
|
Event | $event ) |
|
protected |
◆ setInstance()
static setInstance |
( |
| $instance | ) |
|
|
static |
◆ unRegisterEventHandler()
unRegisterEventHandler |
( |
| $fromModuleId, |
|
|
| $eventType, |
|
|
| $toModuleId, |
|
|
| $toClass = '', |
|
|
| $toMethod = '', |
|
|
| $toPath = '', |
|
|
| $toMethodArg = [] ) |
◆ $handlers
◆ $instance
◆ $isHandlersLoaded
$isHandlersLoaded = false |
|
protected |
◆ CACHE_ID
const CACHE_ID = 'b_module_to_module' |
|
protected |