Beispiel #1
0
 private function buildBinaryCriteriaQuery($criteria)
 {
     $qStr1 = BaseDao::buildArbitraryCriteriaQuery($criteria->getValue1());
     $qStr2 = BaseDao::buildArbitraryCriteriaQuery($criteria->getValue2());
     switch ($criteria->getFunction()) {
         case CRI_LOGICAL_AND:
             $funcStr = "(" . $qStr1 . ") AND (" . $qStr2 . ")";
             break;
         case CRI_LOGICAL_OR:
             $funcStr = "(" . $qStr1 . ") OR (" . $qStr2 . ")";
             break;
     }
     return $funcStr;
 }