![]() |
PHPDevShell 3.1.3-Stable
PHP OOP RAD Development Framework
|
Public Member Functions | |
| construct ($domain=null) | |
| domain ($domain=null) | |
| enable ($doit=null) | |
| isEnabled () | |
| __invoke ($data, $label=null) | |
| dump ($data, $label= 'data') | |
| log ($data, $label=null) | |
| debug ($data) | |
| info ($data) | |
| warn ($data) | |
| warning ($data) | |
| error ($datal) | |
| process ($data) | |
Data Fields | |
| const | DEBUG = 4 |
| const | INFO = 3 |
| const | WARN = 2 |
| const | ERROR = 1 |
| const | LOG = 0 |
Protected Attributes | |
| $enabled = false | |
| $level = PHPDS_debug::LOG | |
| $domain | |
| $conduits = null | |
Adds FirePHP support to PHPDevShell.
| __invoke | ( | $ | data, |
| $ | label = null |
||
| ) |
Magic method: shortcut to log($ata)
| construct | ( | $ | domain = null | ) |
| $domain | the semantic domain of the debug object (to match (or not) the filters are set in configuration) |
| debug | ( | $ | data | ) |
Push Firebug Debug Info
| mixed | $data |
| domain | ( | $ | domain = null | ) |
Accessor for the domain field: get (and possibily set) the domain
The domain is the semantic field of the data sent to this instance ; it's used to filter which data will be actually sent Note: the object will enable/disabled itself based on the domain debug configuration: the domain MUST be in the array to be active.
| $domain | string (optional) the semantic domain |
$this->enabled = in_array($domain, $configuration['domains']);
| dump | ( | $ | data, |
| $ | label = 'data' |
||
| ) |
Dump the content of a variable to the backends
| $data | |
| $label |
| enable | ( | $ | doit = null | ) |
Enable or disable the debugger output ; get the current state
Note: at this time, the debugger has to be enabled at startup
| $doit | (optional) enable (true or disable (false) |
| error | ( | $ | datal | ) |
Push Firebug Error
| mixed | $data |
| info | ( | $ | data | ) |
| isEnabled | ( | ) |
Is this instance sending data?
| log | ( | $ | data, |
| $ | label = null |
||
| ) |
Log the data to the backends with the LOG level (the smallest, most often seen)
| $data | |
| $label |
| process | ( | $ | data | ) |
FirePHP Process
| mixed | $data |
| warn | ( | $ | data | ) |
Push Firebug Warning
| mixed | $data |
| warning | ( | $ | data | ) |
Push Firebug Warning
| mixed | $data |
$conduits = null [protected] |
$domain [protected] |
$enabled = false [protected] |
$level = PHPDS_debug::LOG [protected] |
| const DEBUG = 4 |
| const ERROR = 1 |
| const INFO = 3 |
| const LOG = 0 |
| const WARN = 2 |