Elgg  Version 6.3
Public Member Functions | Protected Member Functions | List of all members
Elgg\Debug\Inspector Class Reference

Debug inspector. More...

Public Member Functions

 getEvents ()
 Get Elgg event information. More...
 
 getViewtypes ()
 Get all view types for known views. More...
 
 getViews ($viewtype='default')
 Get Elgg view information. More...
 
 getWidgets ()
 Get Elgg widget information. More...
 
 getActions ()
 Get Elgg actions information. More...
 
 getSimpleCache ()
 Get simplecache information. More...
 
 getRoutes ()
 Get Elgg route information. More...
 
 getMenus ()
 Get information about registered menus. More...
 
 describeCallable ($callable, $file_root='')
 Get a string description of a callback. More...
 
 getServices ()
 Returns public DI services. More...
 
 getSeeders ()
 Get the registered database CLI seeders. More...
 
 getNotifications ()
 Get all registered notification handlers. More...
 

Protected Member Functions

 buildHandlerTree ($all_handlers)
 Build a tree of event handlers. More...
 

Detailed Description

Debug inspector.

Definition at line 16 of file Inspector.php.

Member Function Documentation

◆ buildHandlerTree()

Elgg\Debug\Inspector::buildHandlerTree (   $all_handlers)
protected

Build a tree of event handlers.

Parameters
array$all_handlersSet of handlers from a EventsService
Returns
array

Definition at line 363 of file Inspector.php.

◆ describeCallable()

Elgg\Debug\Inspector::describeCallable (   $callable,
  $file_root = '' 
)

Get a string description of a callback.

E.g. "function_name", "Static::method", "(ClassName)->method", "(Closure path/to/file.php:23)"

Parameters
mixed$callableCallable
string$file_rootIf provided, it will be removed from the beginning of file names
Returns
string

Definition at line 352 of file Inspector.php.

◆ getActions()

Elgg\Debug\Inspector::getActions ( )

Get Elgg actions information.

returns [action] => array(file, access)

Returns
array

Definition at line 144 of file Inspector.php.

◆ getEvents()

Elgg\Debug\Inspector::getEvents ( )

Get Elgg event information.

Returns
array [event,type] => array(handlers)

Definition at line 23 of file Inspector.php.

◆ getMenus()

Elgg\Debug\Inspector::getMenus ( )

Get information about registered menus.

Returns
array [menu name] => array(item name => array(text, href, section, parent))

Definition at line 254 of file Inspector.php.

◆ getNotifications()

Elgg\Debug\Inspector::getNotifications ( )

Get all registered notification handlers.

Returns
array
Since
6.3

Definition at line 452 of file Inspector.php.

◆ getRoutes()

Elgg\Debug\Inspector::getRoutes ( )

Get Elgg route information.

returns [route] => array(path, resource)

Returns
array

Definition at line 202 of file Inspector.php.

◆ getSeeders()

Elgg\Debug\Inspector::getSeeders ( )

Get the registered database CLI seeders.

Returns
string[]

Definition at line 442 of file Inspector.php.

◆ getServices()

Elgg\Debug\Inspector::getServices ( )

Returns public DI services.

returns [service_name => [class, path]]

Returns
array

Definition at line 408 of file Inspector.php.

◆ getSimpleCache()

Elgg\Debug\Inspector::getSimpleCache ( )

Get simplecache information.

Returns
array [views]

Definition at line 172 of file Inspector.php.

◆ getViews()

Elgg\Debug\Inspector::getViews (   $viewtype = 'default')

Get Elgg view information.

Parameters
string$viewtypeThe Viewtype we wish to inspect
Returns
array [view] => map of priority to ViewComponent[]

Definition at line 43 of file Inspector.php.

◆ getViewtypes()

Elgg\Debug\Inspector::getViewtypes ( )

Get all view types for known views.

Returns
string[]

Definition at line 32 of file Inspector.php.

◆ getWidgets()

Elgg\Debug\Inspector::getWidgets ( )

Get Elgg widget information.

Returns
array [widget] => array(name, contexts)

Definition at line 126 of file Inspector.php.


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