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 extends Nette\Object implements Tracy\IBarPanel
18: {
19:
20: /**
21: * Renders tab.
22: * @return string
23: */
24: public function getTab()
25: {
26: ob_start(function () {});
27: require __DIR__ . '/templates/SessionPanel.tab.phtml';
28: return ob_get_clean();
29: }
30:
31:
32: /**
33: * Renders panel.
34: * @return string
35: */
36: public function getPanel()
37: {
38: ob_start(function () {});
39: require __DIR__ . '/templates/SessionPanel.panel.phtml';
40: return ob_get_clean();
41: }
42:
43: }
44: