1 | <?php |
||
17 | class Manager |
||
18 | { |
||
19 | |||
20 | public $bar; |
||
21 | public $render; |
||
22 | |||
23 | /** |
||
24 | * Manager constructor. Construct debug manager - build debug bar, javascripts and initialize config |
||
25 | */ |
||
26 | public function __construct() |
||
34 | |||
35 | /** |
||
36 | * Render debug bar header |
||
37 | * @return string |
||
38 | */ |
||
39 | public function renderHead() |
||
43 | |||
44 | /** |
||
45 | * Render debug bar code |
||
46 | * @return string |
||
47 | * @throws \DebugBar\DebugBarException |
||
48 | */ |
||
49 | public function renderOut() |
||
62 | |||
63 | /** |
||
64 | * Add exception into debug bar and stop execute |
||
65 | * @param \Exception $e |
||
66 | */ |
||
67 | public function addException($e) |
||
75 | |||
76 | /** |
||
77 | * Add message into debug bar |
||
78 | * @param string $m |
||
79 | * @param string $type |
||
80 | */ |
||
81 | public function addMessage($m, $type = 'info') |
||
95 | |||
96 | /** |
||
97 | * Add message debug data to bar |
||
98 | * @param mixed $data |
||
99 | */ |
||
100 | public function vardump($data) |
||
106 | |||
107 | /** |
||
108 | * Start timeline measure |
||
109 | * @param string $key |
||
110 | */ |
||
111 | public function startMeasure(string $key): void |
||
115 | |||
116 | /** |
||
117 | * Stop timeline measure |
||
118 | * @param string $key |
||
119 | */ |
||
120 | public function stopMeasure(string $key): void |
||
124 | |||
125 | /** |
||
126 | * Check if debug bar is enabled. Method called before __construct() is initiated!! |
||
127 | * @return bool |
||
128 | */ |
||
129 | public static function isEnabled() |
||
135 | } |