\FireGento_MageSetup_Model_Setup_Cms
Setup class for CMS pages and blocks
- 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 Pages, Blocks and especially Footer Block
$locale
- Locale options-
protected_createCmsBlock( array $blockData, string $locale, boolean $override, int|null $storeId )
- Collect data and create CMS block
$blockData
- Cms block data$locale
- Locale$override
- Override email template if set$storeId
- Store ID-
protected_createCmsPage( array $pageData, string $locale, boolean $override, int|null $storeId )
- Collect data and create CMS page
$pageData
- Cms page data$locale
- Locale$override
- Override email template if set$storeId
- Store ID-
protected_createFooterLinksContent( int|null $storeId )
- Generate footer_links block from config data
$storeId
- Store ID- Footer Links Content
-
protected_getConfigBlocks( )
- Get blocks/default from config file
- Config blocks
-
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_getConfigPages( )
- Get pages/default from config file
- Config pages
-
protected_getConnection( )
- Retrieve the database connection
- Database connection
-
protected_getDefaultBlock( string $identifier )
- Retrieve the default block for the given identifier
$identifier
- Block Identifier- Block Model
-
protected_getDefaultPage( string $identifier )
- Retrieve the default page for the given identifier
$identifier
- Page Identifier- Page Model
-
protected_getFooterLinks( int|null $storeId )
- Get footer_links/default from config file
$storeId
- Store ID- Footer Links
-
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-
protected_updateFooterLinksBlock( array $blockData, int|null $storeId )
- Update footer_links cms block
$blockData
- Cms block data$storeId
- Store ID