Class Mage_Core_Model_Website

Description

Core Website model

Located in /Core/Model/Website.php (line 35)

Varien_Object
   |
   --Mage_Core_Model_Abstract
      |
      --Mage_Core_Model_Website
Class Constant Summary
CACHE_TAG = 'website'
ENTITY = 'core_website'
Variable Summary
Method Summary
void getCode ()
mixed getConfig (string $path)
Varien_Db_Select getDefaultStoresSelect ([$withDefault $withDefault = false])
array getGroupIds ()
array getGroups ()
array getStoreCodes ()
array getStoreIds ()
array getStores ()
bool isCanDelete ()
bool isReadOnly ([bool $value = null])
Mage_Core_Model_Website load (int|string $id, [string $field = null])
void setGroups (array $groups)
void setStores (array $stores)
void _beforeDelete ()
void _construct ()
void _loadGroups ()
void _loadStores ()
Variables
mixed $_cacheTag = true (line 39)
  • access: protected

Redefinition of:
Mage_Core_Model_Abstract::$_cacheTag
Model cache tag for clear cache in after save and after delete
array $_configCache = array() (line 56)

Cache configuration array

  • access: protected
Mage_Core_Model_Store_Group $_defaultGroup (line 112)

Website default group

  • access: protected
Mage_Core_Model_Store $_defaultStore (line 119)

Website default store

  • access: protected
string $_eventObject = 'website' (line 49)
  • access: protected

Redefinition of:
Mage_Core_Model_Abstract::$_eventObject
Parameter name in event
string $_eventPrefix = 'website' (line 44)
  • access: protected

Redefinition of:
Mage_Core_Model_Abstract::$_eventPrefix
Prefix of model events names
array $_groupIds = array() (line 70)

Website group ids array

  • access: protected
array $_groups (line 63)

Website Group Coleection array

  • access: protected
int $_groupsCount (line 77)

The number of groups in a website

  • access: protected
bool $_isCanDelete (line 126)

is can delete website

  • access: protected
array $_storeCodes = array() (line 98)

Website store codes array

  • access: protected
array $_storeIds = array() (line 91)

Website store ids array

  • access: protected
array $_stores (line 84)

Website Store collection array

  • access: protected
int $_storesCount = 0 (line 105)

The number of stores in a website

  • access: protected

Inherited Variables

Inherited from Mage_Core_Model_Abstract

Mage_Core_Model_Abstract::$_dataSaveAllowed
Mage_Core_Model_Abstract::$_isObjectNew
Mage_Core_Model_Abstract::$_resource
Mage_Core_Model_Abstract::$_resourceCollectionName
Mage_Core_Model_Abstract::$_resourceName
Methods
getBaseCurrency (line 496)

Retrieve website base currency

  • access: public
Mage_Directory_Model_Currency getBaseCurrency ()
getBaseCurrencyCode (line 482)

Retrieve website base currency code

  • access: public
string getBaseCurrencyCode ()
getCode (line 454)
  • access: public
void getCode ()
getConfig (line 193)

Get website config data

  • access: public
mixed getConfig (string $path)
  • string $path
getDefaultGroup (line 308)

Retrieve default group model

  • access: public
Mage_Core_Model_Store_Group getDefaultGroup ()
getDefaultGroupId (line 449)
  • access: public
void getDefaultGroupId ()
getDefaultStore (line 511)

Retrieve Default Website Store or null

  • access: public
Mage_Core_Model_Store getDefaultStore ()
getDefaultStoresSelect (line 525)

Retrieve default stores select object Select fields website_id, store_id

  • access: public
Varien_Db_Select getDefaultStoresSelect ([$withDefault $withDefault = false])
  • $withDefault $withDefault: include/exclude default admin website
getGroupCollection (line 257)

Retrieve new (not loaded) Group collection object with website filter

  • access: public
getGroupIds (line 282)

Retrieve website group ids

  • access: public
array getGroupIds ()
getGroups (line 269)

Retrieve website groups

  • access: public
array getGroups ()
getGroupsCount (line 295)

Retrieve number groups in a website

  • access: public
int getGroupsCount ()
getStoreCodes (line 401)

Retrieve website store codes

  • access: public
