*', '>=*', '<*', '<=*' - compare $reqValue * examples: * - show when $_REQUEST['DBG_SCH'] == '1' * DBG::_('DBG_SCH', '1', "fieldsConfig({$idTable})", $fieldsConfig, __CLASS__, __FUNCTION__, __LINE__); * - show when $_REQUEST['DBG_SCH'] > '1' * DBG::_('DBG_SCH', '>1', "fieldsConfig({$idTable})", $fieldsConfig, __CLASS__, __FUNCTION__, __LINE__); * - show when any value: strlen($_REQUEST['DBG_SCH']) > 0 * DBG::_('DBG_SCH', true, "fieldsConfig({$idTable})", $fieldsConfig, __CLASS__, __FUNCTION__, __LINE__); * - always show * DBG::_(true, true, "fieldsConfig({$idTable})", $fieldsConfig, __CLASS__, __FUNCTION__, __LINE__); */ public static function _($reqKey, $reqValueExpr, $label, $variable, $className, $functionName, $lineNumber, $borderColor = 'red') { $showDBG = false; $reqValue = V::get($reqKey, '', $_GET); if (true === $reqKey) { $showDBG = true; } else if (strlen($reqValue) == 0) { return; } else if ($reqValue == $reqValueExpr) { $showDBG = true; } else if (true === $reqValueExpr) { $showDBG = true; } else { if ('>=' == substr($reqValueExpr, 0, 2)) { if ($reqValue >= substr($reqValueExpr, 2)) { $showDBG = true; } } else if ('>' == substr($reqValueExpr, 0, 1)) { if ($reqValue > substr($reqValueExpr, 1)) { $showDBG = true; } } else if ('<=' == substr($reqValueExpr, 0, 2)) { if ($reqValue <= substr($reqValueExpr, 2)) { $showDBG = true; } } else if ('<' == substr($reqValueExpr, 0, 1)) { if ($reqValue < substr($reqValueExpr, 1)) { $showDBG = true; } } else { if ($reqValue = $reqValueExpr) { $showDBG = true; } } } if ($showDBG) { ?>


Lp.