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-newsletter
Controller
Adminhtml
Queue
Sending.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Newsletter\Controller\Adminhtml\Queue
;
8
9
class
Sending
extends
\Magento\Newsletter\Controller\Adminhtml\Queue
10
{
16
public
function
execute
()
17
{
18
// Todo: put it somewhere in config!
19
$countOfQueue = 3;
20
$countOfSubscriptions = 20;
21
22
$collection
= $this->_objectManager->create(
23
\
Magento
\Newsletter\Model\
ResourceModel
\
Queue
\Collection::class
24
)->setPageSize(
25
$countOfQueue
26
)->setCurPage(
27
1
28
)->addOnlyForSendingFilter()->load();
29
30
$collection
->walk(
'sendPerSubscriber'
, [$countOfSubscriptions]);
31
}
32
}
Magento\Catalog\Model\ResourceModel\Product
Definition:
CollectionTest.php:6
Magento\Newsletter\Controller\Adminhtml\Queue\Sending
Definition:
Sending.php:9
Magento
Magento\Newsletter\Controller\Adminhtml\Queue\Sending\execute
execute()
Definition:
Sending.php:16
Magento\Newsletter\Controller\Adminhtml\Queue
Definition:
Queue.php:14
Magento\Newsletter\Controller\Adminhtml\Queue
Definition:
Cancel.php:7
$collection
$collection
Definition:
catalog_category_with_apostrophe_rollback.php:17