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
App
MutableScopeConfig.php
Go to the documentation of this file.
1
<?php
9
namespace
Magento\Framework\App
;
10
11
use
Magento\Framework\App\Config\MutableScopeConfigInterface
;
12
use
Magento\Framework\App\Config\ScopeConfigInterface
;
13
17
class
MutableScopeConfig
extends
Config
implements
MutableScopeConfigInterface
18
{
22
private
$data;
23
27
public
function
getValue
(
28
$path
=
null
,
29
$scope =
ScopeConfigInterface::SCOPE_TYPE_DEFAULT
,
30
$scopeCode =
null
31
) {
32
if
(isset($this->data[$scope][$scopeCode][
$path
])) {
33
return
$this->data[$scope][$scopeCode][
$path
];
34
}
35
36
return
parent::getValue(
$path
, $scope, $scopeCode);
37
}
38
48
public
function
setValue
(
49
$path
,
50
$value
,
51
$scope =
ScopeConfigInterface::SCOPE_TYPE_DEFAULT
,
52
$scopeCode =
null
53
) {
54
$this->data[$scope][$scopeCode][
$path
] =
$value
;
55
}
56
60
public
function
clean
()
61
{
62
$this->data =
null
;
63
parent::clean();
64
}
65
}
Magento\Framework\App
Magento\Framework\App\MutableScopeConfig\clean
clean()
Definition:
MutableScopeConfig.php:60
Magento\Framework\App\Config\ScopeConfigInterface\SCOPE_TYPE_DEFAULT
const SCOPE_TYPE_DEFAULT
Definition:
ScopeConfigInterface.php:20
Magento\Framework\App\MutableScopeConfig
Definition:
MutableScopeConfig.php:17
$value
$value
Definition:
gender.phtml:16
Magento\Framework\App\Config\MutableScopeConfigInterface
Definition:
MutableScopeConfigInterface.php:15
Magento\Framework\App\Config
Definition:
Config.php:17
Magento\Framework\App\MutableScopeConfig\getValue
getValue( $path=null, $scope=ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode=null)
Definition:
MutableScopeConfig.php:27
Magento\Framework\App\Config\ScopeConfigInterface
Definition:
ScopeConfigInterface.php:15
Magento\Framework\App\MutableScopeConfig\setValue
setValue( $path, $value, $scope=ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode=null)
Definition:
MutableScopeConfig.php:48
$path
$path
Definition:
import_with_filesystem_images.php:14