Class Mage_Adminhtml_Model_System_Store

Description

Adminhtml System Store Model

Located in /Adminhtml/Model/System/Store.php (line 35)

Varien_Object
   |
   --Mage_Adminhtml_Model_System_Store
Variable Summary
Method Summary
string getGroupName (int $groupId)
array getStoreGroupOptionHash ([string $attribute = 'name'])
string getStoreName (int $storeId)
string getStoreNamePath (int $storeId)
string getStoreNameWithWebsite (int $storeId)
array getStoreOptionHash ([bool $withDefault = false], [string $attribute = 'name'])
array getStoresStructure ([bool $isAll = false], [array $storeIds = array()], [array $groupIds = array()], [array $websiteIds = array()])
array getStoreValuesForForm ([bool $empty = false], [bool $all = false])
string getWebsiteName (int $websiteId)
array getWebsiteOptionHash ([bool $withDefault = false], [string $attribute = 'name'])
array getWebsiteValuesForForm ([bool $empty = false], [bool $all = false])
Mage_Adminhtml_Model_System_Store reload ([string $type = null])
Variables
array $_groupCollection = array() (line 52)

Group collection groupId => Mage_Core_Model_Store_Group

  • access: protected
array $_storeCollection (line 60)

Store collection storeId => Mage_Core_Model_Store

  • access: protected
array $_websiteCollection = array() (line 44)

Website collection websiteId => Mage_Core_Model_Website

  • access: protected
Methods
Constructor __construct (line 73)

Init model Load Website, Group and Store collections

  • access: public
getGroupCollection (line 424)

Retrieve Group collection as array

  • access: public
array getGroupCollection ()
getGroupName (line 344)

Retrieve Group name by Id

  • access: public
string getGroupName (int $groupId)
  • int $groupId: groupId
getStoreCollection (line 434)

Retrieve Store collection as array

  • access: public
array getStoreCollection ()
getStoreData (line 374)

Retrieve store name with website and website store

  • access: public
Mage_Core_Model_Store getStoreData (int $storeId)
  • int $storeId
getStoreGroupOptionHash (line 314)

Get store groups as id => name associative array

  • access: public
array getStoreGroupOptionHash ([string $attribute = 'name'])
  • string $attribute
getStoreName (line 360)

Retrieve Store name by Id

  • access: public
string getStoreName (int $storeId)
  • int $storeId
getStoreNamePath (line 477)

Retrieve store path with website and website store

  • access: public
string getStoreNamePath (int $storeId)
  • int $storeId
getStoreNameWithWebsite (line 388)

Retrieve store name with website and website store

  • access: public
string getStoreNameWithWebsite (int $storeId)
  • int $storeId
getStoreOptionHash (line 299)

Get store views as id => name associative array

  • access: public
array getStoreOptionHash ([bool $withDefault = false], [string $attribute = 'name'])
  • bool $withDefault
  • string $attribute
getStoresStructure (line 188)

Retrieve stores structure

  • access: public
array getStoresStructure ([bool $isAll = false], [array $storeIds = array()], [array $groupIds = array()], [array $websiteIds = array()])
  • bool $isAll
  • array $storeIds
  • array $groupIds
  • array $websiteIds
getStoreValuesForForm (line 123)

Retrieve store values for form

  • access: public
array getStoreValuesForForm ([bool $empty = false], [bool $all = false])
  • bool $empty
  • bool $all
getWebsiteCollection (line 414)

Retrieve Website collection as array

  • access: public
array getWebsiteCollection ()
getWebsiteName (line 328)

Retrieve Website name by Id

  • access: public
string getWebsiteName (int $websiteId)
  • int $websiteId: websiteId
getWebsiteOptionHash (line 283)

Get websites as id => name associative array

  • access: public
array getWebsiteOptionHash ([bool $withDefault = false], [string $attribute = 'name'])
  • bool $withDefault
  • string $attribute
getWebsiteValuesForForm (line 251)

Website label/value array getter, compatible with form dropdown options

  • access: public
array getWebsiteValuesForForm ([bool $empty = false], [bool $all = false])
  • bool $empty
  • bool $all
reload (line 446)

Load/Reload collection(s) by type Allowed types: website, group, store or null for all

  • access: public
Mage_Adminhtml_Model_System_Store reload ([string $type = null])
  • string $type
setIsAdminScopeAllowed (line 503)

Specify whether to show admin-scope options

  • access: public
Mage_Adminhtml_Model_System_Store setIsAdminScopeAllowed (bool $value)
  • bool $value
_loadGroupCollection (line 94)

Load/Reload Group collection

  • access: protected
array _loadGroupCollection ()
_loadStoreCollection (line 110)

Load/Reload Store collection

  • access: protected
array _loadStoreCollection ()
_loadWebsiteCollection (line 83)

Load/Reload Website collection

  • access: protected
array _loadWebsiteCollection ()

Documentation generated on Fri, 11 Feb 2011 17:13:30 +0200 by phpDocumentor 1.4.3