1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
6: */
7:
8: namespace Nette\Bridges\HttpTracy;
9:
10: use Nette;
11: use Tracy;
12:
13:
14: /**
15: * Session panel for Debugger Bar.
16: */
17: class SessionPanel implements Tracy\IBarPanel
18: {
19: use Nette\SmartObject;
20:
21: /**
22: * Renders tab.
23: * @return string
24: */
25: public function getTab()
26: {
27: ob_start(function () {});
28: require __DIR__ . '/templates/SessionPanel.tab.phtml';
29: return ob_get_clean();
30: }
31:
32:
33: /**
34: * Renders panel.
35: * @return string
36: */
37: public function getPanel()
38: {
39: ob_start(function () {});
40: require __DIR__ . '/templates/SessionPanel.panel.phtml';
41: return ob_get_clean();
42: }
43: }
44: