Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Config
Scope.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Config
;
7
8
class
Scope
implements
\Magento\Framework\Config\ScopeInterface
,
\Magento\Framework\Config\ScopeListInterface
9
{
15
protected
$_defaultScope
;
16
22
protected
$_currentScope
;
23
29
protected
$_areaList
;
30
37
public
function
__construct
(\
Magento
\Framework\
App
\AreaList $areaList, $defaultScope =
'primary'
)
38
{
39
$this->_defaultScope = $this->_currentScope = $defaultScope;
40
$this->_areaList = $areaList;
41
}
42
48
public
function
getCurrentScope
()
49
{
50
return
$this->_currentScope
;
51
}
52
59
public
function
setCurrentScope
($scope)
60
{
61
$this->_currentScope = $scope;
62
}
63
69
public
function
getAllScopes
()
70
{
71
$codes = $this->_areaList->getCodes();
72
array_unshift($codes, $this->_defaultScope);
73
return
$codes;
74
}
75
}
Magento\Framework\App
Magento\Framework\Config\Scope\$_currentScope
$_currentScope
Definition:
Scope.php:22
Magento\Framework\Config\ScopeListInterface
Definition:
ScopeListInterface.php:14
Magento\Framework\Config\Scope\__construct
__construct(\Magento\Framework\App\AreaList $areaList, $defaultScope='primary')
Definition:
Scope.php:37
Magento\Framework\Config\Scope\setCurrentScope
setCurrentScope($scope)
Definition:
Scope.php:59
Magento\Framework\Config\ScopeInterface
Definition:
ScopeInterface.php:14
Magento\Framework\Config\Scope\getCurrentScope
getCurrentScope()
Definition:
Scope.php:48
Magento\Framework\Config\Scope\$_defaultScope
$_defaultScope
Definition:
Scope.php:15
Magento\Framework\Config
Definition:
AbstractXml.php:10
Magento
Magento\Framework\Config\Scope
Definition:
Scope.php:8
Magento\Framework\Config\Scope\$_areaList
$_areaList
Definition:
Scope.php:29
Magento\Framework\Config\Scope\getAllScopes
getAllScopes()
Definition:
Scope.php:69