Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields | Static Protected Attributes
Frequency Class Reference
Inheritance diagram for Frequency:
ArrayInterface OptionSourceInterface

Public Member Functions

 toOptionArray ()
 

Data Fields

const CRON_DAILY = 'D'
 
const CRON_WEEKLY = 'W'
 
const CRON_MONTHLY = 'M'
 

Static Protected Attributes

static $_options
 

Detailed Description

Definition at line 8 of file Frequency.php.

Member Function Documentation

◆ toOptionArray()

toOptionArray ( )
Returns
array

Implements OptionSourceInterface.

Definition at line 24 of file Frequency.php.

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  }
__()
Definition: __.php:13

Field Documentation

◆ $_options

$_options
staticprotected

Definition at line 13 of file Frequency.php.

◆ CRON_DAILY

const CRON_DAILY = 'D'

Definition at line 15 of file Frequency.php.

◆ CRON_MONTHLY

const CRON_MONTHLY = 'M'

Definition at line 19 of file Frequency.php.

◆ CRON_WEEKLY

const CRON_WEEKLY = 'W'

Definition at line 17 of file Frequency.php.


The documentation for this class was generated from the following file: