/**
  * Return unit sigle
  * @param unknown_type $code
  * @param unknown_type $column_to_return
  */
 public static function wpshop_get_sigle($code, $column_to_return = "unit")
 {
     $tmp_code = (int) $code;
     $key_to_get = 'name';
     if (is_int($tmp_code) && !empty($tmp_code)) {
         $key_to_get = 'id';
     }
     $old_way_currencies = unserialize(WPSHOP_SHOP_CURRENCIES);
     if (array_key_exists($code, $old_way_currencies)) {
         $code = $old_way_currencies[$code];
         $key_to_get = 'name';
     }
     $current_currency = wpshop_attributes_unit::getElement($code, "'valid'", $key_to_get);
     return $current_currency->{$column_to_return};
 }