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
Model
Config
Source
Frequency.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Cron\Model\Config\Source
;
7
8
class
Frequency
implements
\Magento\Framework\Option\ArrayInterface
9
{
13
protected
static
$_options
;
14
15
const
CRON_DAILY
=
'D'
;
16
17
const
CRON_WEEKLY
=
'W'
;
18
19
const
CRON_MONTHLY
=
'M'
;
20
24
public
function
toOptionArray
()
25
{
26
if
(!self::$_options) {
27
self::$_options = [
28
[
'label'
=>
__
(
'Daily'
),
'value'
=>
self::CRON_DAILY
],
29
[
'label'
=>
__
(
'Weekly'
),
'value'
=>
self::CRON_WEEKLY
],
30
[
'label'
=>
__
(
'Monthly'
),
'value'
=>
self::CRON_MONTHLY
],
31
];
32
}
33
return
self::$_options
;
34
}
35
}
Magento\Cron\Model\Config\Source\Frequency\CRON_MONTHLY
const CRON_MONTHLY
Definition:
Frequency.php:19
__
__()
Definition:
__.php:13
Magento\Framework\Option\ArrayInterface
Definition:
ArrayInterface.php:11
Magento\Cron\Model\Config\Source\Frequency\CRON_WEEKLY
const CRON_WEEKLY
Definition:
Frequency.php:17
Magento\Cron\Model\Config\Source\Frequency\CRON_DAILY
const CRON_DAILY
Definition:
Frequency.php:15
Magento\Cron\Model\Config\Source\Frequency\$_options
static $_options
Definition:
Frequency.php:13
Magento\Cron\Model\Config\Source
Definition:
Frequency.php:6
Magento\Cron\Model\Config\Source\Frequency\toOptionArray
toOptionArray()
Definition:
Frequency.php:24
Magento\Cron\Model\Config\Source\Frequency
Definition:
Frequency.php:8