DBG.php 589 B

1234567891011121314151617181920
  1. <?php
  2. class DBG {
  3. /**
  4. * examples:
  5. * DBG::_('DBG_SCH', '1', "fieldsConfig({$idTable})", $fieldsConfig, __CLASS__, __FUNCTION__, __LINE__ );
  6. */
  7. public static function _($reqKey, $reqValue, $label, $variable, $className, $functionName, $lineNumber, $borderColor = 'red') {
  8. if ($reqValue == V::get($reqKey, '', $_GET)) {
  9. ?>
  10. <pre style="max-height:200px;max-width:800px;overflow:auto;border:1px solid <?php echo $borderColor; ?>;text-align:left;"
  11. ><?php echo "{$label} ({$className}::{$functionName}:{$lineNumber}):\n"; ?>
  12. <?php print_r($variable);?>
  13. </pre>
  14. <?php
  15. }
  16. }
  17. }