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
module-backend
App
Config.php
Go to the documentation of this file.
1
<?php
9
namespace
Magento\Backend\App
;
10
11
use
Magento\Config\App\Config\Type\System
;
12
use
Magento\Framework\App\Config\ScopeConfigInterface
;
13
17
class
Config
implements
ConfigInterface
18
{
22
protected
$appConfig
;
23
27
private
$data;
28
33
public
function
__construct
(\
Magento
\Framework\
App
\
Config
$appConfig
)
34
{
35
$this->appConfig =
$appConfig
;
36
}
37
41
public
function
getValue
(
$path
)
42
{
43
if
(isset($this->data[
$path
])) {
44
return
$this->data[
$path
];
45
}
46
47
$configPath =
ScopeConfigInterface::SCOPE_TYPE_DEFAULT
;
48
if
(
$path
) {
49
$configPath .=
'/'
.
$path
;
50
}
51
return
$this->appConfig->get(
System::CONFIG_TYPE
, $configPath);
52
}
53
57
public
function
setValue
(
$path
,
$value
)
58
{
59
$this->data[
$path
] =
$value
;
60
}
61
65
public
function
isSetFlag
(
$path
)
66
{
67
$configPath =
ScopeConfigInterface::SCOPE_TYPE_DEFAULT
;
68
if
(
$path
) {
69
$configPath .=
'/'
.
$path
;
70
}
71
return
(
bool
) $this->appConfig->get(
System::CONFIG_TYPE
, $configPath);
72
}
73
}
Magento\Framework\App
Magento\Backend\App\Config\setValue
setValue($path, $value)
Definition:
Config.php:57
Magento\Backend\App\ConfigInterface
Definition:
ConfigInterface.php:15
Magento\Framework\App\Config\ScopeConfigInterface\SCOPE_TYPE_DEFAULT
const SCOPE_TYPE_DEFAULT
Definition:
ScopeConfigInterface.php:20
Magento\Config\App\Config\Type\System
Definition:
Reader.php:6
Magento\Backend\App\Config\isSetFlag
isSetFlag($path)
Definition:
Config.php:65
Magento\Backend\App\Config\$appConfig
$appConfig
Definition:
Config.php:22
Magento\Backend\App\Config
Definition:
Config.php:17
$value
$value
Definition:
gender.phtml:16
Magento\Backend\App\Config\__construct
__construct(\Magento\Framework\App\Config $appConfig)
Definition:
Config.php:33
Magento
Magento\Config\App\Config\Type\System\CONFIG_TYPE
const CONFIG_TYPE
Definition:
System.php:31
Magento\Framework\App\Config\ScopeConfigInterface
Definition:
ScopeConfigInterface.php:15
$path
$path
Definition:
import_with_filesystem_images.php:14
Magento\Backend\App\Config\getValue
getValue($path)
Definition:
Config.php:41
Magento\Backend\App
Definition:
AbstractActionTest.php:6