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-import-export
Model
Export
Factory.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\ImportExport\Model\Export
;
11
12
class
Factory
13
{
19
protected
$_objectManager
;
20
24
public
function
__construct
(\
Magento
\Framework\ObjectManagerInterface
$objectManager
)
25
{
26
$this->_objectManager =
$objectManager
;
27
}
28
34
public
function
create
(
$className
)
35
{
36
if
(!
$className
) {
37
throw
new \InvalidArgumentException(
'Incorrect class name'
);
38
}
39
40
$attributeCollection
= $this->_objectManager->create(
$className
);
41
42
if
(!
$attributeCollection
instanceof \
Magento
\Framework\Data\Collection) {
43
throw
new \InvalidArgumentException(
44
sprintf(
45
"Attribute factory class \"%s\" must implement \Magento\Framework\Data\Collection."
,
46
get_class(
$attributeCollection
)
47
)
48
);
49
}
50
return
$attributeCollection
;
51
}
52
}
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\ImportExport\Model\Export\Factory
Definition:
Factory.php:12
Magento\ImportExport\Model\Export
Definition:
AbstractStubEntity.php:10
Magento\ImportExport\Model\Export\Factory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
Definition:
Factory.php:24
Magento
Magento\ImportExport\Model\Export\Factory\$_objectManager
$_objectManager
Definition:
Factory.php:19
$attributeCollection
$attributeCollection
Definition:
attribute_set_with_image_attribute_rollback.php:15
Magento\ImportExport\Model\Export\Factory\create
create($className)
Definition:
Factory.php:34
$className
if($currentSelectedMethod==$_code) $className
Definition:
form.phtml:31