src/ShopBundle/objects/db/TShopShippingTypeList.class.php
public static function &GetPublicShippingTypes($iGroupId)
    {
        $query = "SELECT `shop_shipping_type`.*
                  FROM `shop_shipping_type`
            INNER JOIN `shop_shipping_group_shop_shipping_type_mlt` ON `shop_shipping_type`.`id` = `shop_shipping_group_shop_shipping_type_mlt`.`target_id`
                 WHERE `shop_shipping_group_shop_shipping_type_mlt`.`source_id` = '".MySqlLegacySupport::getInstance()->real_escape_string($iGroupId)."'
               ";

        $oList = &TdbShopShippingTypeList::GetList($query);
        $oList->RemoveRestrictedItems();

        return $oList;
    }
public static function &GetPublicShippingTypes($iGroupId)
    {
        $query = "SELECT `shop_shipping_type`.*
                  FROM `shop_shipping_type`
            INNER JOIN `shop_shipping_group_shop_shipping_type_mlt` ON `shop_shipping_type`.`id` = `shop_shipping_group_shop_shipping_type_mlt`.`target_id`
                 WHERE `shop_shipping_group_shop_shipping_type_mlt`.`source_id` = '".MySqlLegacySupport::getInstance()->real_escape_string($iGroupId)."'
               ";

        $oList = &TdbShopShippingTypeList::GetList($query);
        $oList->RemoveRestrictedItems();

        return $oList;
    }
public static function & GetPublicShippingTypes ( $ iGroupId ) { $ query = "SELECT `shop_shipping_type`.*
                  FROM `shop_shipping_type`
            INNER JOIN `shop_shipping_group_shop_shipping_type_mlt` ON `shop_shipping_type`.`id` = `shop_shipping_group_shop_shipping_type_mlt`.`target_id`
                 WHERE `shop_shipping_group_shop_shipping_type_mlt`.`source_id` = '" . MySqlLegacySupport :: getInstance ( ) -> real_escape_string ( $ iGroupId ) . "'
               " ; $ oList = & TdbShopShippingTypeList :: GetList ( $ query ) ; $ oList -> RemoveRestrictedItems ( ) ; return $ oList ; }
return all public shipping types for a given shipping group.

@param int $iGroupId

@return TdbShopShippingTypeList
return all public shipping types for a given shipping group .