Start enviromment emulation of the specified store
Function returns information about initial store environment and emulates environment of another store
Varien_Object
startEnvironmentEmulation
(integer $storeId, [string $area = Mage_Core_Model_App_Area::AREA_FRONTEND], [boolean $emulateSroreInlineTranslation = false])
-
integer
$storeId
-
string
$area
-
boolean
$emulateSroreInlineTranslation: emulate inline translation of the specified store or just disable it
Stop enviromment emulation
Function restores initial store environment
-
Varien_Object
$initialEnvironmentInfo: information about environment of the initial store
Apply design of the specified store
array
_emulateDesign
(integer $storeId, [string $area = Mage_Core_Model_App_Area::AREA_FRONTEND])
-
integer
$storeId
-
string
$area
Emulate inline translation of the specified store
Function disables inline translation if $storeId is null
boolean
_emulateInlineTranslation
([integer|null $storeId = null], [string $area = Mage_Core_Model_App_Area::AREA_FRONTEND])
-
integer|null
$storeId
-
string
$area
Apply locale of the specified store
string
_emulateLocale
(integer $storeId, [string $area = Mage_Core_Model_App_Area::AREA_FRONTEND])
-
integer
$storeId
-
string
$area
Restore design of the initial store
Restore initial inline translation state
-
boolean
$initialTranslateInline
Restore locale of the initial store
Mage_Core_Model_App_Emulation
_restoreInitialLocale
(
string $initialLocaleCode, [
string $initialArea =
Mage_Core_Model_App_Area::AREA_ADMINHTML])
-
string
$initialLocaleCode
-
string
$initialArea