dolibarr/htdocs/debugbar/class/DataCollector/DolExceptionsCollector.php

36 lines
615 B
PHP
Raw Normal View History

2019-03-16 16:27:14 +01:00
<?php
use \DebugBar\DataCollector\ExceptionsCollector;
/**
* DolExceptionsCollector class
*/
class DolExceptionsCollector extends ExceptionsCollector
{
/**
* Return widget settings
*
2019-03-16 20:10:22 +01:00
* @return array Array
2019-03-16 16:27:14 +01:00
*/
public function getWidgets()
{
global $langs;
$title = $langs->transnoentities('Exceptions');
return array(
"$title" => array(
'icon' => 'bug',
'widget' => 'PhpDebugBar.Widgets.ExceptionsWidget',
'map' => 'exceptions.exceptions',
'default' => '[]'
),
"$title:badge" => array(
'map' => 'exceptions.count',
'default' => 'null'
)
);
}
2019-03-16 20:10:22 +01:00
}