PHP Класс DebugKit\Routing\Filter\DebugBarFilter

This class loads all the panels into the registry and binds the correct events into the provided event manager
Наследование: extends Cake\Routing\DispatcherFilter, use trait Cake\Event\EventManagerTrait
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_defaultConfig array Default configuration.
$_registry DebugKit\Panel\PanelRegistry The panel registry.

Открытые методы

Метод Описание
__construct ( Cake\Event\EventManager $events, array $config ) Constructor
afterDispatch ( Cake\Event\Event $event ) : void Save the toolbar data.
beforeDispatch ( Cake\Event\Event $event ) : void Call the initialize method onl all the loaded panels.
implementedEvents ( ) : array Event bindings
isEnabled ( ) : boolean Check whether or not debug kit is enabled.
loadedPanels ( ) : array Get the list of loaded panels
panel ( string $name ) : DebugPanel | null Get the list of loaded panels
setup ( ) : void Do the required setup work.

Защищенные методы

Метод Описание
_injectScripts ( string $id, Response $response ) : void Injects the JS to build the toolbar.

Описание методов

__construct() публичный Метод

Constructor
public __construct ( Cake\Event\EventManager $events, array $config )
$events Cake\Event\EventManager The event manager to use.
$config array The configuration data for DebugKit.

_injectScripts() защищенный Метод

The toolbar will only be injected if the response's content type contains HTML and there is a tag.
protected _injectScripts ( string $id, Response $response ) : void
$id string ID to fetch data from.
$response Cake\Network\Response The response to augment.
Результат void

afterDispatch() публичный Метод

Save the toolbar data.
public afterDispatch ( Cake\Event\Event $event ) : void
$event Cake\Event\Event The afterDispatch event.
Результат void

beforeDispatch() публичный Метод

Call the initialize method onl all the loaded panels.
public beforeDispatch ( Cake\Event\Event $event ) : void
$event Cake\Event\Event The beforeDispatch event.
Результат void

implementedEvents() публичный Метод

Event bindings
public implementedEvents ( ) : array
Результат array

isEnabled() публичный Метод

Check whether or not debug kit is enabled.
public isEnabled ( ) : boolean
Результат boolean

loadedPanels() публичный Метод

Get the list of loaded panels
public loadedPanels ( ) : array
Результат array

panel() публичный Метод

Get the list of loaded panels
public panel ( string $name ) : DebugPanel | null
$name string The name of the panel you want to get.
Результат DebugKit\DebugPanel | null The panel or null.

setup() публичный Метод

- Build panels. - Connect events
public setup ( ) : void
Результат void

Описание свойств

$_defaultConfig защищенное свойство

Default configuration.
protected array $_defaultConfig
Результат array

$_registry защищенное свойство

The panel registry.
protected PanelRegistry,DebugKit\Panel $_registry
Результат DebugKit\Panel\PanelRegistry