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

Class: FlatFeeTaxRate

Source Location: /code/modifiers/tax/FlatFee/FlatFeeTaxRate.php

Class Overview

DataObject
   |
   --FlatFeeTaxRate

Tax 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]
Tax 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
     'Rate' => 'Decimal(18,2)'
   )

[line 19]

Fields for this tax rate



Tags:

access:  public

Type:   Array


[ Top ]

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

[line 34]

Tax 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 43]

FieldSet getCMSFields_forPopup( )

Field for editing a FlatFeeTaxRate.



Tags:

access:  public


[ Top ]

method Label [line 69]

String Label( )

Label for using on FlatFeeTaxFields.



Tags:

access:  public


[ Top ]

method SummaryOfAmount [line 78]

String SummaryOfAmount( )

Summary of the amount



Tags:

return:  Amount formatted with Nice()
access:  public


[ Top ]

method SummaryOfCountryCode [line 96]

String SummaryOfCountryCode( )

Country name for a given country code



Tags:

return:  Name of country
access:  public


[ Top ]

method SummaryOfRate [line 87]

String SummaryOfRate( )

Summary of the current tax rate



Tags:

access:  public


[ Top ]


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