forked from jsmitka/Nette-XDebug-Helper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathXDebugHelper.php
More file actions
47 lines (34 loc) · 755 Bytes
/
XDebugHelper.php
File metadata and controls
47 lines (34 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* XDebug Helper
* Simple extension for Nette Framework, which integrates into the Debug Bar and
* enables you to easily start and stop a Xdebug session.
*
* @author Jan Smitka <jan@smitka.org>
* @copyright Copyright (c) 2010 Jan Smitka <jan@smitka.org>
*/
namespace PandaWeb;
use Nette\IDebugPanel;
class XDebugHelper implements IDebugPanel
{
private $ideKey;
public function __construct($ideKey = 'netbeans-xdebug')
{
$this->ideKey = $ideKey;
}
public function getId()
{
return 'PandaWeb-XdebugHelper';
}
public function getPanel()
{
return FALSE;
}
public function getTab()
{
$ideKey = $this->ideKey;
ob_start();
require dirname(__FILE__) . '/xdebug-helper.tab.phtml';
return ob_get_clean();
}
}