PHP Class ZFDebug_Controller_Plugin_Debug

Inheritance: extends Zend_Controller_Plugin_Abstract
Show file Open project: jokkedk/zfdebug Class Usage Examples

Public Properties

Property Type Description
$standardPlugins array Standard plugins

Protected Properties

Property Type Description
$_closingBracket Creates a new instance of the Debug Bar
$_options Contains options to change Debug Bar behavior
$_plugins array Contains registered plugins
$_version string Debug Bar Version Number for internal use only

Public Methods

Method Description
__construct ( $options = null )
dispatchLoopShutdown ( ) Defined by Zend_Controller_Plugin_Abstract
getClosingBracket ( )
getLinebreak ( )
getLogger ( ) : Zend_Log Get the ZFDebug logger
getPlugin ( string $identifier ) : ZFDebug_Controller_Plugin_Debug_Plugin_Interface Get a registered plugin in the Debug Bar
registerPlugin ( ZFDebug_Controller_Plugin_Debug_Plugin_Interface $plugin ) : ZFDebug_Controller_Plugin_Debug Register a new plugin in the Debug Bar
setOptions ( array $options = [] ) : ZFDebug_Controller_Plugin_Debug Sets options of the Debug Bar
unregisterPlugin ( string $plugin ) : ZFDebug_Controller_Plugin_Debug Unregister a plugin in the Debug Bar

Protected Methods

Method Description
_getVersionPanel ( ) : string Returns version panel
_getVersionTab ( ) : string Return version tab
_headerOutput ( ) : string Returns html header for the Debug Bar
_icon ( $kind ) : string Returns path to the specific icon
_isXhtml ( )
_loadPlugins ( ) : void; Load plugins set in config option
_output ( string $html ) : void Appends Debug Bar html output to the original page

Method Details

__construct() public method

public __construct ( $options = null )

_getVersionPanel() protected method

Returns version panel
protected _getVersionPanel ( ) : string
return string

_getVersionTab() protected method

Return version tab
protected _getVersionTab ( ) : string
return string

_headerOutput() protected method

Returns html header for the Debug Bar
protected _headerOutput ( ) : string
return string

_icon() protected method

Returns path to the specific icon
protected _icon ( $kind ) : string
return string

_isXhtml() protected method

protected _isXhtml ( )

_loadPlugins() protected method

Load plugins set in config option
protected _loadPlugins ( ) : void;
return void;

_output() protected method

Appends Debug Bar html output to the original page
protected _output ( string $html ) : void
$html string
return void

dispatchLoopShutdown() public method

Defined by Zend_Controller_Plugin_Abstract

getClosingBracket() public method

public getClosingBracket ( )

getLinebreak() public method

public getLinebreak ( )

getLogger() public method

Get the ZFDebug logger
public getLogger ( ) : Zend_Log
return Zend_Log

getPlugin() public method

Get a registered plugin in the Debug Bar
public getPlugin ( string $identifier ) : ZFDebug_Controller_Plugin_Debug_Plugin_Interface
$identifier string
return ZFDebug_Controller_Plugin_Debug_Plugin_Interface

registerPlugin() public method

Register a new plugin in the Debug Bar
public registerPlugin ( ZFDebug_Controller_Plugin_Debug_Plugin_Interface $plugin ) : ZFDebug_Controller_Plugin_Debug
$plugin ZFDebug_Controller_Plugin_Debug_Plugin_Interface
return ZFDebug_Controller_Plugin_Debug

setOptions() public method

Sets options of the Debug Bar
public setOptions ( array $options = [] ) : ZFDebug_Controller_Plugin_Debug
$options array
return ZFDebug_Controller_Plugin_Debug

unregisterPlugin() public method

Unregister a plugin in the Debug Bar
public unregisterPlugin ( string $plugin ) : ZFDebug_Controller_Plugin_Debug
$plugin string
return ZFDebug_Controller_Plugin_Debug

Property Details

$_closingBracket protected property

Creates a new instance of the Debug Bar
protected $_closingBracket

$_options protected property

Contains options to change Debug Bar behavior
protected $_options

$_plugins protected property

Contains registered plugins
protected array $_plugins
return array

$_version protected property

Debug Bar Version Number for internal use only
protected string $_version
return string

$standardPlugins public static property

Standard plugins
public static array $standardPlugins
return array