PHP Class Elgg\Debug\Inspector

Since: 1.11
Afficher le fichier Open project: elgg/elgg Class Usage Examples

Méthodes publiques

Méthode Description
describeCallable ( mixed $callable, string $file_root = '' ) : string Get a string description of a callback
getActions ( ) : array Get Elgg actions information
getEvents ( ) : array Get Elgg event information
getMenus ( ) : array Get information about registered menus
getPluginHooks ( ) : array Get Elgg plugin hooks information
getSimpleCache ( ) : array Get simplecache information
getViews ( string $viewtype = 'default' ) : array Get Elgg view information
getViewtypes ( ) : string[] Get all view types for known views
getWebServices ( ) : array Get Elgg web services API methods
getWidgets ( ) : array Get Elgg widget information

Méthodes protégées

Méthode Description
buildHandlerTree ( array $all_handlers ) : array Build a tree of event handlers

Private Methods

Méthode Description
getViewsData ( ) : array Get data from the Views service

Method Details

buildHandlerTree() protected méthode

Build a tree of event handlers
protected buildHandlerTree ( array $all_handlers ) : array
$all_handlers array Set of handlers from a HooksRegistrationService
Résultat array

describeCallable() public méthode

E.g. "function_name", "Static::method", "(ClassName)->method", "(Closure path/to/file.php:23)"
public describeCallable ( mixed $callable, string $file_root = '' ) : string
$callable mixed The callable value to describe
$file_root string if provided, it will be removed from the beginning of file names
Résultat string

getActions() public méthode

returns [action] => array(file, access)
public getActions ( ) : array
Résultat array

getEvents() public méthode

Get Elgg event information
public getEvents ( ) : array
Résultat array [event,type] => array(handlers)

getMenus() public méthode

Get information about registered menus
public getMenus ( ) : array
Résultat array [menu name] => array(item name => array(text, href, section, parent))

getPluginHooks() public méthode

Get Elgg plugin hooks information
public getPluginHooks ( ) : array
Résultat array [hook,type] => array(handlers)

getSimpleCache() public méthode

Get simplecache information
public getSimpleCache ( ) : array
Résultat array [views]

getViews() public méthode

Get Elgg view information
public getViews ( string $viewtype = 'default' ) : array
$viewtype string The Viewtype we wish to inspect
Résultat array [view] => map of priority to ViewComponent[]

getViewtypes() public méthode

Get all view types for known views
public getViewtypes ( ) : string[]
Résultat string[]

getWebServices() public méthode

Get Elgg web services API methods
public getWebServices ( ) : array
Résultat array [method] => array(function, parameters, call_method, api auth, user auth)

getWidgets() public méthode

Get Elgg widget information
public getWidgets ( ) : array
Résultat array [widget] => array(name, contexts)