Namespaces

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • None
  • PHP

Classes

  • UserPanel
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
 1: <?php
 2: 
 3: /**
 4:  * This file is part of the Nette Framework (http://nette.org)
 5:  *
 6:  * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
 7:  *
 8:  * For the full copyright and license information, please view
 9:  * the file license.txt that was distributed with this source code.
10:  */
11: 
12: namespace Nette\Security\Diagnostics;
13: 
14: use Nette,
15:     Nette\Diagnostics\Helpers;
16: 
17: 
18: 
19: /**
20:  * User panel for Debugger Bar.
21:  *
22:  * @author     David Grudl
23:  */
24: class UserPanel extends Nette\Object implements Nette\Diagnostics\IBarPanel
25: {
26:     /** @var Nette\Security\User */
27:     private $user;
28: 
29: 
30: 
31:     public function __construct(Nette\Security\User $user)
32:     {
33:         $this->user = $user;
34:     }
35: 
36: 
37: 
38:     /**
39:      * Renders tab.
40:      * @return string
41:      */
42:     public function getTab()
43:     {
44:         ob_start();
45:         require __DIR__ . '/templates/UserPanel.tab.phtml';
46:         return ob_get_clean();
47:     }
48: 
49: 
50: 
51:     /**
52:      * Renders panel.
53:      * @return string
54:      */
55:     public function getPanel()
56:     {
57:         ob_start();
58:         require __DIR__ . '/templates/UserPanel.panel.phtml';
59:         return ob_get_clean();
60:     }
61: 
62: }
63: 
Nette Framework 2.0.7 API API documentation generated by ApiGen 2.8.0