|
@@ -30,7 +30,7 @@ class DBG {
|
|
|
* DBG::_(true, true, "fieldsConfig({$idTable})", $fieldsConfig, __CLASS__, __FUNCTION__, __LINE__);
|
|
* DBG::_(true, true, "fieldsConfig({$idTable})", $fieldsConfig, __CLASS__, __FUNCTION__, __LINE__);
|
|
|
*/
|
|
*/
|
|
|
public static function _($reqKey, $reqValueExpr, $label, $variable, $className, $functionName, $lineNumber, $borderColor = 'red') {
|
|
public static function _($reqKey, $reqValueExpr, $label, $variable, $className, $functionName, $lineNumber, $borderColor = 'red') {
|
|
|
- if (DBG::isActive()) return;
|
|
|
|
|
|
|
+ if (!DBG::isActive()) return;
|
|
|
$showDBG = false;
|
|
$showDBG = false;
|
|
|
$reqValue = (true === $reqKey || !$reqKey)? '' : V::get($reqKey, '', $_GET);
|
|
$reqValue = (true === $reqKey || !$reqKey)? '' : V::get($reqKey, '', $_GET);
|
|
|
if (true === $reqKey) {
|
|
if (true === $reqKey) {
|
|
@@ -73,7 +73,7 @@ class DBG {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if ($showDBG) {
|
|
if ($showDBG) {
|
|
|
- ?>
|
|
|
|
|
|
|
+?>
|
|
|
<pre style="max-height:200px;max-width:800px;overflow:auto;border:1px solid <?php echo $borderColor; ?>;text-align:left;"
|
|
<pre style="max-height:200px;max-width:800px;overflow:auto;border:1px solid <?php echo $borderColor; ?>;text-align:left;"
|
|
|
><?php echo "{$label} ({$className}::{$functionName}:{$lineNumber}):\n"; ?>
|
|
><?php echo "{$label} ({$className}::{$functionName}:{$lineNumber}):\n"; ?>
|
|
|
<?php print_r($variable);?>
|
|
<?php print_r($variable);?>
|
|
@@ -100,7 +100,7 @@ class DBG {
|
|
|
return;// bad table item type
|
|
return;// bad table item type
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- ?>
|
|
|
|
|
|
|
+?>
|
|
|
<table class="table table-bordered table-hover">
|
|
<table class="table table-bordered table-hover">
|
|
|
<caption><?php echo "{$label} ({$className}::{$functionName}:{$lineNumber}):"; ?></caption>
|
|
<caption><?php echo "{$label} ({$className}::{$functionName}:{$lineNumber}):"; ?></caption>
|
|
|
<thead>
|
|
<thead>
|