\FireGento_MageSetup_Model_Setup_Agreements
Setup class for Checkout Agreements
- 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
-
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( Array $locale )
- Setup Checkout Agreements
$locale
- Locale options-
protected_createAgreement( array $agreementData, string $locale, boolean $override, int|null $storeId )
- Collect data and create Agreement
$agreementData
- Cms page data$locale
- Locale$override
- Override cms page if it exists$storeId
- Store Id-
protected_getConfigAgreements( )
- Get pages/default from config file
- Config agreements
-
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_getConnection( )
- Retrieve the database connection
- Database connection
-
protected_getSetup( )
- Retrieve the Magento setup model class
- Setup Model
-
protected_loadExistingModel( Mage_Core_Model_Abstract $model, string $attributeCode, string $value )
- Load a model by attribute code
$model
- Collection$attributeCode
- Attribute code$value
- Value