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\Http\Diagnostics;
9:
10: use Nette;
11:
12:
13: /**
14: * Session panel for Debugger Bar.
15: *
16: * @author David Grudl
17: */
18: class SessionPanel extends Nette\Object implements Nette\Diagnostics\IBarPanel
19: {
20:
21: /**
22: * Renders tab.
23: * @return string
24: */
25: public function getTab()
26: {
27: ob_start();
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();
40: require __DIR__ . '/templates/SessionPanel.panel.phtml';
41: return ob_get_clean();
42: }
43:
44: }
45: