crontab.class.php 961 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * ZenTaoPMS - Open-source project management system.
  4. *
  5. * @copyright Copyright 2009-2025 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.chandao.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. *
  8. * A third-party license is embedded for some of the code in this file:
  9. * The use of the source code of this file is also subject to the terms
  10. * and consitions of the license of "cron-expression" (MIT, see
  11. * </lib/vendor/dragonmantank/cron-expression/LICENSE>).
  12. */
  13. require_once dirname(__FILE__, 2) . '/base/delegate/delegate.class.php';
  14. class crontab extends baseDelegate
  15. {
  16. protected static $className = 'Cron\CronExpression';
  17. /**
  18. * @param \FieldFactory|null $fieldFactory
  19. */
  20. public function __construct($expression, $fieldFactory = null)
  21. {
  22. $this->instance = new static::$className($expression, $fieldFactory);
  23. }
  24. }