swipestripe
[ class tree: swipestripe ] [ index: swipestripe ] [ all elements ]

Class: FlatFeeShippingRate

Source Location: /code/modifiers/shipping/FlatFee/FlatFeeShippingRate.php

Class Overview

DataObject
   |
   --FlatFeeShippingRate

Shipping rates that can be set in SiteConfig. Several flat rates can be set for any supported shipping country.


Author(s):

Version:

  • 1.0

Copyright:

  • Copyright (c) 2011, Frank Mullenger

Variables

Methods



Class Details

[line 12]
Shipping rates that can be set in SiteConfig. Several flat rates can be set for any supported shipping country.



Tags:

author:  Frank Mullenger <frankmullenger@gmail.com>
version:  1.0
copyright:  Copyright (c) 2011, Frank Mullenger


[ Top ]


Class Variables

static $db = array(
    'Title' => 'Varchar',
    'Description' => 'Varchar',
    'Amount' => 'Money',
    'CountryCode' => 'Varchar(2)' //Two letter country codes for ISO 3166-1 alpha-2
   )

[line 19]

Fields for this shipping rate



Tags:

access:  public

Type:   Array


[ Top ]

static $has_one = array (
    'SiteConfig' => 'SiteConfig'
  )

[line 33]

Shipping rates are associated with SiteConfigs.

TODO The CTF in SiteConfig does not save the SiteConfig ID correctly so this is moot



Type:   unknown_type


[ Top ]



Class Methods


method getCMSFields_forPopup [line 42]

FieldSet getCMSFields_forPopup( )

Field for editing a FlatFeeShippingRate.



Tags:

access:  public


[ Top ]

method Label [line 65]

String Label( )

Label for using on FlatFeeShippingFields.



Tags:

access:  public


[ Top ]

method SummaryOfAmount [line 74]

String SummaryOfAmount( )

Summary of the amount



Tags:

return:  Amount formatted with Nice()
access:  public


[ Top ]

method SummaryOfCountryCode [line 83]

String SummaryOfCountryCode( )

Country name for a given country code



Tags:

return:  Name of country
access:  public


[ Top ]


Documentation generated on Thu, 08 Mar 2012 16:47:26 +1300 by phpDocumentor 1.4.4