Beispiel #1
0
 static function compareInfWithOrder(Interval $intvA, Interval $intvB, $nestLevel)
 {
     $comp = 0;
     $inf = self::$comparatorsIIF->get($nestLevel);
     $order = $inf->getSortingOrder();
     if ($order == '<' || $order != '>') {
         if ($intvB->getStat($inf) < $intvA->getStat($inf)) {
             $comp = -1;
         } else {
             if ($intvB->getStat($inf) > $intvA->getStat($inf)) {
                 $comp = 1;
             } else {
                 $comp = 0;
             }
         }
     } else {
         if ($intvB->getStat($inf) > $intvA->getStat($inf)) {
             $comp = -1;
         } else {
             if ($intvB->getStat($inf) < $intvA->getStat($inf)) {
                 $comp = 1;
             } else {
                 $comp = 0;
             }
         }
     }
     return $comp;
 }