mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 20:27:07 +09:00
55 lines
963 B
PHP
55 lines
963 B
PHP
<?php
|
|
|
|
/**
|
|
* FOSSBilling.
|
|
*
|
|
* @copyright FOSSBilling (https://www.fossbilling.org)
|
|
* @license Apache-2.0
|
|
*
|
|
* Copyright FOSSBilling 2022
|
|
* This software may contain code previously used in the BoxBilling project.
|
|
* Copyright BoxBilling, Inc 2011-2021
|
|
*
|
|
* This source file is subject to the Apache-2.0 License that is bundled
|
|
* with this source code in the file LICENSE
|
|
*/
|
|
|
|
/**
|
|
* Cron checker.
|
|
*/
|
|
|
|
namespace Box\Mod\Cron\Api;
|
|
|
|
class Guest extends \Api_Abstract
|
|
{
|
|
/**
|
|
* Run cron if is late and web based cron is enabled.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function check()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* Get cron settings.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function settings()
|
|
{
|
|
return $this->getMod()->getConfig();
|
|
}
|
|
|
|
/**
|
|
* Tells if cron is late.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function is_late()
|
|
{
|
|
return $this->getService()->isLate();
|
|
}
|
|
}
|