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-ups
Block
Backend
System
CarrierConfig.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Ups\Block\Backend\System
;
7
8
use
Magento\Backend\Block\Template
;
9
use
Magento\Backend\Block\Template\Context
as TemplateContext;
10
use
Magento\Store\Model\Website
;
11
use
Magento\Ups\Helper\Config
as ConfigHelper;
12
19
class
CarrierConfig
extends
Template
20
{
26
protected
$carrierConfig
;
27
31
protected
$_websiteModel
;
32
39
public
function
__construct
(
40
TemplateContext $context,
41
ConfigHelper
$carrierConfig
,
42
Website
$websiteModel,
43
array
$data
= []
44
) {
45
$this->carrierConfig =
$carrierConfig
;
46
$this->_websiteModel = $websiteModel;
47
parent::__construct($context,
$data
);
48
}
49
55
public
function
getCarrierConfig
()
56
{
57
return
$this->carrierConfig
;
58
}
59
65
public
function
getWebsiteModel
()
66
{
67
return
$this->_websiteModel
;
68
}
69
77
public
function
getConfig
(
$path
,
$store
=
null
)
78
{
79
return
$this->_scopeConfig->getValue(
$path
, \
Magento
\Store\Model\ScopeInterface::SCOPE_STORE,
$store
);
80
}
81
}
Magento\Backend\Block\Template\Context
Definition:
Context.php:23
Magento\Ups\Block\Backend\System\CarrierConfig\getCarrierConfig
getCarrierConfig()
Definition:
CarrierConfig.php:55
Magento\Ups\Block\Backend\System\CarrierConfig\$_websiteModel
$_websiteModel
Definition:
CarrierConfig.php:31
Magento\Backend\Block\Template
Definition:
Template.php:33
Magento\Store\Model\Website
Definition:
Website.php:26
Magento\Ups\Helper\Config
Definition:
Config.php:14
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Ups\Block\Backend\System
Definition:
CarrierConfig.php:6
Magento
Magento\Ups\Block\Backend\System\CarrierConfig
Definition:
CarrierConfig.php:19
Magento\Ups\Block\Backend\System\CarrierConfig\getWebsiteModel
getWebsiteModel()
Definition:
CarrierConfig.php:65
Magento\Ups\Block\Backend\System\CarrierConfig\$carrierConfig
$carrierConfig
Definition:
CarrierConfig.php:26
$store
$store
Definition:
payment_configuration_rollback.php:33
Magento\Ups\Block\Backend\System\CarrierConfig\__construct
__construct(TemplateContext $context, ConfigHelper $carrierConfig, Website $websiteModel, array $data=[])
Definition:
CarrierConfig.php:39
Magento\Ups\Block\Backend\System\CarrierConfig\getConfig
getConfig($path, $store=null)
Definition:
CarrierConfig.php:77
$path
$path
Definition:
import_with_filesystem_images.php:14
Magento\Backend\Block\Template
Definition:
Context.php:6