-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathModule.php
70 lines (57 loc) · 1.41 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/**
* @author Philipp Horna <globefreak at web.de>
*/
namespace humhub\modules\game_server_query;
use Yii;
use humhub\modules\space\models\Space;
use humhub\modules\content\components\ContentContainerActiveRecord;
class Module extends \humhub\modules\content\components\ContentContainerModule {
/**
* @inheritdoc
*/
public function init() {
parent::init();
}
/**
* @inheritdoc
*/
public function enable() {
parent::enable();
}
/**
* @inheritdoc
*/
public function disable() {
parent::disable();
}
/**
* @inheritdoc
*/
public function getContentContainerTypes() {
return [
Space::className(),
];
}
/**
* @inheritdoc
*/
public function getContentContainerName(ContentContainerActiveRecord $container) {
return Yii::t('GameServerQueryModule.base', 'Game Server Query');
}
/**
* @inheritdoc
*/
public function getContentContainerDescription(ContentContainerActiveRecord $container) {
if ($container instanceof Space) {
return Yii::t('GameServerQueryModule.base', 'Query a lot different servers based on GameQ.');
}
}
/**
* @inheritdoc
*/
public function disableContentContainer(ContentContainerActiveRecord $container) {
parent::disableContentContainer($container);
}
}
?>