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-sales
Model
Config
SchemaLocator.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\Sales\Model\Config
;
11
12
use
Magento\Framework\Module\Dir
;
13
14
class
SchemaLocator
implements
\Magento\Framework\Config\SchemaLocatorInterface
15
{
21
protected
$_schema
;
22
28
protected
$_perFileSchema
;
29
33
public
function
__construct
(\
Magento
\Framework\Module\
Dir
\
Reader
$moduleReader)
34
{
35
$this->_schema = $moduleReader->getModuleDir(
Dir::MODULE_ETC_DIR
,
'Magento_Sales'
) .
'/'
.
'sales.xsd'
;
36
}
37
43
public
function
getSchema
()
44
{
45
return
$this->_schema
;
46
}
47
53
public
function
getPerFileSchema
()
54
{
55
return
$this->_perFileSchema
;
56
}
57
}
Magento\Framework\Module\Dir
Definition:
Reader.php:8
Magento\Framework\Module\Dir\MODULE_ETC_DIR
const MODULE_ETC_DIR
Definition:
Dir.php:18
Magento\Sales\Model\Config\SchemaLocator\getSchema
getSchema()
Definition:
SchemaLocator.php:43
Magento\Sales\Model\Config
Magento\Sales\Model\Config\SchemaLocator\getPerFileSchema
getPerFileSchema()
Definition:
SchemaLocator.php:53
Magento\Sales\Model\Config\SchemaLocator\$_perFileSchema
$_perFileSchema
Definition:
SchemaLocator.php:28
Magento
Magento\Sales\Model\Config\SchemaLocator\__construct
__construct(\Magento\Framework\Module\Dir\Reader $moduleReader)
Definition:
SchemaLocator.php:33
Magento\Framework\Config\SchemaLocatorInterface
Definition:
SchemaLocatorInterface.php:16
Magento\Framework\Module\Dir
Definition:
Dir.php:13
Magento\Sales\Model\Config\SchemaLocator\$_schema
$_schema
Definition:
SchemaLocator.php:21
Magento\Framework\Module\Dir\Reader
Definition:
Reader.php:20
Magento\Sales\Model\Config\SchemaLocator
Definition:
SchemaLocator.php:14