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
Config
Storage
Writer.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Framework\App\Config\Storage
;
9
10
use
Magento\Framework\App\Config\ScopeConfigInterface
;
11
12
class
Writer
implements
\Magento\Framework\App\Config\Storage\WriterInterface
13
{
19
protected
$_resource
;
20
24
public
function
__construct
(\
Magento
\Framework\
App
\
Config
\ConfigResource\
ConfigInterface
$resource
)
25
{
26
$this->_resource =
$resource
;
27
}
28
37
public
function
delete
(
$path
, $scope =
ScopeConfigInterface::SCOPE_TYPE_DEFAULT
, $scopeId = 0)
38
{
39
$this->_resource->deleteConfig(rtrim(
$path
,
'/'
), $scope, $scopeId);
40
}
41
51
public
function
save
(
$path
,
$value
, $scope =
ScopeConfigInterface::SCOPE_TYPE_DEFAULT
, $scopeId = 0)
52
{
53
$this->_resource->saveConfig(rtrim(
$path
,
'/'
),
$value
, $scope, $scopeId);
54
}
55
}
Magento\Framework\App
Writer
Magento\Framework\Event\ConfigInterface
Definition:
ConfigInterface.php:14
Magento\Framework\App\Config\ScopeConfigInterface\SCOPE_TYPE_DEFAULT
const SCOPE_TYPE_DEFAULT
Definition:
ScopeConfigInterface.php:20
$resource
$resource
Definition:
bulk.php:12
Magento\Framework\App\Config\Storage
Definition:
Writer.php:8
$value
$value
Definition:
gender.phtml:16
Magento
Magento\Framework\App\Config\Storage\Writer\__construct
__construct(\Magento\Framework\App\Config\ConfigResource\ConfigInterface $resource)
Definition:
Writer.php:24
Magento\Framework\App\Config
Definition:
Config.php:17
Magento\Framework\App\Config\ScopeConfigInterface
Definition:
ScopeConfigInterface.php:15
Magento\Framework\App\Config\Storage\Writer\save
save($path, $value, $scope=ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeId=0)
Definition:
Writer.php:51
$path
$path
Definition:
import_with_filesystem_images.php:14
Magento\Framework\App\Config\Storage\Writer\$_resource
$_resource
Definition:
Writer.php:19