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

Public Member Functions

 getEvents ()
 Get Elgg event information. More...
 
 getPluginHooks ()
 Get Elgg plugin hooks 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...
 
 getWebServices ()
 Get Elgg web services API methods. More...
 
 getMenus ()
 Get information about registered menus. More...
 
 describeCallable ($callable, $file_root= '')
 Get a string description of a callback. More...
 

Protected Member Functions

 buildHandlerTree ($all_handlers)
 Build a tree of event handlers. More...
 
 recurseFileTree ($dir)
 Create array of all php files in directory and subdirectories. More...
 

Detailed Description

Definition at line 14 of file Inspector.php.

Member Function Documentation

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

Build a tree of event handlers.

Parameters
array$all_handlersSet of handlers from a HooksRegistrationService
Returns
array

Definition at line 357 of file Inspector.php.

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$callableThe callable value to describe
string$file_rootif provided, it will be removed from the beginning of file names
Returns
string

Definition at line 323 of file Inspector.php.

Elgg\Debug\Inspector::getActions ( )

Get Elgg actions information.

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

Returns
array

Definition at line 166 of file Inspector.php.

Elgg\Debug\Inspector::getEvents ( )

Get Elgg event information.

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

Definition at line 21 of file Inspector.php.

Elgg\Debug\Inspector::getMenus ( )

Get information about registered menus.

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

Definition at line 233 of file Inspector.php.

Elgg\Debug\Inspector::getPluginHooks ( )

Get Elgg plugin hooks information.

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

Definition at line 30 of file Inspector.php.

Elgg\Debug\Inspector::getSimpleCache ( )

Get simplecache information.

Returns
array [views]

Definition at line 187 of file Inspector.php.

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 52 of file Inspector.php.

Elgg\Debug\Inspector::getViewtypes ( )

Get all view types for known views.

Returns
string[]

Definition at line 39 of file Inspector.php.

Elgg\Debug\Inspector::getWebServices ( )

Get Elgg web services API methods.

Returns
array [method] => array(function, parameters, call_method, api auth, user auth)

Definition at line 205 of file Inspector.php.

Elgg\Debug\Inspector::getWidgets ( )

Get Elgg widget information.

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

Definition at line 147 of file Inspector.php.

Elgg\Debug\Inspector::recurseFileTree (   $dir)
protected

Create array of all php files in directory and subdirectories.

Parameters
string$dirfull path to directory to begin search
Returns
array of every php file in $dir or below in file tree

Definition at line 382 of file Inspector.php.


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