public function getCode($type, $code='')
    {
        /** @var Fontis_Australia_Helper_Data $helper */
        $helper = Mage::helper('australia');
        $codes = array(
            'services' => array(
                'AUS_LETTER_EXPRESS_SMALL'          => $helper->__('Express Post Small Envelope'),
                'AUS_LETTER_REGULAR_LARGE'          => $helper->__('Large Letter'),
                'AUS_PARCEL_COURIER'                => $helper->__('Courier Post'),
                'AUS_PARCEL_COURIER_SATCHEL_MEDIUM' => $helper->__('Courier Post Assessed Medium Satchel'),
                'AUS_PARCEL_EXPRESS'                => $helper->__('Express Post'),
                'AUS_PARCEL_REGULAR'                => $helper->__('Parcel Post'),

                'INT_PARCEL_COR_OWN_PACKAGING'      => $helper->__('International Courier'),
                'INT_PARCEL_EXP_OWN_PACKAGING'      => $helper->__('International Express'),
                'INT_PARCEL_STD_OWN_PACKAGING'      => $helper->__('International Standard'),
                'INT_PARCEL_AIR_OWN_PACKAGING'      => $helper->__('International Economy Air'),
                'INT_PARCEL_SEA_OWN_PACKAGING'      => $helper->__('International Economy Sea'),
            ),
            'extra_cover' => array(
                'AUS_SERVICE_OPTION_SIGNATURE_ON_DELIVERY'       => $helper->__('Signature on Delivery'),
                'AUS_SERVICE_OPTION_COURIER_EXTRA_COVER_SERVICE' => $helper->__('Standard cover')
            )
        );

        if (!isset($codes[$type])) {
            return false;
        } elseif (''===$code) {
            return $codes[$type];
        }

        if (!isset($codes[$type][$code])) {
            return false;
        } else {
            return $codes[$type][$code];
        }
    }
public function getCode($type, $code='')
    {
        /** @var Fontis_Australia_Helper_Data $helper */
        $helper = Mage::helper('australia');
        $codes = array(
            'services' => array(
                'AUS_LETTER_EXPRESS_SMALL'          => $helper->__('Express Post Small Envelope'),
                'AUS_LETTER_REGULAR_LARGE'          => $helper->__('Large Letter'),
                'AUS_PARCEL_COURIER'                => $helper->__('Courier Post'),
                'AUS_PARCEL_COURIER_SATCHEL_MEDIUM' => $helper->__('Courier Post Assessed Medium Satchel'),
                'AUS_PARCEL_EXPRESS'                => $helper->__('Express Post'),
                'AUS_PARCEL_REGULAR'                => $helper->__('Parcel Post'),

                'INT_PARCEL_COR_OWN_PACKAGING'      => $helper->__('International Courier'),
                'INT_PARCEL_EXP_OWN_PACKAGING'      => $helper->__('International Express'),
                'INT_PARCEL_STD_OWN_PACKAGING'      => $helper->__('International Standard'),
                'INT_PARCEL_AIR_OWN_PACKAGING'      => $helper->__('International Economy Air'),
                'INT_PARCEL_SEA_OWN_PACKAGING'      => $helper->__('International Economy Sea'),
            ),
            'extra_cover' => array(
                'AUS_SERVICE_OPTION_SIGNATURE_ON_DELIVERY'       => $helper->__('Signature on Delivery'),
                'AUS_SERVICE_OPTION_COURIER_EXTRA_COVER_SERVICE' => $helper->__('Standard cover')
            )
        );

        if (!isset($codes[$type])) {
            return false;
        } elseif (''===$code) {
            return $codes[$type];
        }

        if (!isset($codes[$type][$code])) {
            return false;
        } else {
            return $codes[$type][$code];
        }
    }
public function getCode ( $ type , $ code = '' ) { /** @var Fontis_Australia_Helper_Data $helper */ $ helper = Mage :: helper ( 'australia' ) ; $ codes = array ( 'services' => array ( 'AUS_LETTER_EXPRESS_SMALL' => $ helper -> __ ( 'Express Post Small Envelope' ) , 'AUS_LETTER_REGULAR_LARGE' => $ helper -> __ ( 'Large Letter' ) , 'AUS_PARCEL_COURIER' => $ helper -> __ ( 'Courier Post' ) , 'AUS_PARCEL_COURIER_SATCHEL_MEDIUM' => $ helper -> __ ( 'Courier Post Assessed Medium Satchel' ) , 'AUS_PARCEL_EXPRESS' => $ helper -> __ ( 'Express Post' ) , 'AUS_PARCEL_REGULAR' => $ helper -> __ ( 'Parcel Post' ) , 'INT_PARCEL_COR_OWN_PACKAGING' => $ helper -> __ ( 'International Courier' ) , 'INT_PARCEL_EXP_OWN_PACKAGING' => $ helper -> __ ( 'International Express' ) , 'INT_PARCEL_STD_OWN_PACKAGING' => $ helper -> __ ( 'International Standard' ) , 'INT_PARCEL_AIR_OWN_PACKAGING' => $ helper -> __ ( 'International Economy Air' ) , 'INT_PARCEL_SEA_OWN_PACKAGING' => $ helper -> __ ( 'International Economy Sea' ) , ) , 'extra_cover' => array ( 'AUS_SERVICE_OPTION_SIGNATURE_ON_DELIVERY' => $ helper -> __ ( 'Signature on Delivery' ) , 'AUS_SERVICE_OPTION_COURIER_EXTRA_COVER_SERVICE' => $ helper -> __ ( 'Standard cover' ) ) ) ; if ( ! isset ( $ codes [ $ type ] ) ) { return false ; } elseif ( '' === $ code ) { return $ codes [ $ type ] ; } if ( ! isset ( $ codes [ $ type ] [ $ code ] ) ) { return false ; } else { return $ codes [ $ type ] [ $ code ] ; } }
Returns an associative array of shipping method codes.

@param string $type
@param string $code
@return array|bool
Returns an associative array of shipping method codes .