-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathModule.php
More file actions
35 lines (27 loc) · 849 Bytes
/
Module.php
File metadata and controls
35 lines (27 loc) · 849 Bytes
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
<?php
namespace sij\humhub\modules\rss;
use Yii;
use yii\helpers\Url;
use humhub\modules\content\components\ContentContainerActiveRecord;
use humhub\modules\space\models\Space;
class Module extends \humhub\modules\content\components\ContentContainerModule
{
public function getContentContainerTypes()
{
return [
Space::class,
];
}
public function getContentContainerConfigUrl(ContentContainerActiveRecord $container)
{
return $container->createUrl('/rss/rss/config');
}
public function getContentContainerName(ContentContainerActiveRecord $container)
{
return Yii::t('RssModule.base', 'RSS');
}
public function getContentContainerDescription(ContentContainerActiveRecord $container)
{
return Yii::t('RssModule.base', 'RSS News Reader');
}
}