\FireGento_MageSetup_Model_Setup_Tax
Setup class for Tax Settings
- Author: FireGento Team <team@firegento.com>
- Copyright: 2013 FireGento Team (http://www.firegento.com)
- License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
Members
Constructor
Methods
-
public_getConfigTaxCalcRates( )
- Get tax calculation rates from config file
-
public_getConfigTaxCalculations( )
- Get tax calculations from config file
-
publicgetConfigData( )
- Get config.xml data
- Config data
-
publicgetCountryId( )
- Get setup country ID
-
publicgetTemplateContent( string $filename )
- Get template content
$filename
- Template file name- Template content
-
publicsetConfigData( string $configPath, string $value, int|null $storeId )
- Saves a system config value for the given config path and the given store id
$configPath
- Config Path$value
- Value$storeId
- Store ID-
publicsetup( )
- Setup Tax setting
-
publicupdateCustomerTaxClasses( int $source, int $target )
- Update the tax class of all customer groups with specified tax class id
$source
- source tax class id$target
- target tax class id-
publicupdateProductTaxClasses( int $source, int $target )
- Update the tax class of all products with specified tax class id
$source
- source tax class id$target
- target tax class id-
protected_createTaxCalcRate( array $taxCalcRateData )
- Collect data and create tax calculation rates
$taxCalcRateData
- tax class data- ID of the created tax calculation rate
-
protected_createTaxClass( array $taxClassData )
- Collect data and create tax class
$taxClassData
- tax class data- ID of the last inserted item
-
protected_getConfigNode( string $node, string|null $childNode )
- Get config.xml data
$node
- xml node$childNode
- if set, child node of the first node- Config Node
-
protected_getConfigTaxCalcRules( )
- Get tax calculation rules from config file
-
protected_getConfigTaxClasses( )
- Get tax classes from config file
-
protected_getConfigTaxConfig( )
- Get tax calculations from config file
-
protected_getConnection( )
- Retrieve the database adapter
- Database Adapter
-
protected_getConnection( )
- Retrieve the database connection
- Database connection
-
protected_getCountries( )
- Get countries for tax rate calculations
If the country is in the EU, all EU countries are returned. If not, the array only contains the country ID of the configuration setup country
-
protected_getSetup( )
- Retrieve the setup class
- Setup Class
-
protected_getSetup( )
- Retrieve the Magento setup model class
- Setup Model
-
protected_getTable( string $tableAlias )
- Get table name from table alias
$tableAlias
- Table Alias- Correct Table Name
-
protected_insertIntoTable( string $table, array $data )
- Insert a line into a database table
$table
- Table$data
- Data to insert-
protected_lastInsertId( string $table )
- Get last insert ID
$table
- Table- Last inserted id
-
protected_loadExistingModel( Mage_Core_Model_Abstract $model, string $attributeCode, string $value )
- Load a model by attribute code
$model
- Collection$attributeCode
- Attribute code$value
- Value-
protected_truncateTable( string $table )
- Truncate a database table
DELETE is used, in order to prevent problems with foreign key checks.
$table
- Database to truncate-
protected_updateConfigData( )
- Update configuration settings