예제 #1
0
 function EvaluateCondition($cName, $nRow = 0)
 {
     if (!$cName) {
         return false;
     }
     //echo "Evaluate condition $cName"."<br/>";
     $ind = OEDynUtils::_FindIndexByName($this->arConditions, $cName);
     $r = $this->_EvaluateExpression($ind, $nRow);
     //echo ':'.(($r===true)?'true':(($r===false)?'false':$r)).':<br/>';
     //var_dump($r);
     if ($GLOBALS['oephpDebugMode']) {
         echo "<b>Condition <span style='color:#0080B0'><u>{$cName}</u></span> evaluated to <span style=\"font-size:16px;background-color:white;color:" . ($r === true ? '#40D080;">true' : ($r === false ? 'red">false' : $r)) . "</span></b><br/>";
     }
     return $r;
 }