This class helps with outputting info the developer sends to it; but it will never display to visitors. Very handy if you are concerned about pushing the debug code to the production server. If your IP is registered with the class then you will see a "Developer Mode" tag in the upper-right corner of the screen.
$debug = debug::obtain();
There's an example in the class. You can leave the ending octet blank to act as a "wildcard" for IP blocks.
public $development = array(
'Work' => '123.34.678.', //Note: You can leave the ending octet blank to act as a "wildcard" for IP blocks.
'Home' => '98.765.43.21',
'Cafe' => '101.01.010.1'
);
This method will output your array in pre tags for readability. Like all the other methods & properties in this class, this output is only visible to the IP's listed in the $development array.
$debug->printArray($myArray);
If your script / framework requires a PHP version minimum then you can use this method to enforce it.
$debug->versionCheck('5.3.0');
$directories = array('templates/', 'plugins/');
$debug->debugBar($directories);
$debug->allDefines();
$debug->allVars($class);
$debug->allMethods($class);