| @@ 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 | { |
|
| @@ 489-499 (lines=11) @@ | ||
| 486 | ||
| 487 | } |
|
| 488 | ||
| 489 | function friendly_error_type($type) { |
|
| 490 | static $levels=null; |
|
| 491 | if ($levels===null) { |
|
| 492 | $levels=[]; |
|
| 493 | foreach (get_defined_constants() as $key=>$value) { |
|
| 494 | if (strpos($key,'E_')!==0) {continue;} |
|
| 495 | $levels[$value]= $key; //substr($key,2); |
|
| 496 | } |
|
| 497 | } |
|
| 498 | return (isset($levels[$type]) ? $levels[$type] : "Error #{$type}"); |
|
| 499 | } |
|
| 500 | ||
| 501 | private function define_ajax_hooks() |
|
| 502 | { |
|