symbiote/silverstripe-schedulizer 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

symbiote/silverstripe-schedulizer

Composer 安装命令:

composer require symbiote/silverstripe-schedulizer

包简介

A module for organising stuff to happen at arbitrary times in the future, useful with QueuedJobs

README 文档

README

Fun module for organising stuff to happen at arbitrary times in the future.

Maintainer Contacts

Requirements

  • SilverStripe 3.1

Usage

  • Create a Configured Schedule via the CMS admin
  • From code, call
    • ConfiguredSchedule::get()->filter('Title', $name)->first()->getNextScheduledDateTime();

Configuring schedules

For a job, schedules are read in particular precedence; first, the 'default' schedule is loaded. All other schedules are evaluated to see if they are applicable for the "current" time; if so, the desired schedule is substituted for, in increasing order of importance

  • A ScheduleRangeDayType (ie weekday, Weekend)
  • A ScheduleRangeDay (ie Monday, Tuesday)
  • A ScheduleRange (ie specific date)

This allows configuration of a schedule set that is, for example

  • Default - 6am - 6pm every day until 2020
  • Weekends - 9am - 5pm
  • Thursday - 6am - 9pm
  • 25/12/2015 - 10am - 2pm

The decided upon schedule evaluates each in order, and selects that which is most specific.

Create a schedule

  • Open admin/schedulizer/.
  • Create a new schedule - for QueuedJobs usage, use the same name as the job classname
  • Create a new Schedule Range; the first one should be called "Default" and have a type of "ScheduleRangeDefault". This is the baseline schedule that will be used
  • Add additional schedules if needed
  • Test the schedule by entering a date/time (YYYY-MM-DD hh:mm:ss format) and clicking "Test" - this will update with the next detected 'tick' time for that schedule.

Modifying a schedule

  • Open admin/schedulizer/
  • Select the schedule to modify
  • On the "Schedule Ranges" tab, select the schedule to modify
  • Modify the relevant fields
  • Save and close, then test the new schedule as above.

License

This module is licensed under the BSD license at http://silverstripe.org/BSD-license

统计信息

  • 总下载量: 619
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2017-06-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固