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
파일 보기 프로젝트 열기: cakephp/debug_kit 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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