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
Api
SearchCriteria
CollectionProcessor.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Api\SearchCriteria
;
7
8
use
Magento\Framework\Api\SearchCriteriaInterface
;
9
use
Magento\Framework\Data\Collection\AbstractDb
;
10
11
class
CollectionProcessor
implements
CollectionProcessorInterface
12
{
16
private
$processors;
17
21
public
function
__construct
(
22
array $processors
23
) {
24
$this->processors = $processors;
25
}
26
30
public
function
process
(
SearchCriteriaInterface
$searchCriteria
,
AbstractDb
$collection
)
31
{
32
foreach
($this->processors as
$name
=>
$processor
) {
33
if
(!(
$processor
instanceof
CollectionProcessorInterface
)) {
34
throw
new \InvalidArgumentException(
35
sprintf(
'Processor %s must implement %s interface.'
,
$name
, CollectionProcessorInterface::class)
36
);
37
}
38
$processor
->process(
$searchCriteria
,
$collection
);
39
}
40
}
41
}
Magento\Framework\Api\SearchCriteria\CollectionProcessor\process
process(SearchCriteriaInterface $searchCriteria, AbstractDb $collection)
Definition:
CollectionProcessor.php:30
Magento\Framework\Api\SearchCriteriaInterface
Definition:
SearchCriteriaInterface.php:15
$processor
$processor
Definition:
404.php:10
$searchCriteria
$searchCriteria
Definition:
order_rollback.php:16
Magento\Framework\Data\Collection\AbstractDb
Definition:
AbstractDb.php:23
Magento\Framework\Api\SearchCriteria
Magento\Framework\Api\SearchCriteria\CollectionProcessorInterface
Definition:
CollectionProcessorInterface.php:15
Magento\Framework\Api\SearchCriteria\CollectionProcessor
Definition:
CollectionProcessor.php:11
Magento\Framework\Api\SearchCriteria\CollectionProcessor\__construct
__construct(array $processors)
Definition:
CollectionProcessor.php:21
$collection
$collection
Definition:
catalog_category_with_apostrophe_rollback.php:17
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14