-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathModule.php
43 lines (36 loc) · 961 Bytes
/
Module.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Cron Daemon
* @link https://github.com/cuzy-app/cron-daemon
* @license https://github.com/cuzy-app/cron-daemon/blob/master/docs/LICENCE.md
* @author [Marc FARRE](https://marc.fun) for [CUZY.APP](https://www.cuzy.app)
*/
namespace humhub\modules\cronDaemon;
use Yii;
use yii\helpers\Url;
class Module extends \humhub\components\Module
{
/**
* @var string defines the icon
*/
public $icon = 'tasks';
/**
* @var string defines path for resources, including the screenshots path for the marketplace
*/
public $resourcesPath = 'resources';
public function getName()
{
return 'Cron Daemon';
}
public function getDescription()
{
return Yii::t('CronDaemonModule.config', 'Executes cron jobs from an external cron service via a URL');
}
/**
* @inheritdoc
*/
public function getConfigUrl()
{
return Url::to(['/cron-daemon/config']);
}
}