本文整理汇总了PHP中Nette\Diagnostics\Debugger::getBar方法的典型用法代码示例。如果您正苦于以下问题:PHP Debugger::getBar方法的具体用法?PHP Debugger::getBar怎么用?PHP Debugger::getBar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Nette\Diagnostics\Debugger
的用法示例。
在下文中一共展示了Debugger::getBar方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: register
public function register(DibiConnection $connection)
{
Debugger::getBar()->addPanel($this);
Debugger::getBlueScreen()->addPanel(array(__CLASS__, 'renderException'));
$connection->onEvent[] = array($this, 'logEvent');
}
示例2: createDebugPanel
public static function createDebugPanel($connection, $explain = TRUE, $name = NULL)
{
$panel = new Nette\Database\Diagnostics\ConnectionPanel($connection);
$panel->explain = $explain;
$panel->name = $name;
Nette\Diagnostics\Debugger::getBar()->addPanel($panel);
return $panel;
}
示例3: register
public function register(Dibi\Connection $connection)
{
Debugger::getBar()->addPanel($this);
Debugger::getBlueScreen()->addPanel([__CLASS__, 'renderException']);
$connection->onEvent[] = [$this, 'logEvent'];
}
示例4: register
/**
* Register this panel
* @param Nette\Application\Application
* @param GettextTranslator\Gettext
* @param Nette\Http\Session
* @param Nette\Http\Request
* @param int
* @param int
*/
public static function register(Nette\Application\Application $application, Gettext $translator, Nette\Http\Session $session, Nette\Http\Request $httpRequest, $layout = NULL, $height = NULL)
{
Nette\Diagnostics\Debugger::getBar()->addPanel(new static($application, $translator, $session, $httpRequest, $layout, $height));
}
示例5: getDebuggerBar
/**
* @return Bar
*/
private static function getDebuggerBar()
{
return method_exists('Nette\\Diagnostics\\Debugger', 'getBar') ? Debugger::getBar() : Debugger::$bar;
}
示例6: createDebugPanel
public static function createDebugPanel(Connection $connection, $explain = TRUE, $name = NULL)
{
$panel = new ConnectionPanel($connection);
$panel->explain = $explain;
$panel->name = $name;
if (isset(Debugger::$bar)) {
//BC with 2.0
Debugger::$bar->addPanel($panel);
} else {
//2.1
Debugger::getBar()->addPanel($panel);
}
return $panel;
}