array getStoreCodes ()
getStoreCollection (line 363)

Retrieve new (not loaded) Store collection object with website filter

  • access: public
getStoreIds (line 388)

Retrieve website store ids

  • access: public
array getStoreIds ()
getStores (line 375)

Retrieve wersite store objects

  • access: public
array getStores ()
getStoresCount (line 414)

Retrieve number stores in a website

  • access: public
int getStoresCount ()
getWebsiteGroupStore (line 444)

Retrieve unique website-group-store key for collection with groups and stores

  • access: public
string getWebsiteGroupStore ()
isCanDelete (line 427)

is can delete website

  • access: public
bool isCanDelete ()
isReadOnly (line 536)

Get/Set isReadOnly flag

  • access: public
bool isReadOnly ([bool $value = null])
  • bool $value
load (line 149)

Custom load

  • access: public
Mage_Core_Model_Website load (int|string $id, [string $field = null])
  • int|string $id
  • string $field

Redefinition of:
Mage_Core_Model_Abstract::load()
Load object data
loadConfig (line 164)

Load website configuration

  • access: public
Mage_Core_Model_Website loadConfig (string $code)
  • string $code
setGroups (line 237)

Set website groups

  • access: public
void setGroups (array $groups)
  • array $groups
setStores (line 343)

Set website stores

  • access: public
void setStores (array $stores)
  • array $stores
_afterDelete (line 470)

rewrite in order to clear configuration cache

  • access: protected
Mage_Core_Model_Website _afterDelete ()

Redefinition of:
Mage_Core_Model_Abstract::_afterDelete()
Processing object after delete data
_beforeDelete (line 459)
  • access: protected
void _beforeDelete ()

Redefinition of:
Mage_Core_Model_Abstract::_beforeDelete()
Processing object before delete data
_construct (line 137)

init model

  • access: protected
void _construct ()
_loadGroups (line 218)

Load group collection and set internal data

  • access: protected
void _loadGroups ()
_loadStores (line 323)

Load store collection and set internal data

  • access: protected
void _loadStores ()

Inherited Methods

Inherited From Mage_Core_Model_Abstract

Mage_Core_Model_Abstract::afterCommitCallback()
Mage_Core_Model_Abstract::afterLoad()
Mage_Core_Model_Abstract::cleanModelCache()
Mage_Core_Model_Abstract::clearInstance()
Mage_Core_Model_Abstract::delete()
Mage_Core_Model_Abstract::getCacheIdTags()
Mage_Core_Model_Abstract::getCacheTags()
Mage_Core_Model_Abstract::getCollection()
Mage_Core_Model_Abstract::getEntityId()
Mage_Core_Model_Abstract::getId()
Mage_Core_Model_Abstract::getIdFieldName()
Mage_Core_Model_Abstract::getResource()
Mage_Core_Model_Abstract::getResourceCollection()
Mage_Core_Model_Abstract::getResourceName()
Mage_Core_Model_Abstract::isObjectNew()
Mage_Core_Model_Abstract::load()
Mage_Core_Model_Abstract::save()
Mage_Core_Model_Abstract::setId()
Mage_Core_Model_Abstract::_afterDelete()
Mage_Core_Model_Abstract::_afterDeleteCommit()
Mage_Core_Model_Abstract::_afterLoad()
Mage_Core_Model_Abstract::_afterSave()
Mage_Core_Model_Abstract::_afterSaveCommit()
Mage_Core_Model_Abstract::_beforeDelete()
Mage_Core_Model_Abstract::_beforeLoad()
Mage_Core_Model_Abstract::_beforeSave()
Mage_Core_Model_Abstract::_clearData()
Mage_Core_Model_Abstract::_clearReferences()
Mage_Core_Model_Abstract::_getEventData()
Mage_Core_Model_Abstract::_getResource()
Mage_Core_Model_Abstract::_hasModelChanged()
Mage_Core_Model_Abstract::_init()
Mage_Core_Model_Abstract::_protectFromNonAdmin()
Mage_Core_Model_Abstract::_setResourceModel()
Class Constants
CACHE_TAG = 'website' (line 38)
ENTITY = 'core_website' (line 37)

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