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-cron
Setup
Recurring.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\Cron\Setup
;
9
10
use
Magento\Framework\Setup\InstallSchemaInterface
;
11
use
Magento\Framework\Setup\ModuleContextInterface
;
12
use
Magento\Framework\Setup\SchemaSetupInterface
;
13
17
class
Recurring
implements
InstallSchemaInterface
18
{
22
private
$schedule;
23
28
public
function
__construct
(
29
\
Magento
\Cron\Model\
ResourceModel
\Schedule $schedule
30
) {
31
$this->schedule = $schedule;
32
}
33
37
public
function
install
(
SchemaSetupInterface
$setup
,
ModuleContextInterface
$context)
38
{
39
$connection
= $this->schedule->getConnection();
40
$connection
->update(
41
$this->schedule->getMainTable(),
42
[
43
'status'
=>
\Magento\Cron\Model\Schedule::STATUS_ERROR
,
44
'messages'
=>
'The job is terminated due to system upgrade'
45
],
46
$connection
->quoteInto(
'status = ?'
, \
Magento
\Cron\Model\Schedule::STATUS_RUNNING)
47
);
48
}
49
}
Magento\Catalog\Model\ResourceModel\Product
Definition:
CollectionTest.php:6
Magento\Cron\Setup\Recurring\install
install(SchemaSetupInterface $setup, ModuleContextInterface $context)
Definition:
Recurring.php:37
Magento\Framework\Setup\ModuleContextInterface
Definition:
ModuleContextInterface.php:13
Magento\Framework\Setup\SchemaSetupInterface
Definition:
SchemaSetupInterface.php:13
Magento\Cron\Setup\Recurring
Definition:
Recurring.php:17
Magento
$setup
$setup
Definition:
trigger.php:12
Magento\Cron\Setup
Definition:
Recurring.php:8
Magento\Cron\Setup\Recurring\__construct
__construct(\Magento\Cron\Model\ResourceModel\Schedule $schedule)
Definition:
Recurring.php:28
Magento\Cron\Model\Schedule\STATUS_ERROR
const STATUS_ERROR
Definition:
Schedule.php:46
$connection
$connection
Definition:
bulk.php:13
Magento\Framework\Setup\InstallSchemaInterface
Definition:
InstallSchemaInterface.php:14