designs2/events-cron
最新稳定版本:1.0.2
Composer 安装命令:
composer require designs2/events-cron
包简介
Cron event for Contao Open Source CMS
README 文档
README
Provide the cron hooks as events.
$GLOBALS['TL_EVENTS']['cron.monthly'][] = function($event) { // run monthly }; $GLOBALS['TL_EVENTS']['cron.weekly'][] = function($event) { // run weekly }; $GLOBALS['TL_EVENTS']['cron.daily'][] = function($event) { // run daily }; $GLOBALS['TL_EVENTS']['cron.hourly'][] = function($event) { // run hourly }; // only support in Contao 3.0 or newer $GLOBALS['TL_EVENTS']['cron.minutely'][] = function($event) { // run minutely };
See the event dispatcher documentation for more examples how to listen on an event.
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2015-10-29