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-asynchronous-operations
Model
BulkStatus
CalculatedStatusSql.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\AsynchronousOperations\Model\BulkStatus
;
8
9
use
Magento\AsynchronousOperations\Api\Data\BulkSummaryInterface
;
10
11
class
CalculatedStatusSql
12
{
19
public
function
get
($operationTableName)
20
{
21
return
new \Zend_Db_Expr(
22
'(IF(
23
(SELECT count(*)
24
FROM '
. $operationTableName .
'
25
WHERE bulk_uuid = main_table.uuid
26
) = 0,
27
'
.
BulkSummaryInterface::NOT_STARTED
.
',
28
(SELECT MAX(status) FROM '
. $operationTableName .
' WHERE bulk_uuid = main_table.uuid)
29
))'
30
);
31
}
32
}
Magento\AsynchronousOperations\Api\Data\BulkSummaryInterface
Definition:
BulkSummaryInterface.php:14
Magento\AsynchronousOperations\Model\BulkStatus
Definition:
CalculatedStatusSql.php:7
Magento\AsynchronousOperations\Model\BulkStatus\CalculatedStatusSql
Definition:
CalculatedStatusSql.php:11
Magento\Framework\Bulk\BulkSummaryInterface\NOT_STARTED
const NOT_STARTED
Definition:
BulkSummaryInterface.php:28