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
Data
SearchResultIteratorFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Data
;
7
11
class
SearchResultIteratorFactory
12
{
16
protected
$objectManager
;
17
21
public
function
__construct
(\
Magento
\Framework\
ObjectManagerInterface
$objectManager
)
22
{
23
$this->objectManager =
$objectManager
;
24
}
25
34
public
function
create
(
$className
, array
$arguments
= [])
35
{
36
$resultIterator = $this->objectManager->create(
$className
,
$arguments
);
37
if
(!$resultIterator instanceof \Traversable) {
38
throw
new \Magento\Framework\Exception\LocalizedException(
39
new
\
Magento
\Framework\
Phrase
(
'%1 should be an iterator'
, [
$className
])
40
);
41
}
42
return
$resultIterator;
43
}
44
}
Magento\Framework\Data\SearchResultIteratorFactory
Definition:
SearchResultIteratorFactory.php:11
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\Data
Definition:
AbstractCriteria.php:6
Magento\Framework\Data\SearchResultIteratorFactory\$objectManager
$objectManager
Definition:
SearchResultIteratorFactory.php:16
Magento
$arguments
$arguments
Definition:
final_price.phtml:24
Magento\Framework\Phrase
Definition:
Phrase.php:17
Magento\Framework\Data\SearchResultIteratorFactory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
Definition:
SearchResultIteratorFactory.php:21
Magento\Framework\Data\SearchResultIteratorFactory\create
create($className, array $arguments=[])
Definition:
SearchResultIteratorFactory.php:34
$className
if($currentSelectedMethod==$_code) $className
Definition:
form.phtml:31