-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathXDebugHelper.php
More file actions
47 lines (34 loc) · 774 Bytes
/
XDebugHelper.php
File metadata and controls
47 lines (34 loc) · 774 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-2013 Jan Smitka <jan@smitka.org>
*/
namespace NetteExtras;
use Nette\Diagnostics\IBarPanel;
class XDebugHelper implements IBarPanel
{
private $ideKey;
public function __construct($ideKey = 'netbeans-xdebug')
{
$this->ideKey = $ideKey;
}
public function getId()
{
return 'NetteExtras-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();
}
}