1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- namespace app\dict\schedule;
- class ScheduleDict
- {
- public const CRON = 'cron';
- public const CROND = 'crond';
- public const ON = 1;
- public const OFF = 2;
- public const MIN = 'min';
- public const HOUR = 'hour';
- public const DAY = 'day';
- public const WEEK = 'week';
- public const MONTH = 'month';
-
- public static function getType()
- {
- return [
- self::CRON => get_lang('dict_schedule.type_cron'),
- self::CROND => get_lang('dict_schedule.type_crond'),
- ];
- }
-
- public static function getStatus()
- {
- return [
- self::ON => get_lang('dict_schedule.on'),
- self::OFF => get_lang('dict_schedule.off'),
- ];
- }
- public static function getDateType()
- {
- return [
- self::MIN => get_lang('dict_schedule.min'),
- self::HOUR => get_lang('dict_schedule.hour'),
- self::DAY => get_lang('dict_schedule.day'),
- self::WEEK => get_lang('dict_schedule.week'),
- self::MONTH => get_lang('dict_schedule.month'),
- ];
- }
- }
|