Elgg  Version 2.3
Public Member Functions | List of all members
Elgg\PluginHooksService Class Reference
Inheritance diagram for Elgg\PluginHooksService:
Elgg\HooksRegistrationService

Public Member Functions

 trigger ($hook, $type, $params=null, $returnvalue=null)
 Triggers a plugin hook. More...
 
 registerHandler ($name, $type, $callback, $priority=500)
 {} More...
 
- Public Member Functions inherited from Elgg\HooksRegistrationService
 setLogger (\Elgg\Logger $logger=null)
 Set a logger instance, e.g. More...
 
 registerHandler ($name, $type, $callback, $priority=500)
 Registers a handler. More...
 
 unregisterHandler ($name, $type, $callback)
 Unregister a handler. More...
 
 clearHandlers ($name, $type)
 Clears all handlers for a specific hook. More...
 
 getAllHandlers ()
 Returns all registered handlers as array( $name => array( $type => array( $priority => array( callback, callback, ) ) ) More...
 
 hasHandler ($name, $type)
 Is a handler registered for this specific name and type? "all" handlers are not considered. More...
 
 getOrderedHandlers ($name, $type)
 Returns an ordered array of handlers registered for $name and $type. More...
 
 backup ()
 Temporarily remove all event/hook registrations (before tests) More...
 
 restore ()
 Restore backed up event/hook registrations (after tests) More...
 

Additional Inherited Members

- Public Attributes inherited from Elgg\HooksRegistrationService
const REG_KEY_PRIORITY = 0
 
const REG_KEY_INDEX = 1
 
const REG_KEY_HANDLER = 2
 
- Protected Member Functions inherited from Elgg\HooksRegistrationService
 getMatcher ($spec)
 Create a matcher for the given callable (if it's for a static or dynamic method) More...
 
- Protected Attributes inherited from Elgg\HooksRegistrationService
 $logger
 

Detailed Description

Definition at line 16 of file PluginHooksService.php.

Member Function Documentation

Elgg\PluginHooksService::registerHandler (   $name,
  $type,
  $callback,
  $priority = 500 
)

{}

Definition at line 68 of file PluginHooksService.php.

Elgg\PluginHooksService::trigger (   $hook,
  $type,
  $params = null,
  $returnvalue = null 
)

Triggers a plugin hook.

See also
elgg_trigger_plugin_hook private

Definition at line 24 of file PluginHooksService.php.


The documentation for this class was generated from the following file: