\FireGento_MageSetup_Model_Setup_Email
Setup class for transaction emails
- 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, bool $overwrite )
- Setup Transaction Emails
$locale
- Locale options$overwrite
- Flag if locale options should override existing templates-
protected_addFooterBlocks( string $templateText, Array $blocks )
- Add configured blocks before the second last </body> tag
$templateText
- the content of the template$blocks
- all blocks that should be inserted before penultimate </table>- the content of the template with the block before penultimate </table>
-
protected_createEmail( array $emailData, string $locale, boolean $override, int|null $storeId )
- Create transactional email template
$emailData
- Template data$locale
- Locale$override
- Override email template if set$storeId
- Store ID-
protected_getConfigEmailFooters( )
- Get email_footers/default from config file
- Config email footers
-
protected_getConfigEmails( )
- Get emails/default from config file
- Config emails
-
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_getFooterBlocks( array $emailData )
- Get HTML blocks which should be appended to the emails
$emailData
- Email data- Footer blocks
-
protected_getLocaleEmailPath( string $locale )
- Retrieve email template path for given locale
$locale
- Locale- Locale Template Path
-
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