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
Mview
Processor.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Mview
;
7
8
class
Processor
implements
ProcessorInterface
9
{
13
protected
$viewsFactory
;
14
18
public
function
__construct
(
View
\CollectionFactory
$viewsFactory
)
19
{
20
$this->viewsFactory =
$viewsFactory
;
21
}
22
29
protected
function
getViewsByGroup
(
$group
=
''
)
30
{
31
$collection
= $this->viewsFactory->create();
32
return
$group
?
$collection
->getItemsByColumnValue(
'group'
,
$group
) :
$collection
->getItems();
33
}
34
41
public
function
update
(
$group
=
''
)
42
{
43
foreach
($this->
getViewsByGroup
(
$group
) as $view) {
44
$view->update();
45
}
46
}
47
54
public
function
clearChangelog
(
$group
=
''
)
55
{
56
foreach
($this->
getViewsByGroup
(
$group
) as $view) {
57
$view->clearChangelog();
58
}
59
}
60
}
Magento\Framework\Mview\Processor
Definition:
Processor.php:8
$group
$group
Definition:
sections.phtml:16
Magento\Framework\Mview\Processor\getViewsByGroup
getViewsByGroup($group='')
Definition:
Processor.php:29
Magento\Framework\Mview\Processor\clearChangelog
clearChangelog($group='')
Definition:
Processor.php:54
Magento\Framework\Mview\Processor\update
update($group='')
Definition:
Processor.php:41
Magento\Framework\Mview
Definition:
ActionFactory.php:7
Magento\Framework\Mview\ProcessorInterface
Definition:
ProcessorInterface.php:12
Magento\Framework\Mview\Processor\__construct
__construct(View\CollectionFactory $viewsFactory)
Definition:
Processor.php:18
Magento\Framework\Mview\Processor\$viewsFactory
$viewsFactory
Definition:
Processor.php:13
Magento\Framework\Mview\View
Definition:
View.php:15
$collection
$collection
Definition:
catalog_category_with_apostrophe_rollback.php:17