DolTimeDataCollector.php 637 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. use \DebugBar\DataCollector\TimeDataCollector;
  3. /**
  4. * DolTimeDataCollector class
  5. */
  6. class DolTimeDataCollector extends TimeDataCollector
  7. {
  8. /**
  9. * Return widget settings
  10. *
  11. * @return array Array
  12. */
  13. public function getWidgets()
  14. {
  15. global $langs;
  16. return array(
  17. "time" => array(
  18. "icon" => "clock-o",
  19. "tooltip" => $langs->transnoentities('RequestDuration'),
  20. "map" => "time.duration_str",
  21. "default" => "'0ms'"
  22. ),
  23. $langs->transnoentities('Timeline') => array(
  24. "icon" => "tasks",
  25. "widget" => "PhpDebugBar.Widgets.TimelineWidget",
  26. "map" => "time",
  27. "default" => "{}"
  28. )
  29. );
  30. }
  31. }