![]() |
PHPDevShell 3.1.3-Stable
PHP OOP RAD Development Framework
|
Public Member Functions | |
| construct () | |
| getFirePHP () | |
| doHandleShutdown () | |
| doHandleException (Exception $ex) | |
| doHandleError ($errno, $errstr, $errfile, $errline) | |
| conductor ($msg, $level=0, $label= '') | |
| textualize ($text) | |
| error_log ($prefix, $data) | |
| message ($message, $trace= '') | |
| showException (Exception $e=null) | |
Static Public Member Functions | |
| static | getArgument ($arg) |
Data Fields | |
| $error_backtrace = false | |
Protected Attributes | |
| $ignore_notices = false | |
| $ignore_warnings = false | |
| $warningsAreFatal = true | |
| $noticesAreFatal = false | |
| $serverlog = true | |
| $file = '' | |
| $mail = '' | |
| $display = true | |
| $firebug = false | |
| $firephp = null | |
| $I_give_up = false | |
| $production = false | |
Error handling function with use of FirePHP
| conductor | ( | $ | msg, |
| $ | level = 0, |
||
| $ | label = '' |
||
| ) |
| construct | ( | ) |
Construtor
Reimplemented from PHPDS_dependant.
| doHandleError | ( | $ | errno, |
| $ | errstr, | ||
| $ | errfile, | ||
| $ | errline | ||
| ) |
Error handler
| int | $errno | Error code |
| string | $errstr | Error message |
| doHandleException | ( | Exception $ | ex | ) |
Exception handler
| Exception | $ex | Exception |
| doHandleShutdown | ( | ) |
Handle critical errors (if set to)
| error_log | ( | $ | prefix, |
| $ | data | ||
| ) |
Write data to the error log using Apache flow
| $prefix | A string to add at the beginning |
| $data | An array of strings to output |
| static getArgument | ( | $ | arg | ) | [static] |
Converts variable into short text
| mixed | $arg | Variable |
| getFirePHP | ( | ) |
| message | ( | $ | message, |
| $ | trace = '' |
||
| ) |
Quick independent message styling, just to make it look better yea.
| string | $message |
| showException | ( | Exception $ | e = null | ) |
Display an Exception
This function will load a predefined template page (in PHP form) in order to warn the user something has gone wrong.
If an exception is provided, it will be detailed as much as possible ; if not, only a generic message will be displayed
| Exception | $e | (optional) |
| textualize | ( | $ | text | ) |
Cleans a string for outputing on plain text devices (such as log files)
| $text | the string to clean |
$display = true [protected] |
| $error_backtrace = false |
$file = '' [protected] |
$firebug = false [protected] |
$firephp = null [protected] |
$I_give_up = false [protected] |
$ignore_notices = false [protected] |
Error handler options
$ignore_warnings = false [protected] |
$mail = '' [protected] |
$noticesAreFatal = false [protected] |
$production = false [protected] |
$serverlog = true [protected] |
$warningsAreFatal = true [protected] |