Exemplo n.º 1
0
 static function getGliderName($gliderID, $showBrand = 0, $showCert = 0, $showSize = 1)
 {
     global $db, $CONF_glider_certification_categories;
     $row = brands::getGliderInfo($gliderID);
     if ($row['gliderName']) {
         if ($showBrand) {
             $gBrand = $row['brandName'];
             if ($gBrand) {
                 $gBrand = $gBrand . ' ';
             }
         }
         if ($showSize) {
             $gSize = $row['gliderSize'];
             if ($gSize) {
                 $gSize = " - " + $gSize;
             }
         }
         if ($showCert) {
             $gCert = $row['gliderCert'];
             if ($gCert) {
                 $gCert = " [" + $CONF_glider_certification_categories[$gCert] + "]";
             }
         }
         return $row['gliderName'] . "{$gSize}{$gCert}";
     }
     return '';
 }