| @@ 395-405 (lines=11) @@ | ||
| 392 | ||
| 393 | } |
|
| 394 | ||
| 395 | function friendly_error_type($type) { |
|
| 396 | static $levels=null; |
|
| 397 | if ($levels===null) { |
|
| 398 | $levels=[]; |
|
| 399 | foreach (get_defined_constants() as $key=>$value) { |
|
| 400 | if (strpos($key,'E_')!==0) {continue;} |
|
| 401 | $levels[$value]= $key; //substr($key,2); |
|
| 402 | } |
|
| 403 | } |
|
| 404 | return (isset($levels[$type]) ? $levels[$type] : "Error #{$type}"); |
|
| 405 | } |
|
| 406 | ||
| 407 | private function define_ajax_hooks() |
|
| 408 | { |
|
| @@ 160-170 (lines=11) @@ | ||
| 157 | ||
| 158 | } |
|
| 159 | ||
| 160 | private function friendly_error_type($type) { |
|
| 161 | static $levels=null; |
|
| 162 | if ($levels===null) { |
|
| 163 | $levels=[]; |
|
| 164 | foreach (get_defined_constants() as $key=>$value) { |
|
| 165 | if (strpos($key,'E_')!==0) {continue;} |
|
| 166 | $levels[$value]= $key; //substr($key,2); |
|
| 167 | } |
|
| 168 | } |
|
| 169 | return (isset($levels[$type]) ? $levels[$type] : "Error #{$type}"); |
|
| 170 | } |
|
| 171 | ||
| 172 | public function get_logger_filename() |
|
| 173 | { |
|