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